1 " This file sets vim up to use subversion's coding style. It can be applied on
2 " a per buffer basis with :source svn-dev.vim, or can be source from ~/.vimrc to
3 " apply settings to all files vim uses. For other variation try :help autocmd.
5 " TODO: Try to find a way to wrap comments without putting a * on the next line,
6 " since most of subversion doesn't use that style. (Note that taking cro out of
7 " formatoptions won't quite work, because then comments won't be wrapped by
10 " Expand tab characters to spaces
13 " Tab key moves 8 spaces
19 " Wrap lines at 78 columns.
20 " 78 so that vim won't swap over to the right before it wraps a line.
23 " What counts as part of a word (used for tag matching, and motion commands)
24 set iskeyword=a-z,A-Z,48-57,_,.,-,>
27 " t=wrap lines, c=wrap comments, inserting comment leader, r=insert comment
28 " leader after an <ENTER>, o=Insert comment leader after an 'o', q=Allow
29 " formatting of comments with 'gq'
30 set formatoptions=tcroq
32 " Use C style indenting
35 " Use the following rules to do C style indenting
36 " (Note that an s mean number*shiftwidth)
38 " e=indent inside braces(brace at end of line),
39 " n=Added to normal indent if no braces,
40 " f=opening brace of function,
42 " }=close braces (from opening),
43 " ^s=indent after brace, if brace is on column 0,
44 " := case labels from switch, ==statements after case,
45 " t=function return type,
46 " +=continuation line,
47 " c=comment lines from opener,
48 " (=unclosed parens (0 means match),
49 " u=same as ( but for second set of parens
51 " Try :help cinoptions-values
52 set cinoptions=>1s,e0,n-2,f0,{.5s,}0,^-.5s,=.5s,t0,+1s,c3,(0,u0,\:2
54 " The following modelines can also be used to set the same options.
56 " * vim:ts=8:sw=4:expandtab:tw=78:fo=tcroq cindent
57 " * vim:isk=a-z,A-Z,48-57,_,.,-,>
58 " * vim:cino=>1s,e0,n-2,f0,{.5s,}0,^-.5s,=.5s,t0,+1s,c3,(0,u0,\:2