Rozdiely pre vimconfig/vimrc medzi verziami 1.68 a 1.69
| verzia 1.68, 2002/08/11 19:16:11 |
verzia 1.69, 2002/08/12 00:44:06 |
| Riadok 321 noremap ZX mzggvGzX'z |
|
| Riadok 321 noremap ZX mzggvGzX'z |
|
| " }}} |
" }}} |
| |
|
| " New commands {{{ |
" New commands {{{ |
| command! -nargs=1 Printf call libcallnr("/lib/libc.so.6", "printf", <args>) |
|
| command! -nargs=0 FoldLongLines call FoldLongLines() |
command! -nargs=0 FoldLongLines call FoldLongLines() |
| command! -nargs=0 Indent call Indent() |
command! -nargs=0 Indent call Indent() |
| command! -nargs=0 CallProg call CallProg() |
command! -nargs=0 CallProg call CallProg() |
|
|
| " |
" |
| if version >= 600 |
if version >= 600 |
| fun! FoldLongLines() |
fun! FoldLongLines() |
| " Get screen size: |
|
| let lines = system("`which tcsh` -f -c telltc | " . |
|
| \ "grep lines | awk '{print \$6-1}'") |
|
| let info = "<Esc>[" . lines . ";0HProcessing line " |
|
| " Set mark for return back |
" Set mark for return back |
| exec "normal mF" |
exec "normal mF" |
| " Delete line |
" Go to the first line |
| Printf(&t_dl) |
|
| exec "1go" |
exec "1go" |
| let lnum = line(".") |
let lnum = line(".") |
| let lend = line("$") |
let lend = line("$") |
| while lnum <= lend |
while lnum <= lend |
| Printf(info . lnum) |
|
| " Skip closed folds |
" Skip closed folds |
| if foldclosed(lnum) != -1 |
if foldclosed(lnum) != -1 |
| let lnum = foldclosedend(lnum) + 1 |
let lnum = foldclosedend(lnum) + 1 |
| Riadok 474 if version >= 600 |
|
| Riadok 467 if version >= 600 |
|
| break |
break |
| endif |
endif |
| endwhile |
endwhile |
| Printf(" -- OK\n") |
|
| " Skip back to the mark |
" Skip back to the mark |
| exec "normal 'F" |
exec "normal 'F" |
| redraw! |
redraw! |
Platon Group <platon@platon.sk> http://platon.sk/
|
|