neovim/runtime/indent
Shougo Matsushita 6ba3b85382 vim-patch:6f1d9a
Updated runtime files.

6f1d9a096b
2017-01-02 10:45:10 +09:00
..
aap.vim
ada.vim
ant.vim
automake.vim
awk.vim
bib.vim
bst.vim
bzl.vim vim-patch:60cce2f 2016-04-18 21:50:37 -07:00
c.vim
cdl.vim
ch.vim
chaiscript.vim
changelog.vim
clojure.vim vim-patch:6f1d9a 2017-01-02 10:45:10 +09:00
cmake.vim
cobol.vim
config.vim
cpp.vim
cs.vim
css.vim
cucumber.vim
cuda.vim
d.vim
dictconf.vim
dictdconf.vim
docbk.vim
dtd.vim
dtrace.vim
dylan.vim
eiffel.vim
erlang.vim
eruby.vim
eterm.vim
falcon.vim
fortran.vim vim-patch:298b440 2016-06-06 23:08:26 -04:00
framescript.vim
gitconfig.vim
gitolite.vim
go.vim
haml.vim
hamster.vim
hog.vim vim-patch:d7464be 2016-05-03 20:59:26 +02:00
html.vim vim-patch:939a1ab 2016-10-04 23:33:28 +09:00
htmldjango.vim
idlang.vim
ishd.vim
j.vim vim-patch:83caecf 2015-12-17 04:52:20 -05:00
java.vim
javascript.vim vim-patch:0952131 2016-12-28 14:57:38 -05:00
json.vim
jsp.vim
ld.vim
less.vim vim-patch:8feef4f #3444 2015-10-11 18:07:58 -04:00
lifelines.vim
liquid.vim
lisp.vim
logtalk.vim
lua.vim vim-patch:acb4f22 2016-05-25 21:05:01 -04:00
mail.vim
make.vim
matlab.vim
mma.vim
mp.vim
objc.vim
ocaml.vim
occam.vim
pascal.vim
perl6.vim
perl.vim
php.vim vim-patch:cbebd48 2016-06-07 06:46:37 -04:00
postscr.vim
pov.vim
prolog.vim
pyrex.vim
python.vim
r.vim vim-patch:77cdfd1 2016-07-08 01:43:36 -04:00
readline.vim
README.txt
rhelp.vim vim-patch:77cdfd1 2016-07-08 01:43:36 -04:00
rmd.vim vim-patch:77cdfd1 2016-07-08 01:43:36 -04:00
rnoweb.vim vim-patch:77cdfd1 2016-07-08 01:43:36 -04:00
rpl.vim
rrst.vim vim-patch:77cdfd1 2016-07-08 01:43:36 -04:00
rst.vim
ruby.vim
sass.vim
scheme.vim
scss.vim
sdl.vim
sh.vim vim-patch:f391327 2016-07-08 01:38:21 -04:00
sml.vim
sql.vim
sqlanywhere.vim
systemd.vim vim-patch:60cce2f 2016-04-18 21:50:37 -07:00
systemverilog.vim
tcl.vim
tcsh.vim
teraterm.vim vim-patch:f913281 2016-03-29 21:58:28 +09:00
tex.vim vim-patch:328da0d 2016-07-08 01:43:36 -04:00
tf.vim
tilde.vim
treetop.vim
vb.vim
verilog.vim
vhdl.vim
vim.vim vim-patch:705ada1 2016-06-06 23:08:26 -04:00
vroom.vim
xf86conf.vim
xhtml.vim
xinetd.vim
xml.vim
xsd.vim
xslt.vim
yacc.vim
yaml.vim vim-patch:b4ff518 2016-05-03 21:03:17 +02:00
zimbu.vim vim-patch:298b440 2016-06-06 23:08:26 -04:00
zsh.vim vim-patch:f2571c6 2015-11-08 03:39:07 +01:00

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.