Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Saturday, October 24, 2026

Diff for vimconfig/vimrc between version 1.37 and 1.38

version 1.37, 2002/02/05 20:38:51 version 1.38, 2002/02/05 22:41:53
Line 123  set vb t_vb=
Line 123  set vb t_vb=
   
 " Set this, if you will open all windows for files specified  " Set this, if you will open all windows for files specified
 " on the commandline at vim startup.  " on the commandline at vim startup.
 let g:open_all_win=1  "let g:open_all_win=1
   let g:open_all_win=0
   
 " Settings for folding long lines  " Settings for folding long lines
 let g:fold_long_lines=300  let g:fold_long_lines=300
Line 230  augroup C
Line 231  augroup C
         autocmd BufRead,BufNewFile  *.c,*.h,*.cc,*.cpp  setlocal cindent          autocmd BufRead,BufNewFile  *.c,*.h,*.cc,*.cpp  setlocal cindent
         autocmd BufRead,BufNewFile  *.c,*.h,*.cc,*.cpp  setlocal cinoptions=>4,e0,n0,f0,{0,}0,^0,:4,=4,p4,t4,c3,+4,(2s,u1s,)20,*30,g4,h4          autocmd BufRead,BufNewFile  *.c,*.h,*.cc,*.cpp  setlocal cinoptions=>4,e0,n0,f0,{0,}0,^0,:4,=4,p4,t4,c3,+4,(2s,u1s,)20,*30,g4,h4
         autocmd BufRead,BufNewFile  *.c,*.h,*.cc,*.cpp  setlocal cinkeys=0{,0},:,0#,!<C-F>,o,O,e          autocmd BufRead,BufNewFile  *.c,*.h,*.cc,*.cpp  setlocal cinkeys=0{,0},:,0#,!<C-F>,o,O,e
 " vytvaranie hlaviciek novych *.c, *.h suborov  
         autocmd BufNewFile  *.c,*.cc,*.cpp      0r ~/.vim/skelet.c  
         autocmd BufNewFile       *.h    call MakeHeader()  
 augroup END  augroup END
 " }}}  " }}}
   
Line 392  fun! LastMod(text, ...)
Line 390  fun! LastMod(text, ...)
 endfun  endfun
 " LastMod() }}}  " LastMod() }}}
   
 " Function MakeHeader() {{{  
 " Prepare header in *.h files.  
 "  
 fun! MakeHeader()  
 " Line look variables.  
 let line = "" . bufname("%")  
 let line = substitute(line, "\\\.", "_\0", "")  
 let line1 = substitute(line, ".*", "#ifndef _\\U\\0", "")  
 let line2 = substitute(line, ".*", "#define _\\U\\0", "")  
 let line6 = "#endif /* " . line1 . " */"  
 " Writeout of sets variebles.  
 ":echo line  
 " ...  
 " Setting appropriate lines according to the prepared variables.  
 " In target file there must be sufficient number of lines, else setline() will  
 " fails. Function append() appends next line into file, see :help append  
 call setline(1, line1)  
 call append(1, line2)  
 call append(2, "")  
 call append(3, "")  
 call append(4, "")  
 call append(5, "")  
 call setline(6, line6)  
 call append(6, "")  
 endfun  
 " MakeHeader() }}}  
   
 " Function OpenAllWin() {{{  " Function OpenAllWin() {{{
 " Opens windows for all files in the command line.  " Opens windows for all files in the command line.
 " Variable "opened" is used for testing, if window for file was already opened  " Variable "opened" is used for testing, if window for file was already opened
Line 438  fun! OpenAllWin()
Line 409  fun! OpenAllWin()
 endfun  endfun
   
 if exists("g:open_all_win")  if exists("g:open_all_win")
         call OpenAllWin()          if g:open_all_win == 1
                   call OpenAllWin()
           endif
 endif  endif
 " OpenAllWin() }}}  " OpenAllWin() }}}
   

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top