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.34 and 1.35

version 1.34, 2002/02/02 05:10:56 version 1.35, 2002/02/05 19:22:56
Line 3 
Line 3 
 " Maintainer:   Lubomir Host <host8@kepler.fmph.uniba.sk>  " Maintainer:   Lubomir Host <host8@kepler.fmph.uniba.sk>
 " Bugs Reports: Lubomir Host <host8@kepler.fmph.uniba.sk>  " Bugs Reports: Lubomir Host <host8@kepler.fmph.uniba.sk>
 " License:              GNU GPL  " License:              GNU GPL
 " Version:              01.09.08  " Version:              2002.02.05
 " Language Of Comments: English  
   
 " $Id$  " $Id$
   
Line 24  endif
Line 23  endif
 let c_gnu=1  let c_gnu=1
 let c_comment_strings=1  let c_comment_strings=1
 let c_space_errors=1  let c_space_errors=1
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " }}}
   
 " History and viminfo settings {{{  " History and viminfo settings {{{
 set history=10000  set history=10000
 if filewritable(expand("$HOME/.vim/viminfo")) == 1 ||  if filewritable(expand("$HOME/.vim/viminfo")) == 1 ||
Line 35  else
Line 35  else
 endif  endif
 " Don't save backups of files.  " Don't save backups of files.
 set nobackup  set nobackup
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " }}}
   
 " Status line settings {{{  " Status line settings {{{
 ":set ruler  ":set ruler
 " Display a status-bar.  " Display a status-bar.
 set laststatus=2  set laststatus=2
 set statusline=%1*%{GetID()}%0*%<%f\ %3*%m%1*%r%0*\ %2*%y%4*%w%0*%=[%b\ 0x%B]\ \ %8l,%10([%c%V/%{strlen(getline(line('.')))}]%)\ %P  set statusline=%1*%{GetID()}%0*%<%f\ %3*%m%1*%r%0*\ %2*%y%4*%w%0*%=[%b\ 0x%B]\ \ %8l,%10([%c%V/%{strlen(getline(line('.')))}]%)\ %P
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " }}}
   
 " Settings for Explorer script {{{  " Settings for Explorer script {{{
 let g:explDetailedHelp=1  let g:explDetailedHelp=1
 let g:explDetailedList=1  let g:explDetailedList=1
Line 52  let g:cflags="-Wall -pedantic"
Line 54  let g:cflags="-Wall -pedantic"
 let g:c_debug_flags="-ggdb -DDEBUG"  let g:c_debug_flags="-ggdb -DDEBUG"
 let g:makeflags=""  let g:makeflags=""
 "}}}  "}}}
 " Settings for folding long lines {{{  
 let g:fold_long_lines=300  
 " }}}  
 " Settings for AutoLastMod {{{  " Settings for AutoLastMod {{{
 " Set this to 1 if you will automaticaly change date of modification of file.  " Set this to 1 if you will automaticaly change date of modification of file.
 let g:autolastmod=1  let g:autolastmod=1
Line 62  let g:autolastmod=1
Line 61  let g:autolastmod=1
 let g:autolastmodtext="Last modified: "  let g:autolastmodtext="Last modified: "
 " }}}  " }}}
   
   
   " Priority between files for file name completion (suffixes) {{{
   " Do not give .h low priority in command-line filename completion.
   set suffixes-=.h
   set suffixes+=.aux
   set suffixes+=.bbl
   set suffixes+=.blg
   set suffixes+=.log
   set wildignore+=*.dvi
   " }}}
   
   
 " Automatically setting options in various files  " Automatically setting options in various files
 set modeline  set modeline
   
Line 108  set vb t_vb=
Line 119  set vb t_vb=
 " on the commandline at vim startup.  " on the commandline at vim startup.
 let g:open_all_win=1  let g:open_all_win=1
   
 "################################################################# }}}  " Settings for folding long lines
   let g:fold_long_lines=300
   
   " }}}
   
 " Keybord mappings {{{  " Keybord mappings {{{
 "  "
 " start of line  " start of line
Line 125  inoremap <C-B>    <S-Left>
Line 140  inoremap <C-B>    <S-Left>
   
 " Switching between windows by pressing one time CTRL-X keys.  " Switching between windows by pressing one time CTRL-X keys.
 noremap <C-X> <C-W><C-W>  noremap <C-X> <C-W><C-W>
   
 " Tip from http://vim.sourceforge.net/tips/tip.php?tip_id=173  " Tip from http://vim.sourceforge.net/tips/tip.php?tip_id=173
 noremap <C-J> <C-W>j<C-W>_  noremap <C-J> <C-W>j<C-W>_
 noremap <C-K> <C-W>k<C-W>_  noremap <C-K> <C-W>k<C-W>_
   
   " Make Insert-mode completion more convenient:
   imap <C-L> <C-X><C-L>
   
 set remap  set remap
 map <C-O><C-O> :split  map <C-O><C-O> :split
 imap <C-O><C-O> <Esc>:split  imap <C-O><C-O> <Esc>:split
Line 152  imap <C-O><C-V> <Esc>:split ~/.vim<CR>
Line 171  imap <C-O><C-V> <Esc>:split ~/.vim<CR>
 ":imap <C-D> <Esc>"_ddi  ":imap <C-D> <Esc>"_ddi
 imap <C-D> <Esc>:call SafeLineDelete()<CR>i  imap <C-D> <Esc>:call SafeLineDelete()<CR>i
   
   " Search for the current Visual selection.
   vmap S y/<C-R>=escape(@",'/\')<CR>
   
 " Mappings for folding {{{  " Mappings for folding {{{
 " Open one foldlevel of folds in whole file  " Open one foldlevel of folds in whole file
 " Note: 'Z' works like 'z' but for all lines in file  " Note: 'Z' works like 'z' but for all lines in file
Line 165  noremap Za mzggvGza'z
Line 187  noremap Za mzggvGza'z
 noremap ZA mzggvGzA'z  noremap ZA mzggvGzA'z
 noremap Zx mzggvGzx'z  noremap Zx mzggvGzx'z
 noremap ZX mzggvGzX'z  noremap ZX mzggvGzX'z
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " }}}
 "################################################################# }}}  
   " }}}
   
 " New commands {{{  " New commands {{{
 command! -nargs=1 Printf call libcallnr("/lib/libc.so.6", "printf", <args>)  command! -nargs=1 Printf call libcallnr("/lib/libc.so.6", "printf", <args>)
 command! -nargs=0 FoldLongLines call FoldLongLines()  command! -nargs=0 FoldLongLines call FoldLongLines()
Line 176  command! -nargs=0 OpenAllWin call OpenAl
Line 200  command! -nargs=0 OpenAllWin call OpenAl
 command! -nargs=0 UnquoteMailBody call UnquoteMailBody()  command! -nargs=0 UnquoteMailBody call UnquoteMailBody()
 command! -nargs=* ReadFileAboveCursor call ReadFileAboveCursor(<f-args>)  command! -nargs=* ReadFileAboveCursor call ReadFileAboveCursor(<f-args>)
 command! -nargs=* R call ReadFileAboveCursor(<f-args>)  command! -nargs=* R call ReadFileAboveCursor(<f-args>)
 "################################################################# }}}  " }}}
   
 " Autocomands {{{  " Autocomands {{{
 if has("autocmd")  if has("autocmd")
 " Autocomands for ~/.vimrc {{{  " Autocomands for ~/.vimrc {{{
Line 186  augroup VimConfig
Line 211  augroup VimConfig
         autocmd BufWritePost ~/.vimrc   so ~/.vimrc          autocmd BufWritePost ~/.vimrc   so ~/.vimrc
         autocmd BufWritePost vimrc      so ~/.vimrc          autocmd BufWritePost vimrc      so ~/.vimrc
 augroup END  augroup END
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " }}}
   
 " Autocommands for *.c, *.h, *.cc *.cpp {{{  " Autocommands for *.c, *.h, *.cc *.cpp {{{
 augroup C  augroup C
         autocmd!          autocmd!
Line 202  augroup C
Line 228  augroup C
         autocmd BufNewFile  *.c,*.cc,*.cpp      0r ~/.vim/skelet.c          autocmd BufNewFile  *.c,*.cc,*.cpp      0r ~/.vim/skelet.c
         autocmd BufNewFile       *.h    call MakeHeader()          autocmd BufNewFile       *.h    call MakeHeader()
 augroup END  augroup END
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " }}}
   
 " Autocommands for *.html *.cgi {{{  " Autocommands for *.html *.cgi {{{
 " Automatic updates date of last modification in HTML files. File must  " Automatic updates date of last modification in HTML files. File must
 " contain line "^Last modified: ", else will be date writtend on the current  " contain line "^Last modified: ", else will be date writtend on the current
Line 215  augroup HtmlCgi
Line 242  augroup HtmlCgi
         autocmd BufEnter                 *.cgi  imap <buffer> QQ </><Esc>2F<lywf>f/pF<i          autocmd BufEnter                 *.cgi  imap <buffer> QQ </><Esc>2F<lywf>f/pF<i
         autocmd BufWritePre,FileWritePre *.cgi  call AutoLastMod()          autocmd BufWritePre,FileWritePre *.cgi  call AutoLastMod()
 augroup END  augroup END
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " }}}
   
 " Autocomands for *.tcl {{{  " Autocomands for *.tcl {{{
 augroup Tcl  augroup Tcl
         autocmd!          autocmd!
         autocmd WinEnter            *.tcl       map <buffer> <C-K> :call CallProg()<CR>          autocmd WinEnter            *.tcl       map <buffer> <C-K> :call CallProg()<CR>
         autocmd BufRead,BufNewFile  *.tcl       setlocal autoindent          autocmd BufRead,BufNewFile  *.tcl       setlocal autoindent
 augroup END  augroup END
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " }}}
   
 " Autocomands for Makefile {{{  " Autocomands for Makefile {{{
 augroup Makefile  augroup Makefile
         autocmd!          autocmd!
         autocmd BufEnter            [Mm]akefile*        map <buffer> <C-K> :call CallProg()<CR>          autocmd BufEnter            [Mm]akefile*        map <buffer> <C-K> :call CallProg()<CR>
 augroup END  augroup END
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " }}}
   
 " Autocomands on Win32 {{{  " Autocomands on Win32 {{{
 if has("gui_win32")  if has("gui_win32")
         au GUIEnter * simalt ~x          au GUIEnter * simalt ~x
 endif  endif
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " }}}
   
 endif " if has("autocmd")  endif " if has("autocmd")
 "################################################################# }}}  " }}} Autocomands
   
 " Functions {{{  " Functions {{{
 " Function ChangeFoldMethod() {{{  " Function ChangeFoldMethod() {{{
 " Function for changing folding method.  " Function for changing folding method.
Line 257  if version >= 600
Line 289  if version >= 600
                 endif                  endif
         endfun          endfun
 endif  endif
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " ChangeFoldMethod() }}}
   
 " Function FoldLongLines() {{{  " Function FoldLongLines() {{{
 "  "
 if version >= 600  if version >= 600
Line 298  if version >= 600
Line 331  if version >= 600
                 redraw!                  redraw!
         endfun          endfun
 endif  endif
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " FoldLongLines() }}}
   
 " Function SetVimVar() {{{  " Function SetVimVar() {{{
 " Functions set appropriate values in variables according to line in  " Functions set appropriate values in variables according to line in
 " 'modelines' VIM_VAR: var1=value1 var2=value2  " 'modelines' VIM_VAR: var1=value1 var2=value2
Line 306  endif
Line 340  endif
 "fun! SetVimVar()  "fun! SetVimVar()
 ":$-5,$ call SetVimVarFromLine()  ":$-5,$ call SetVimVarFromLine()
 "endfun  "endfun
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " SetVimVar() }}}
   
 " Function SetVimVarFromLine() {{{  " Function SetVimVarFromLine() {{{
 "  "
 "fun! SetVimVarFromLine()  "fun! SetVimVarFromLine()
Line 317  endif
Line 352  endif
 ":      exec ":let " . substitute(curr_line, matx, "", "")  ":      exec ":let " . substitute(curr_line, matx, "", "")
 ":endif  ":endif
 "endfun  "endfun
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " SetVimVarFromLine() }}}
   
 " Function AutoLastMod() {{{  " Function AutoLastMod() {{{
 " Provides atomatic change of date in files, if it is set via  " Provides atomatic change of date in files, if it is set via
 " modeline variable autolastmod to appropriate value.  " modeline variable autolastmod to appropriate value.
Line 331  if exists("g:autolastmod")
Line 367  if exists("g:autolastmod")
         endif          endif
 endif  endif
 endfun  endfun
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " AutoLastMod() }}}
   
 " Function LastMod() {{{  " Function LastMod() {{{
 " Automatic change date in *.html files.  " Automatic change date in *.html files.
 "  "
Line 347  fun! LastMod(text, ...)
Line 384  fun! LastMod(text, ...)
                 exec "'d"                  exec "'d"
         endif          endif
 endfun  endfun
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " LastMod() }}}
   
 " Function MakeHeader() {{{  " Function MakeHeader() {{{
 " Prepare header in *.h files.  " Prepare header in *.h files.
 "  "
Line 373  call append(5, "")
Line 411  call append(5, "")
 call setline(6, line6)  call setline(6, line6)
 call append(6, "")  call append(6, "")
 endfun  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 395  endfun
Line 434  endfun
 if exists("g:open_all_win")  if exists("g:open_all_win")
         call OpenAllWin()          call OpenAllWin()
 endif  endif
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " OpenAllWin() }}}
   
 " Function CallProg() {{{  " Function CallProg() {{{
 fun! CallProg()  fun! CallProg()
         let choice = confirm("Call:", "&make\nm&ake in cwd\n" .          let choice = confirm("Call:", "&make\nm&ake in cwd\n" .
Line 418  fun! CallProg()
Line 458  fun! CallProg()
                 exec "! cd " . getcwd() . "; pwd; ./%<"                  exec "! cd " . getcwd() . "; pwd; ./%<"
         endif          endif
 endfun  endfun
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " CallProg() }}}
   
 " Function Compile() {{{  " Function Compile() {{{
 fun! Compile(do_chdir)  fun! Compile(do_chdir)
         let cmd = ""          let cmd = ""
Line 460  fun! Compile(do_chdir)
Line 501  fun! Compile(do_chdir)
                         \ substitute(getline(2), "VIMGCC", "", "g")                          \ substitute(getline(2), "VIMGCC", "", "g")
         endif          endif
 endfun  endfun
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " Compile() }}}
   
 " Function Indent() {{{  " Function Indent() {{{
 " Indents source code.  " Indents source code.
 fun! Indent()  fun! Indent()
Line 473  fun! Indent()
Line 515  fun! Indent()
                 exec "normal mfggvG$="                  exec "normal mfggvG$="
         endif          endif
 endfun  endfun
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " Indent() }}}
   
 " Function UnquoteMailBody() {{{  " Function UnquoteMailBody() {{{
 "  "
 fun! UnquoteMailBody()  fun! UnquoteMailBody()
 " Every backslash character must be escaped in function -- Nepto  " Every backslash character must be escaped in function -- Nepto
         exec "normal :%s/^\\([ ]*>[ ]*\\)*\\(\\|[^>].*\\)$/\\2/g<CR>"          exec "normal :%s/^\\([ ]*>[ ]*\\)*\\(\\|[^>].*\\)$/\\2/g<CR>"
 endfun  endfun
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " UnquoteMailBody() }}}
   
 " Function SafeLineDelete() {{{  " Function SafeLineDelete() {{{
 "  "
 fun! SafeLineDelete()  fun! SafeLineDelete()
         exec "normal \"_dd"          exec "normal \"_dd"
 endfun  endfun
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " SafeLineDelete() }}}
   
 " Function GetID() {{{  " Function GetID() {{{
 " - used in statusline.  " - used in statusline.
 " If you are root, function return "# " string --> it is showed at begin of  " If you are root, function return "# " string --> it is showed at begin of
Line 506  endif
Line 551  endif
 fun! GetID()  fun! GetID()
         return g:get_id          return g:get_id
 endfun  endfun
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " GetID() }}}
   
 " Function ReadFileAboveCursor() {{{  " Function ReadFileAboveCursor() {{{
 "  "
 fun! ReadFileAboveCursor(file, ...)  fun! ReadFileAboveCursor(file, ...)
Line 518  fun! ReadFileAboveCursor(file, ...)
Line 564  fun! ReadFileAboveCursor(file, ...)
         endwhile          endwhile
         exec str          exec str
 endfun  endfun
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " ReadFileAboveCursor() }}}
 "################################################################# }}}  " }}}
   
 " Gvim settings {{{  " Gvim settings {{{
 if &t_Co > 2 || has("gui_running")  if &t_Co > 2 || has("gui_running")
         hi Normal guibg=Black guifg=White          hi Normal guibg=Black guifg=White
Line 528  if &t_Co > 2 || has("gui_running")
Line 575  if &t_Co > 2 || has("gui_running")
         hi Constant gui=NONE          hi Constant gui=NONE
         hi Special gui=NONE          hi Special gui=NONE
 endif  endif
 "################################################################# }}}  " }}}
   
 " Colors {{{  " Colors {{{
 set background=dark  set background=dark
 hi User1 term=inverse,bold  cterm=inverse,bold ctermfg=red  hi User1 term=inverse,bold  cterm=inverse,bold ctermfg=red
Line 538  hi User4 term=inverse,bold  cterm=invers
Line 586  hi User4 term=inverse,bold  cterm=invers
 hi Folded term=standout   ctermbg=black ctermfg=Blue guifg=DarkBlue  hi Folded term=standout   ctermbg=black ctermfg=Blue guifg=DarkBlue
 hi FoldColumn term=standout ctermbg=black ctermfg=DarkBlue guibg=Grey guifg=DarkBlue  hi FoldColumn term=standout ctermbg=black ctermfg=DarkBlue guibg=Grey guifg=DarkBlue
 " }}}  " }}}
   
 " Modeline {{{  " Modeline {{{
 " vim:set ts=4:  " vim:set ts=4:
 " vim600:fdm=marker fdl=0 fdc=3 vb t_vb=:  " vim600:fdm=marker fdl=0 fdc=3 vb t_vb=:
 "################################################################# }}}  " }}}
   

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

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