Diff for vimconfig/vimrc between version 1.50 and 1.51
version 1.50, 2002/04/06 17:25:28 |
version 1.51, 2002/04/19 16:23:12 |
|
|
|
|
" Set this, if you will open all windows for files specified |
" Set this, if you will open all windows for files specified |
" on the commandline at vim startup. |
" on the commandline at vim startup. |
"let g:open_all_win=1 |
let g:open_all_win=1 |
let g:open_all_win=0 |
|
|
|
" Settings for folding long lines |
" Settings for folding long lines |
let g:fold_long_lines=300 |
let g:fold_long_lines=300 |
|
|
" reload. |
" reload. |
" |
" |
function! OpenAllWin() |
function! OpenAllWin() |
let i = 0 |
" save Vim option to variable |
if !exists("opened") |
let s:save_split = &splitbelow |
while i < argc() - 1 |
set splitbelow |
split |
|
n |
let s:i = 1 |
let i = i + 1 |
if g:open_all_win == 1 |
|
while s:i < argc() |
|
if bufwinnr(argv(s:i)) == -1 " buffer doesn't exists or doesn't have window |
|
exec ":split " . argv(s:i) |
|
endif |
|
let s:i = s:i + 1 |
endwhile |
endwhile |
endif |
endif |
let opened = 1 |
|
|
" restore Vim option from variable |
|
if s:save_split |
|
set splitbelow |
|
else |
|
set nosplitbelow |
|
endif |
endfunction |
endfunction |
|
|
if exists("g:open_all_win") |
if exists("g:open_all_win") |
if g:open_all_win == 1 |
if g:open_all_win == 1 |
call OpenAllWin() |
call OpenAllWin() |
|
" turn g:open_all_win off after opening all windows |
|
" it prevents reopen windows after 2nd sourcing .vimrc |
|
let g:open_all_win = 0 |
endif |
endif |
endif |
endif |
" OpenAllWin() }}} |
" OpenAllWin() }}} |
Platon Group <platon@platon.org> http://platon.org/
|
|