Index of /pub/vim/runtime/indent

Icon  Name                    Last modified      Size  Description
[DIR] Parent Directory - [   ] GenericIndent.vim 27-Oct-2007 17:34 12K [   ] aap.vim 27-Oct-2007 19:07 265 [   ] ada.vim 13-Jul-2008 18:05 11K [   ] ant.vim 27-Oct-2007 17:28 290 [   ] automake.vim 27-Oct-2007 17:48 231 [   ] awk.vim 27-Oct-2007 17:31 7.5K [   ] bib.vim 27-Oct-2007 19:11 346 [   ] bst.vim 27-Oct-2007 19:00 1.9K [   ] c.vim 27-Oct-2007 18:16 325 [   ] cdl.vim 27-Oct-2007 18:06 4.1K [   ] ch.vim 27-Oct-2007 17:48 470 [   ] changelog.vim 27-Oct-2007 19:02 264 [   ] cmake.vim 18-Nov-2007 16:19 2.8K [   ] cobol.vim 27-Oct-2007 17:33 8.0K [   ] config.vim 27-Oct-2007 17:27 2.1K [   ] cpp.vim 27-Oct-2007 17:57 296 [   ] cs.vim 27-Oct-2007 17:48 327 [   ] css.vim 27-Oct-2007 19:04 1.7K [   ] d.vim 27-Oct-2007 17:55 510 [   ] dictconf.vim 27-Oct-2007 18:20 325 [   ] dictdconf.vim 27-Oct-2007 18:04 326 [   ] docbk.vim 27-Oct-2007 18:00 324 [   ] dtd.vim 22-Jul-2008 18:24 11K [   ] dtrace.vim 10-Apr-2008 20:30 451 [   ] dylan.vim 27-Oct-2007 17:56 2.6K [   ] eiffel.vim 27-Oct-2007 19:09 3.0K [   ] erlang.vim 15-Mar-2008 14:07 5.6K [   ] eruby.vim 13-Jul-2008 18:06 2.0K [   ] eterm.vim 27-Oct-2007 18:02 638 [   ] fortran.vim 27-Oct-2007 17:39 4.8K [   ] framescript.vim 22-Jul-2008 18:24 786 [   ] gitconfig.vim 14-Jun-2008 13:26 814 [   ] haml.vim 13-Jul-2008 18:04 2.2K [   ] hamster.vim 27-Oct-2007 18:57 1.4K [   ] html.vim 27-Oct-2007 17:57 7.1K [   ] htmldjango.vim 27-Oct-2007 17:49 273 [   ] idlang.vim 27-Oct-2007 17:58 1.5K [   ] ishd.vim 27-Oct-2007 17:33 1.8K [   ] java.vim 27-Oct-2007 17:22 3.6K [   ] javascript.vim 27-Oct-2007 18:04 309 [   ] jsp.vim 27-Oct-2007 19:04 462 [   ] ld.vim 27-Oct-2007 17:58 1.7K [   ] lisp.vim 27-Oct-2007 17:28 326 [   ] logtalk.vim 13-Jul-2008 18:04 1.7K [   ] lua.vim 27-Oct-2007 19:09 1.9K [   ] make.vim 27-Oct-2007 17:44 3.4K [   ] matlab.vim 27-Oct-2007 18:16 1.9K [   ] mma.vim 27-Oct-2007 18:13 2.2K [   ] mp.vim 27-Oct-2007 19:08 6.3K [   ] mupad.vim 27-Oct-2007 17:27 1.2K [   ] objc.vim 27-Oct-2007 18:26 1.6K [   ] ocaml.vim 27-Oct-2007 18:57 8.3K [   ] occam.vim 27-Oct-2007 18:13 4.5K [   ] pascal.vim 27-Oct-2007 17:58 4.8K [   ] perl.vim 27-Oct-2007 17:30 4.5K [   ] php.vim 29-Jun-2008 14:45 19K [   ] postscr.vim 27-Oct-2007 19:10 1.6K [   ] pov.vim 27-Oct-2007 19:07 2.6K [   ] prolog.vim 27-Oct-2007 18:16 1.4K [   ] pyrex.vim 27-Oct-2007 19:11 326 [   ] python.vim 27-Oct-2007 18:52 5.4K [   ] readline.vim 27-Oct-2007 18:01 681 [   ] rpl.vim 27-Oct-2007 18:58 1.8K [   ] rst.vim 27-Oct-2007 17:27 1.1K [   ] ruby.vim 13-Jul-2008 18:06 12K [   ] sass.vim 13-Jul-2008 18:06 938 [   ] scheme.vim 27-Oct-2007 18:11 241 [   ] sdl.vim 27-Oct-2007 18:10 2.6K [   ] sh.vim 27-Oct-2007 17:58 1.3K [   ] sml.vim 27-Oct-2007 18:59 6.3K [   ] sql.vim 20-Dec-2007 04:14 1.2K [   ] sqlanywhere.vim 21-Jun-2008 21:43 13K [   ] tcl.vim 27-Oct-2007 18:16 1.6K [   ] tcsh.vim 27-Oct-2007 18:18 1.2K [   ] tf.vim 27-Oct-2007 17:28 1.5K [   ] tilde.vim 27-Oct-2007 19:08 1.0K [   ] vb.vim 27-Oct-2007 19:13 2.0K [   ] verilog.vim 27-Oct-2007 19:01 7.4K [   ] vhdl.vim 27-Oct-2007 17:30 13K [   ] vim.vim 27-Oct-2007 19:02 2.2K [   ] xf86conf.vim 27-Oct-2007 17:33 679 [   ] xhtml.vim 27-Oct-2007 17:48 269 [   ] xinetd.vim 27-Oct-2007 17:54 1.1K [   ] xml.vim 27-Oct-2007 17:20 2.4K [   ] xsd.vim 27-Oct-2007 17:43 253 [   ] xslt.vim 27-Oct-2007 17:27 297 [   ] yacc.vim 27-Oct-2007 18:10 769 [   ] zsh.vim 27-Oct-2007 17:31 231
This directory contains files to automatically compute the indent for a
type of file.

If you want to add your own indent file for your personal use, read the docs
at ":help indent-expression".  Looking at the existing files should give you
inspiration.

If you make a new indent file which would be useful for others, please send it
to Bram@vim.org.  Include instructions for detecting the file type for this
language, by file name extension or by checking a few lines in the file.
And please stick to the rules below.

If you have remarks about an existing file, send them to the maintainer of
that file.  Only when you get no response send a message to Bram@vim.org.

If you are the maintainer of an indent file and make improvements, e-mail the
new version to Bram@vim.org.


Rules for making an indent file:

You should use this check for "b:did_indent":

	" Only load this indent file when no other was loaded yet.
	if exists("b:did_indent")
	  finish
	endif
	let b:did_indent = 1

Always use ":setlocal" to set 'indentexpr'.  This avoids it being carried over
to other buffers.

To trigger the indenting after typing a word like "endif", add the word to the
'cinkeys' option with "+=".

You normally set 'indentexpr' to evaluate a function and then define that
function.  That function only needs to be defined once for as long as Vim is
running.  Add a test if the function exists and use ":finish", like this:
	if exists("*GetMyIndent")
	  finish
	endif

The user may have several options set unlike you, try to write the file such
that it works with any option settings.  Also be aware of certain features not
being compiled in.