Justin M. Keyes 18ce6c9063 vim-patch:2c64ca1802b2 6 years ago
..
README.txt a98a6996c2 re-integrate runtime/ vim-patch:0 #938 10 years ago
aap.vim a98a6996c2 re-integrate runtime/ vim-patch:0 #938 10 years ago
ada.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
ant.vim a98a6996c2 re-integrate runtime/ vim-patch:0 #938 10 years ago
automake.vim 93fb7383a3 vim-patch:214641f77df6 7 years ago
awk.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
bib.vim a98a6996c2 re-integrate runtime/ vim-patch:0 #938 10 years ago
bst.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
bzl.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
c.vim a98a6996c2 re-integrate runtime/ vim-patch:0 #938 10 years ago
cdl.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
ch.vim a98a6996c2 re-integrate runtime/ vim-patch:0 #938 10 years ago
chaiscript.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
changelog.vim a98a6996c2 re-integrate runtime/ vim-patch:0 #938 10 years ago
clojure.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
cmake.vim 10e5040b61 vim-patch:24a98a0eb772 7 years ago
cobol.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
config.vim 93fb7383a3 vim-patch:214641f77df6 7 years ago
context.vim 8d3f8f639b vim-patch:46fceaaa8d14 7 years ago
cpp.vim a98a6996c2 re-integrate runtime/ vim-patch:0 #938 10 years ago
cs.vim a98a6996c2 re-integrate runtime/ vim-patch:0 #938 10 years ago
css.vim 93fb7383a3 vim-patch:214641f77df6 7 years ago
cucumber.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
cuda.vim a98a6996c2 re-integrate runtime/ vim-patch:0 #938 10 years ago
d.vim a98a6996c2 re-integrate runtime/ vim-patch:0 #938 10 years ago
dictconf.vim 93fb7383a3 vim-patch:214641f77df6 7 years ago
dictdconf.vim 93fb7383a3 vim-patch:214641f77df6 7 years ago
docbk.vim 93fb7383a3 vim-patch:214641f77df6 7 years ago
dosbatch.vim 11bcd48fda vim-patch:20aac6c11269 6 years ago
dtd.vim 2c7ed420d9 vim-patch:fc65cabb15d0 6 years ago
dtrace.vim a98a6996c2 re-integrate runtime/ vim-patch:0 #938 10 years ago
dylan.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
eiffel.vim c348f84f21 vim-patch:036986f1507d 7 years ago
erlang.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
eruby.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
eterm.vim c348f84f21 vim-patch:036986f1507d 7 years ago
falcon.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
fortran.vim e5b640fdb8 vim-patch:c0514bf4777a 7 years ago
framescript.vim c348f84f21 vim-patch:036986f1507d 7 years ago
gitconfig.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
gitolite.vim 4175dfac9a vim-patch:01164a6546b4 7 years ago
go.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
haml.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
hamster.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
hog.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
html.vim 2c7ed420d9 vim-patch:fc65cabb15d0 6 years ago
htmldjango.vim a98a6996c2 re-integrate runtime/ vim-patch:0 #938 10 years ago
idlang.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
ishd.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
j.vim 1f27ccb77f vim-patch:83caecf 9 years ago
java.vim c348f84f21 vim-patch:036986f1507d 7 years ago
javascript.vim dae1213e57 vim-patch:f0b03c4e98f8 6 years ago
json.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
jsp.vim a98a6996c2 re-integrate runtime/ vim-patch:0 #938 10 years ago
ld.vim c348f84f21 vim-patch:036986f1507d 7 years ago
less.vim d69f3bbb0d vim-patch:8feef4f #3444 9 years ago
lifelines.vim ba7472c54d runtime: fix executable bit on some files 10 years ago
liquid.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
lisp.vim a98a6996c2 re-integrate runtime/ vim-patch:0 #938 10 years ago
logtalk.vim 228bc4c416 vim-patch:d473c8c10126 6 years ago
lua.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
mail.vim a98a6996c2 re-integrate runtime/ vim-patch:0 #938 10 years ago
make.vim c348f84f21 vim-patch:036986f1507d 7 years ago
matlab.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
mf.vim 460d5971f6 vim-patch:2ec618c9feac 7 years ago
mma.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
mp.vim 60e68f3096 vim-patch:dc08328821a2 7 years ago
nsis.vim 1a51524ad5 vim-patch:40962ec9c0e7 6 years ago
objc.vim a98a6996c2 re-integrate runtime/ vim-patch:0 #938 10 years ago
ocaml.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
occam.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
pascal.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
perl.vim 8c6168565c vim-patch:37c64c78fd87 7 years ago
perl6.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
php.vim 9da951ad47 vim-patch:0b0f0992d46e 6 years ago
postscr.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
pov.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
prolog.vim 17c26d0dcf vim-patch:95bafa296ae9 6 years ago
pyrex.vim a98a6996c2 re-integrate runtime/ vim-patch:0 #938 10 years ago
python.vim 18ce6c9063 vim-patch:2c64ca1802b2 6 years ago
r.vim 2c7ed420d9 vim-patch:fc65cabb15d0 6 years ago
readline.vim c348f84f21 vim-patch:036986f1507d 7 years ago
rhelp.vim ef7af078ef vim-patch:cd5c8f825078 7 years ago
rmd.vim 2c7ed420d9 vim-patch:fc65cabb15d0 6 years ago
rnoweb.vim 2c7ed420d9 vim-patch:fc65cabb15d0 6 years ago
rpl.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
rrst.vim ea18b4a60f vim-patch:77cdfd1 8 years ago
rst.vim 93fb7383a3 vim-patch:214641f77df6 7 years ago
ruby.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
rust.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
sas.vim 5a022c71e4 vim-patch:6dc819b1299e 6 years ago
sass.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
scala.vim c348f84f21 vim-patch:036986f1507d 7 years ago
scheme.vim 733b4ce033 vim-patch:7254067ee970 6 years ago
scss.vim a98a6996c2 re-integrate runtime/ vim-patch:0 #938 10 years ago
sdl.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
sh.vim 07fdbba9d0 vim-patch:91f84f6e11cd 6 years ago
sml.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
sql.vim a98a6996c2 re-integrate runtime/ vim-patch:0 #938 10 years ago
sqlanywhere.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
systemd.vim 43fe335eda vim-patch:60cce2f 8 years ago
systemverilog.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
tcl.vim c348f84f21 vim-patch:036986f1507d 7 years ago
tcsh.vim c348f84f21 vim-patch:036986f1507d 7 years ago
teraterm.vim 11bcd48fda vim-patch:20aac6c11269 6 years ago
tex.vim 460a52dbbf vim-patch:eb3dc87f0139 6 years ago
tf.vim 93fb7383a3 vim-patch:214641f77df6 7 years ago
tilde.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
treetop.vim c348f84f21 vim-patch:036986f1507d 7 years ago
vb.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
verilog.vim 8c3377ee76 vim-patch:c572da5f67aa 7 years ago
vhdl.vim 4175dfac9a vim-patch:01164a6546b4 7 years ago
vim.vim a5b875fe86 vim-patch:e18dbe8 7 years ago
vroom.vim 272f1064c7 vim-patch:1e8ebf8 10 years ago
wast.vim 4f67f5ba6e vim-patch:d2855f5454c5 6 years ago
xf86conf.vim c348f84f21 vim-patch:036986f1507d 7 years ago
xhtml.vim a98a6996c2 re-integrate runtime/ vim-patch:0 #938 10 years ago
xinetd.vim c348f84f21 vim-patch:036986f1507d 7 years ago
xml.vim 07fdbba9d0 vim-patch:91f84f6e11cd 6 years ago
xsd.vim a98a6996c2 re-integrate runtime/ vim-patch:0 #938 10 years ago
xslt.vim a98a6996c2 re-integrate runtime/ vim-patch:0 #938 10 years ago
yacc.vim 93fb7383a3 vim-patch:214641f77df6 7 years ago
yaml.vim a39bf01958 vim-patch:3ec574f2b549 7 years ago
zimbu.vim 374b3a6f4c vim-patch:298b440 8 years ago
zsh.vim 975a610233 vim-patch:f2571c6 9 years ago

README.txt

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.