Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable latex symbol conversion in vim

Tags:

vim

latex

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

like image 723
qed Avatar asked Aug 10 '13 10:08

qed


1 Answers

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 = ""
like image 86
glts Avatar answered Oct 14 '22 06:10

glts