I have a session problem, I can't find out how to resolve.
This is my session configuration in _vimrc:
set
sessionoptions=blank,buffers,curdir,folds,tabpages,winsize,resize,winpos
map <F12>s :mksession! C:/Progra~1/Vim/vimfiles/sessions/RW.ses <cr>
map <F12>r :source C:/Progra~1/Vim/vimfiles/sessions/RW.ses <cr>
" Updates/make a session
function! UpdateSession()
let b:sessionfile = 'C:/Progra~1/Vim/vimfiles/sessions/RW.ses'
exe "mksession! " . b:sessionfile
endif
endfunction
" Loads a session if it exists
function! LoadSession()
let b:sessionfile = 'C:/Progra~1/Vim/vimfiles/sessions/RW.ses'
exe 'source ' b:sessionfile
endfunction
au VimEnter * :call LoadSession()
au VimLeave * :call UpdateSession()
map <leader>m :call UpdateSession()<CR>
------------------------------------------------------------------------------------
Always the same error when I open GVIM:
Error detected while processing C:/Progra~1/Vim/vimfiles/sessions/
RW.ses:
E163: There is only one file to edit
Press enter or type command to continue
BTW where can I find the message history?
Some errors are passing so quick that I can't read them in time :-)
--
You received this message from the "vim_use" 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
No comments:
Post a Comment