在 vim 中禁用乳胶符号转换 [英] Disable latex symbol conversion in vim

查看:26
本文介绍了在 vim 中禁用乳胶符号转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Kubuntu 13.04 笔记本电脑上的 vim 编辑器似乎有一些乳胶编辑的高级功能,即它可以转换乳胶符号即时对 unicode 字符进行编码,并在光标移动时隐藏源代码没有上线.

The vim editor on my Kubuntu 13.04 laptop seems to have some advance feature for latex edting, i.e. it can convert latex symbols to unicode chars on the fly and hide the source code when the cursor is not on the line.

这对某些人来说可能是一个很棒的功能,但我发现它有点烦人.我不确定这是内置的还是由一些扩展,但我希望我能找到一种方法来禁用它.

This may be a great function to some people, but I find it a bit annoying. I am not sure whether this is built-in or provided by some extension, but I hope I can find out a way to disable it.

我的vim版本是7.4b,安装的扩展列表:

My vim version is 7.4b, the list of extensions installed:

clang_complete
emmet-vim
HTML-AutoCloseTag
neocomplete.vim
neosnippet
tabular
tagbar
tlib_vim
unite.vim
vim-addon-mw-utils
vim-airline
vim-colorschemes
vim-colors-solarized
vim-commentary
vim-easymotion
vim-eunuch
vim-fugitive
vim-repeat
VimRepress
Vim-R-plugin
vim-snippets
vim-surround
vim-table-mode
vim-unimpaired
vundle

推荐答案

这个功能是由 Vim 的隐藏"特性提供的.

This functionality is provided by Vim's "conceal" feature.

如果你设置了 'conceallevel'

Vim 的 TeX 插件会利用 "conceal"/code> 到 2.见 :h ft-tex-syntax.

Vim's TeX plugin takes advantage of "conceal" if you have set 'conceallevel' to 2. See :h ft-tex-syntax.

'conceallevel' 保留为默认值 0 以禁用隐藏.

Leave 'conceallevel' at its default value of 0 to disable concealing.

或者,将以下行放入您的 vimrc.

Alternatively, put the following line in your vimrc.

let g:tex_conceal = ""

这篇关于在 vim 中禁用乳胶符号转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆