Showing posts with label Vim. Show all posts
Showing posts with label Vim. Show all posts

Thursday, April 10, 2008

Filetype recognition in Vim

If your LaTeX suite does not want to load when you create a new.tex file, it is probably due to the following line missing in the _vimrc file:

" Prevents Vim 7.0 from setting filetype to 'plaintex'
let g:tex_flavor='latex'

Thanks to Phase Portrait.

Vim for XeTeX/LaTeX

If you want to use the LaTeX suite in Vim and you get a an error message like this:

::call histdel("/", -1)|let @/=g:Tex_LastSearchPattern

here is the solution.