File: svn-dev.vim

package info (click to toggle)
subversion 1.4.2dfsg1-3
  • links: PTS
  • area: main
  • in suites: etch
  • size: 37,284 kB
  • ctags: 32,888
  • sloc: ansic: 406,472; python: 38,378; sh: 15,438; cpp: 9,604; ruby: 8,313; perl: 5,308; java: 4,576; lisp: 3,860; xml: 3,298; makefile: 856
file content (59 lines) | stat: -rw-r--r-- 2,040 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
" This file sets vim up to use subversion's coding style.  It can be applied on
" a per buffer basis with :source svn-dev.vim, or can be source from ~/.vimrc to
" apply settings to all files vim uses.  For other variation try :help autocmd.
"
" TODO: Try to find a way to wrap comments without putting a * on the next line,
" since most of subversion doesn't use that style.  (Note that taking cro out of
" formatoptions won't quite work, because then comments won't be wrapped by
" default).
"
" Expand tab characters to spaces
set expandtab

" Tab key moves 8 spaces
set tabstop=8 

" '>>' moves 4 spaces
set shiftwidth=4

" Wrap lines at 78 columns.
"   78 so that vim won't swap over to the right before it wraps a line.
set textwidth=78

" What counts as part of a word (used for tag matching, and motion commands)
set iskeyword=a-z,A-Z,48-57,_,.,-,>

" How to wrap lines
"   t=wrap lines, c=wrap comments, inserting comment leader, r=insert comment
"   leader after an <ENTER>, o=Insert comment leader after an 'o', q=Allow
"   formatting of comments with 'gq'
set formatoptions=tcroq

" Use C style indenting
set cindent

" Use the following rules to do C style indenting
"   (Note that an s mean number*shiftwidth)
"   >=normal indent,
"   e=indent inside braces(brace at end of line),
"   n=Added to normal indent if no braces,
"   f=opening brace of function,
"   {=opening braces,
"   }=close braces (from opening),
"   ^s=indent after brace, if brace is on column 0,
"   := case labels from switch, ==statements after case,
"   t=function return type,
"   +=continuation line,
"   c=comment lines from opener,
"   (=unclosed parens (0 means match),
"   u=same as ( but for second set of parens
"   
"   Try :help cinoptions-values
set cinoptions=>1s,e0,n-2,f0,{.5s,}0,^-.5s,=.5s,t0,+1s,c3,(0,u0,\:2

" The following modelines can also be used to set the same options.
"/*
" * vim:ts=8:sw=4:expandtab:tw=78:fo=tcroq cindent
" * vim:isk=a-z,A-Z,48-57,_,.,-,>
" * vim:cino=>1s,e0,n-2,f0,{.5s,}0,^-.5s,=.5s,t0,+1s,c3,(0,u0,\:2
" */