Disable latex symbol conversion in vim

怎甘沉沦 提交于 2020-08-21 02:08:32

问题


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.

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

cursor not on math linecursor on math line


回答1:


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

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

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

Alternatively, put the following line in your vimrc.

let g:tex_conceal = ""


来源:https://stackoverflow.com/questions/18160953/disable-latex-symbol-conversion-in-vim

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!