sponsor Vim development Vim logo Vim Book Ad

tex.vim : Indent file for TeX

 script karma  Rating 39/20, Downloaded by 2811    Comments, bugs, improvements  Vim wiki

created by
Johannes Tanzler
 
script type
indent
 
description
This is an indent file for LaTeX.

It emulates Emacs' way of indenting item-environments, i.e., continuation lines of '\item', '\item[]', and '\bibitem' will be indented separately.

NOTE: I searched for an indent file for TeX and didn't found one -- so I wrote this script. Right now I've noticed that Johannes Zellner has already created an indent file for TeX (you can find his version at http://www.zellner.org/vim/indent/tex.vim). I think that's the official version.
Nevertheless, since his version doesn't indent \items the way I want them to be, I decided to release my version, too. Try both of them, use the one you like most.
 
install details
Copy the file to your ~/.vim/indent/ directory
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
tex.vim 0.5 2011-09-09 7.0 Johannes Tanzler 2005/06/15, Moshe Kaminsky <kaminsky@math.huji.ac.il>
(*) New variables: g:tex_items, g:tex_itemize_env, g:tex_noindent_env

2011/3/6, by Zhou Yi Chao <broken.zhou@gmail.com>
(*) Don't change indentation of lines starting with '%'
(*) New features: Add smartindent-like indent for "{}" and  "[]".
(*) New variables: g:tex_indent_brace

+ License
tex.vim 0.4 2005-06-14 6.0 Johannes Tanzler New variables: g:tex_items, g:tex_itemize_env, g:tex_noindent_env (Moshe Kaminsky)
tex-indent-0.02.vim 0.02 2002-02-18 6.0 Johannes Tanzler Better support for the option, uses some regex instead of several '||'. (Thanks to Luc Hermitte!)
tex.vim 0.01 2002-02-16 6.0 Johannes Tanzler Initial upload
ip used for rating: 54.145.191.14

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo