Subversion Repositories configs

Rev

Rev 4 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4 Rev 34
Line 14... Line 14...
14
" Only do this part when compiled with support for autocommands
14
" Only do this part when compiled with support for autocommands
15
if has("autocmd")
15
if has("autocmd")
16
  augroup redhat
16
  augroup redhat
17
  autocmd!
17
  autocmd!
18
  " In text files, always limit the width of text to 78 characters
18
  " In text files, always limit the width of text to 78 characters
19
  autocmd BufRead *.txt set tw=78
19
  " autocmd BufRead *.txt set tw=78
20
  " When editing a file, always jump to the last cursor position
20
  " When editing a file, always jump to the last cursor position
21
  autocmd BufReadPost *
21
  autocmd BufReadPost *
22
  \ if line("'\"") > 0 && line ("'\"") <= line("$") |
22
  \ if line("'\"") > 0 && line ("'\"") <= line("$") |
23
  \   exe "normal! g'\"" |
23
  \   exe "normal! g'\"" |
24
  \ endif
24
  \ endif
25
  " don't write swapfile on most commonly used directories for NFS mounts or USB sticks
25
  " don't write swapfile on most commonly used directories for NFS mounts or USB sticks
26
  autocmd BufNewFile,BufReadPre /media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp
26
  autocmd BufNewFile,BufReadPre /media/*,/run/media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp
27
  " start with spec file template
27
  " start with spec file template
28
  autocmd BufNewFile *.spec 0r /usr/share/vim/vimfiles/template.spec
28
  autocmd BufNewFile *.spec 0r /usr/share/vim/vimfiles/template.spec
29
  augroup END
29
  augroup END
30
endif
30
endif
31
 
31
 
Line 34... Line 34...
34
   set csto=0
34
   set csto=0
35
   set cst
35
   set cst
36
   set nocsverb
36
   set nocsverb
37
   " add any database in current directory
37
   " add any database in current directory
38
   if filereadable("cscope.out")
38
   if filereadable("cscope.out")
39
      cs add cscope.out
39
      cs add $PWD/cscope.out
40
   " else add database pointed to by environment
40
   " else add database pointed to by environment
41
   elseif $CSCOPE_DB != ""
41
   elseif $CSCOPE_DB != ""
42
      cs add $CSCOPE_DB
42
      cs add $CSCOPE_DB
43
   endif
43
   endif
44
   set csverb
44
   set csverb