tags:

views:

388

answers:

4

What are your favourite plugins in VIM for Latex editing? Is there some ready variant of VIM for Latex?

+1  A: 

You probably want LaTex Suite. See here.

Edit: I forgot to add the link to their web page which is here.

Rob Wells
A: 

Choose from here, depending on what you intend to do.

ldigas
+6  A: 

#1: VIM LaTeX-suite from http://vim-latex.sourceforge.net

f3lix
+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