I'm experiencing trouble using vim in combination with latex-suite. Since recently there is a nice feature, that converts some latex commands, such as \varphi, into symbols better readable and more appealing to the eye.

Whenever the cursor hovers over a line, this feature is disabled for that line, since it would bother typing tex stuff. You can see this in the screenshot below, where the cursor is on the bottom line. However, when entering insert mode in vim, the feature gets enabled again, causing trouble with typing. Why is this, and how can I fix it?

vim screenshot

  • Welcome to TeX.SX. – Claudio Fiandrino Feb 4 '13 at 17:37
  • Wow, I reinstalled all vim-plugins, and now the 'conversion feature' is gone! I have no idea what's going on. Does anyone know what's normally responsible for the 'conversion feature'? – Chiel ten Brinke Feb 4 '13 at 17:56
  • 1
    I have the same problem here, I don't even use latex-suite. – qed Aug 10 '13 at 10:33

I have encountered the same problem as the OP, and I found that it is caused by the neosnippet configuration, which contains the folloing lines:

" For snippet_complete marker.
if has('conceal')
  set conceallevel=2 concealcursor=i

The neosnippet plugin probably uses the 'conceal' feature of vim for some of its autocompletion functions. The solution is either to comment out these lines or add an extra line in your ~/.vimrc:

let g:tex_conceal = ""

See also here.

  • Thank you for this information. I didn't know neosnippet had this feature. This clears up things. – Chiel ten Brinke Aug 10 '13 at 14:13
  • Works for 'ultisnips` as well. – Dilawar Dec 4 '17 at 6:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.