~svn/ubuntu/raring/subversion/ppa

« back to all changes in this revision

Viewing changes to tools/dev/svn-dev.vim

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:26:14 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205012614-qom4xfypgtsqc2xq
Tags: 1.2.3dfsg1-3ubuntu1
Merge with the final Debian release of 1.2.3dfsg1-3, bringing in
fixes to the clean target, better documentation of the libdb4.3
upgrade and build fixes to work with swig1.3_1.3.27.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.
 
4
"
 
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
 
8
" default).
 
9
"
 
10
" Expand tab characters to spaces
 
11
set expandtab
 
12
 
 
13
" Tab key moves 8 spaces
 
14
set tabstop=8 
 
15
 
 
16
" '>>' moves 4 spaces
 
17
set shiftwidth=4
 
18
 
 
19
" Wrap lines at 78 columns.
 
20
"   78 so that vim won't swap over to the right before it wraps a line.
 
21
set textwidth=78
 
22
 
 
23
" What counts as part of a word (used for tag matching, and motion commands)
 
24
set iskeyword=a-z,A-Z,48-57,_,.,-,>
 
25
 
 
26
" How to wrap lines
 
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
 
31
 
 
32
" Use C style indenting
 
33
set cindent
 
34
 
 
35
" Use the following rules to do C style indenting
 
36
"   (Note that an s mean number*shiftwidth)
 
37
"   >=normal indent,
 
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,
 
41
"   {=opening braces,
 
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
 
50
"   
 
51
"   Try :help cinoptions-values
 
52
set cinoptions=>1s,e0,n-2,f0,{.5s,}0,^-.5s,=.5s,t0,+1s,c3,(0,u0,\:2
 
53
 
 
54
" The following modelines can also be used to set the same options.
 
55
"/*
 
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
 
59
" */