On 2010-04-04, fain182 wrote:
> Hello,
> i don't know how to indent my latex code..
> if i go to the first line with gg, and indent all with =G, the rules
> for indentation are wrong..(for example, indent if at the end of line
> there is a "\\" or a ",")
>
> Vim-latexsuite includes latex indentation rules? How can i set them in
> my .vimrc?
Yes, the vim-latex-suite does include indentation rules. They
should be in this file: ~/.vim/indent/tex.vim.
They are enabled in your .vimrc the same as any other filetype
dependent indentation rules, with a command like this:
filetype plugin indent on
See
:help 30.3
:help filetype-indent-on
HTH,
Gary
|