14 Commits

Author SHA1 Message Date
Gerd Wachsmuth 0760891c71 Let g:tex_items respect word boundaries 2021-08-18 09:30:26 +02:00
Gerd Wachsmuth 799d162d01 Tweak in \if...\fi indentation
Now, lines like
\ifbaarfoo\foo\baz\fi
do not cause additional indentation on the next line.
2017-02-05 19:40:29 +01:00
Gerd Wachsmuth 4586e2210f Add gates to suppress latex-suite if needed.
This is usefull if latex-suite is installed system-wide but you do not
want to use it.
2016-10-05 10:52:14 +02:00
Gerd Wachsmuth 605d99abdf Improve the indentation script.
Now, something like:

\ifthenelse{...}{
	Yes.
}{
	No.
}

is properly indented (as above). The third line is indented according to the
position in the line which causes the least indentation (after as many braces
as possible were closed).

We also try to indent \if/\else/\fi blocks:
\ifnum1<0
	bar
\else
	foo
\fi

Finally, the indentation is much faster (by using a cache) than the default
indentation script shipped with vim.
2016-09-24 19:48:53 +02:00
Till Maas 2ef995684d indent: Use g:tex_noindent_env and g:tex_itemize_env again
This fixes the accidental removal of the variables in commit
521fc199bd
2013-01-16 15:33:52 +01:00
Sebastian Ullrich bf3a44f6ca indent: Fix de-indentation of \]
'[' should not be escaped inside regex collections. \[ was being
indented, but not \[.

Signed-off-by: Ted Pavlic <ted@tedpavlic.com>
2012-07-08 21:15:22 -07:00
Ted Pavlic 521fc199bd (via anonymous patch from SF) Fix indent/tex.vim to properly shift spacing regardless of where \end appers. 2012-05-25 17:12:48 -04:00
Ted Pavlic 45b89627af (via anonymous patch from website) Get rid of extra trailing spaces on indent/tex.vim lines. 2012-05-25 17:09:50 -04:00
Till Maas 2a5fe0c993 add comment and lstlisting to not indented default environments 2011-09-11 13:34:54 +02:00
Till Maas 041fcd568b update indent/tex.vim 2011-09-11 13:33:12 +02:00
Till Maas d6a35c286a Do not indent inside comment environments 2010-11-12 22:12:37 +01:00
Srinath Avadhanula 059382b7db New: Used one of the advantages of using svn. Liberally used the 'prop*'
commands to do the following:
     1. change the EOL style of all vim files to be just LF.
     2. changed the mime-type of all files to text/plain
     3. removed the executable flag on all files.
     This should hopefully make the repo look better on all platforms etc.
2006-03-20 09:45:45 +00:00
Srinath Avadhanula 017235daf2 do not change indentation of commented lines 2003-06-30 01:33:34 +00:00
Srinath Avadhanula cdfaab2d9e Initial revision 2002-04-30 00:03:04 +00:00