This script replicates the problem, simply "gvim -u
test.vim" (assuming you call this 'test.vim')


set nocp
set viminfo=c,!,<1000,'1000
set
sessionoptions=globals,buffers,slash,localoptions,folds,tabpages,unix



fun TestLeave()
        let g:WinCol=&columns
        wv! test.viminfo
        mks! test.sessinfo
endfunc

fun TestStart()
        if exists("g:WinCol")
                let &columns=g:WinCol
        endif
endfunc


au VimLeave * nested :call TestLeave()
au GUIEnter * nested :call TestStart()

" load our viminfo/sessioninfo


rv test.viminfo
so test.sessinfo

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui