| version 1.31, 2002/01/25 21:43:59 |
version 1.32, 2002/01/25 22:00:11 |
|
|
| " Automatic change date in *.html files. |
" Automatic change date in *.html files. |
| " |
" |
| fun! LastMod(text, ...) |
fun! LastMod(text, ...) |
| mark d |
mark d |
| let line = a:text . strftime("%Y %b %d %X") " text of changed line |
let line = a:text . strftime("%Y %b %d %X") " text of changed line |
| let find = "g/^" . a:text " regexpr to find line |
let find = "g/^" . a:text " regexpr to find line |
| let matx = "^" . a:text " ...if line was found |
let matx = "^" . a:text " ...if line was found |
| exec find |
exec find |
| let curr_line = getline(".") |
let curr_line = getline(".") |
| if match(curr_line, matx) == 0 |
if match(curr_line, matx) == 0 |
| call setline(line("."), line) |
call setline(line("."), line) |
| exec "'d" |
exec "'d" |
| endif |
endif |
| endfun |
endfun |
| """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}} |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}} |
| " Function MakeHeader() {{{ |
" Function MakeHeader() {{{ |
|
|
| " reload. |
" reload. |
| " |
" |
| fun! OpenAllWin() |
fun! OpenAllWin() |
| let i = 0 |
let i = 0 |
| if !exists("opened") |
if !exists("opened") |
| while i < argc() - 1 |
while i < argc() - 1 |
| split |
split |
| n |
n |
| let i = i + 1 |
let i = i + 1 |
| endwhile |
endwhile |
| endif |
endif |
| let opened = 1 |
let opened = 1 |
| endfun |
endfun |
| |
|
| if exists("g:open_all_win") |
if exists("g:open_all_win") |
|
|
| " If there is set equalprg to source indenting (ie. perltidy for perl sources) |
" If there is set equalprg to source indenting (ie. perltidy for perl sources) |
| " we have not to executes "'f" at the end, else we will got "Mark not set" |
" we have not to executes "'f" at the end, else we will got "Mark not set" |
| " error message. |
" error message. |
| if &equalprg == "" |
if &equalprg == "" |
| exec "normal mfggvG$='f" |
exec "normal mfggvG$='f" |
| else |
else |
| exec "normal mfggvG$=" |
exec "normal mfggvG$=" |
| endif |
endif |
| endfun |
endfun |
| """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}} |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}} |
| " Function UnquoteMailBody() {{{ |
" Function UnquoteMailBody() {{{ |