What are your favourite plugins in VIM for Latex editing? Is there some ready variant of VIM for Latex?
+4
A:
Actually, I think the default support that Vim includes for filetype=tex
is already quite good. So strictly, no plugins are necessary.
However, I do recommend a few settings that you can cherry-pick from and adapt to your own taste. See the help to see what each command/setting does.
setlocal iskeyword+=:,-
setlocal makeprg=pdflatex\ -file-line-error\ -interaction=nonstopmode\ %
inoremap <buffer> { {}<ESC>i
inoremap <buffer> [ []<ESC>i
iab <buffer> ,b \begin{
iab <buffer> ,e \end{
" More abbreviations...
You can put these in ~/.vim/ftplugin/tex.vim
to load them for every tex
file. The following are some global settings that I keep in ~/.vimrc
:
let g:tex_flavor = "latex"
set suffixes+=.log,.aux,.bbl,.blg,.idx,.ilg,.ind,.out,.pdf
Bruno De Fraine
2009-02-13 08:04:10