Diff for vimconfig/vimrc between version 1.38 and 1.39
version 1.38, 2002/02/05 22:41:53 |
version 1.39, 2002/02/06 00:48:36 |
Line 337 if version >= 600 |
|
Line 337 if version >= 600 |
|
endif |
endif |
" FoldLongLines() }}} |
" FoldLongLines() }}} |
|
|
" Function SetVimVar() {{{ |
|
" Functions set appropriate values in variables according to line in |
|
" 'modelines' VIM_VAR: var1=value1 var2=value2 |
|
" |
|
"fun! SetVimVar() |
|
":$-5,$ call SetVimVarFromLine() |
|
"endfun |
|
" SetVimVar() }}} |
|
|
|
" Function SetVimVarFromLine() {{{ |
|
" |
|
"fun! SetVimVarFromLine() |
|
":let matx = ".* VIM_VAR: " |
|
":let curr_line = getline(".") |
|
":if match(curr_line, matx) == 0 |
|
": echo "Match on line " . "|" . curr_line |
|
": exec ":let " . substitute(curr_line, matx, "", "") |
|
":endif |
|
"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. |
Platon Group <platon@platon.org> http://platon.org/
|
|