Hello,

Thanks for your answer.
On 17/04/2014 17:54, Ben Fritz wrote:
I don't really know what your "strange.tex" attachment was for, but it looks 
like some sort of templating plugin placeholder got inserted all over the place.

the strange.tex is the result of using my template with an empty line above the \documentclass line. All this garbage is inserted by vim ! I have also other templates that are truncated for almost half the file, so it is a problem more serious than only formatting.

For your "test.tex" file, it looks like your problem is a "stairstep" indent 
when you inserted a LaTeX template.


I don't use TeX or LaTeX, but I did find a couple pages which seem to describe 
a similar problem with the automatic indenting of LaTeX documents.

This one ( 
http://stackoverflow.com/questions/12693687/vim-automatic-indent-of-latex-files-bad
 ) suggests:
    let g:tex_flavor='latex'
Already done.

This one ( 
http://superuser.com/questions/494115/vim-indent-in-latex-align-goes-crazy ) 
suggests:
    let g:tex_indent_brace=0

Tried but no success.

I have quite a few options in my .vimrc and tex.vim. I'll remove all of them and reinstall them step by step. That the only thing I can think of.


Alain

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to