Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Sobota, 24. október 2026

Rozdiely pre vimconfig/vimrc medzi verziami 1.34 a 1.35

verzia 1.34, 2002/02/02 05:10:56 verzia 1.35, 2002/02/05 19:22:56
Riadok 3 
Riadok 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$
   
Riadok 24  endif
Riadok 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 ||
Riadok 35  else
Riadok 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
Riadok 52  let g:cflags="-Wall -pedantic"
Riadok 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
Riadok 62  let g:autolastmod=1
Riadok 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
   
Riadok 108  set vb t_vb=
Riadok 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
Riadok 125  inoremap <C-B>    <S-Left>
Riadok 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
Riadok 152  imap <C-O><C-V> <Esc>:split ~/.vim<CR>
Riadok 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
Riadok 165  noremap Za mzggvGza'z
Riadok 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()
Riadok 176  command! -nargs=0 OpenAllWin call OpenAl
Riadok 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 {{{
Riadok 186  augroup VimConfig
Riadok 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!
Riadok 202  augroup C
Riadok 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
Riadok 215  augroup HtmlCgi
Riadok 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.
Riadok 257  if version >= 600
Riadok 289  if version >= 600
                 endif                  endif
         endfun          endfun
 endif  endif
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " ChangeFoldMethod() }}}
   
 " Function FoldLongLines() {{{  " Function FoldLongLines() {{{
 "  "
 if version >= 600  if version >= 600
Riadok 298  if version >= 600
Riadok 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
Riadok 306  endif
Riadok 340  endif
 "fun! SetVimVar()  "fun! SetVimVar()
 ":$-5,$ call SetVimVarFromLine()  ":$-5,$ call SetVimVarFromLine()
 "endfun  "endfun
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}  " SetVimVar() }}}
   
 " Function SetVimVarFromLine() {{{  " Function SetVimVarFromLine() {{{
 "  "
 "fun! SetVimVarFromLine()  "fun! SetVimVarFromLine()
Riadok 317  endif
Riadok 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.
Riadok 331  if exists("g:autolastmod")
Riadok 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.
 "  "
Riadok 347  fun! LastMod(text, ...)
Riadok 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.
 "  "
Riadok 373  call append(5, "")
Riadok 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
Riadok 395  endfun
Riadok 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" .
Riadok 418  fun! CallProg()
Riadok 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 = ""
Riadok 460  fun! Compile(do_chdir)
Riadok 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()
Riadok 473  fun! Indent()
Riadok 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
Riadok 506  endif
Riadok 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, ...)
Riadok 518  fun! ReadFileAboveCursor(file, ...)
Riadok 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
Riadok 528  if &t_Co > 2 || has("gui_running")
Riadok 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
Riadok 538  hi User4 term=inverse,bold  cterm=invers
Riadok 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:
Odstranené z verzie1.34  
zmenené riadky
  Pridané vo verzii1.35

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok