| verzia 1.13, 2001/11/07 19:41:43 |
verzia 1.14, 2001/11/07 21:32:27 |
|
|
| " 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 |
| " Last Change: 2001 Nov 01 21:36:58 |
" Last Change: 2001 Nov 07 22:30:12 |
| " Version: 01.09.08 |
" Version: 01.09.08 |
| " Language Of Comments: English |
" Language Of Comments: English |
| |
|
|
|
| :map :split ~/.vimrc
|
:map :split ~/.vimrc
|
| :imap :split ~/.vimrc
|
:imap :split ~/.vimrc
|
| |
|
| |
" Safe delete line (don't add line to registers) |
| |
":imap "_ddi |
| |
:imap :call SafeLineDelete()
i |
| |
|
| " Mappings for folding {{{2 |
" Mappings for folding {{{2 |
| " 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 |
|
|
| :command! -nargs=0 Indent call Indent() |
:command! -nargs=0 Indent call Indent() |
| :command! -nargs=0 CallProg call CallProg() |
:command! -nargs=0 CallProg call CallProg() |
| :command! -nargs=0 UnquoteMailbody call UnquoteMailbody() |
:command! -nargs=0 UnquoteMailbody call UnquoteMailbody() |
| |
:command! -nargs=* ReadFileAboveCursor call ReadFileAboveCursor(<f-args>) |
| |
:command! -nargs=* R call ReadFileAboveCursor(<f-args>) |
| |
"################################################################# }}}1 |
| |
" Filetypes settings {{{1 |
| |
:if &filetype == "mail" |
| |
: setlocal textwidth=72 |
| |
: setlocal noautoindent |
| |
: map gqap |
| |
: imap gqapi |
| |
:endif |
| "################################################################# }}}1 |
"################################################################# }}}1 |
| " Autocomands {{{1 |
" Autocomands {{{1 |
| " Startup autocommands {{{2 |
" Startup autocommands {{{2 |
|
|
| : autocmd! |
: autocmd! |
| " Update line 'Last Change:' |
" Update line 'Last Change:' |
| : autocmd BufWritePre,FileWritePre ~/.vimrc call LastMod("\" Last Change: ") |
: autocmd BufWritePre,FileWritePre ~/.vimrc call LastMod("\" Last Change: ") |
| |
: autocmd BufWritePre,FileWritePre vimrc call LastMod("\" Last Change: ") |
| " Reread configuration of ViM if file ~/.vimrc is saved |
" Reread configuration of ViM if file ~/.vimrc is saved |
| : autocmd BufWritePost ~/.vimrc so ~/.vimrc |
: autocmd BufWritePost ~/.vimrc so ~/.vimrc |
| |
: autocmd BufWritePost vimrc so ~/.vimrc |
| :augroup END |
:augroup END |
| """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}2 |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}2 |
| " Autocommands for *.c, *.h, *.cc *.cpp {{{2 |
" Autocommands for *.c, *.h, *.cc *.cpp {{{2 |
| Riadok 543 fun! UnquoteMailbody() |
|
| Riadok 559 fun! UnquoteMailbody() |
|
| : exec ":%s/^>$//g" |
: exec ":%s/^>$//g" |
| endfun |
endfun |
| """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}2 |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}2 |
| |
" Function SafeLineDelete() {{{2 |
| |
" |
| |
fun! SafeLineDelete() |
| |
: exec "normal \"_dd" |
| |
endfun |
| |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}2 |
| |
" Function ReadFileAboveCursor() {{{2 |
| |
" |
| |
fun! ReadFileAboveCursor(file, ...) |
| |
: let str = ":" . (v:lnum - 1) . "read " . a:file |
| |
: let idx = 1 |
| |
: while idx <= a:0 |
| |
: exec "let str = str . \" \" . a:" . idx |
| |
: let idx = idx + 1 |
| |
: endwhile |
| |
: exec str |
| |
endfun |
| |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}2 |
| "################################################################# }}}1 |
"################################################################# }}}1 |
| " Gvim settings {{{1 |
" Gvim settings {{{1 |
| :if &t_Co > 2 || has("gui_running") |
:if &t_Co > 2 || has("gui_running") |