Revision: 1108
http://vim-latex.svn.sourceforge.net/vim-latex/?rev=1108&view=rev
Author: tmaas
Date: 2010-10-02 16:55:39 +0000 (Sat, 02 Oct 2010)
Log Message:
-----------
Do not indent inside comment environments
Modified Paths:
--------------
trunk/vimfiles/indent/tex.vim
Modified: trunk/vimfiles/indent/tex.vim
===================================================================
--- trunk/vimfiles/indent/tex.vim 2010-09-07 03:01:10 UTC (rev 1107)
+++ trunk/vimfiles/indent/tex.vim 2010-10-02 16:55:39 UTC (rev 1108)
@@ -85,11 +85,12 @@
endif
" Add a 'shiftwidth' after beginning of environments.
- " Don't add it for \begin{document} and \begin{verbatim}
+ " Don't add it for \begin{document}, \begin{verbatim} and \begin{comment}
""if line =~ '^\s*\\begin{\(.*\)}' && line !~ 'verbatim'
" LH modification : \begin does not always start a line
if line =~ '\\begin{\(.*\)}' && line !~ 'verbatim'
\ && line !~ 'document'
+ \ && line !~ 'comment'
let ind = ind + &sw
@@ -105,6 +106,7 @@
" Subtract a 'shiftwidth' when an environment ends
if cline =~ '^\s*\\end' && cline !~ 'verbatim'
\&& cline !~ 'document'
+ \&& cline !~ 'comment'
if g:tex_indent_items == 1
" Remove another sw for item-environments
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|