You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having issues on default installation of this plugin.
Steps to reproduce my issue:
Install latest plugin (via pathogen + git clone)
gvim /tmp/test.txt
:w
:SaveSession (session.vim 1.7: Saved 'default' session to ~/.vim/sessions/default.vim.)
:q
gvim
During gvim startup I see an error message:
Error detected while processing function xolox#session#auto_load..54_prompt:
line 9:
E121: Undefined variable: a:var
Press ENTER or type command to continue
Please note that I'm not doing any configuration. Just installing
Here is my ~/.vim/sessions/default.vim:
" ~/.vim/sessions/default.vim: Vim session script." Created by session.vim 1.7 on 03 May 2013 at 13:24:15." Open this file in Vim and run :source % to restore your session.setguioptions=aegimrLtT
silent!setguifont=ifexists('g:syntax_on') !=1 | syntaxon | endififexists('g:did_load_filetypes') !=1 | filetypeon | endififexists('g:did_load_ftplugin') !=1 | filetypepluginon | endififexists('g:did_indent_on') !=1 | filetypeindenton | endifif &background!='dark'setbackground=dark
endifif!exists('g:colors_name') ||g:colors_name!='solarized' | colorscheme solarized | endifcallsetqflist([])
let SessionLoad =1if &cp | setnocp | endiflets:so_save= &so | lets:siso_save= &siso | setso=0siso=0letv:this_session=expand("<sfile>:p")
silentonlycd~/.vim/sessionsifexpand('%') ==''&&!&modified&&line('$') <=1&&getline(1) ==''lets:wipebuf=bufnr('%')
endifsetshortmess=aoO
badd+1/tmp/test.txt
silent! argdel *edit/tmp/test.txt
setsplitbelowsplitrightsetnosplitbelowsetnosplitrightwincmdtsetwinheight=1winwidth=1" argglobalsetlocalfdm=manualsetlocalfde=0setlocalfmr={{{,}}}
setlocalfdi=#
setlocalfdl=0setlocalfml=1setlocalfdn=20setlocalfensilent!normal!zElets:l=1- ((0*winheight(0) +20) / 41)
ifs:l < 1 | lets:l=1 | endifexes:lnormal!zt1normal!0tabnext1ifexists('s:wipebuf')
silentexe'bwipe ' . s:wipebufendifunlet!s:wipebufsetwinheight=1winwidth=20shortmess=filnxtToO
lets:sx=expand("<sfile>:p:r")."x.vim"iffile_readable(s:sx)
exe"source " . fnameescape(s:sx)
endiflet &so=s:so_save | let &siso=s:siso_savetabnext11wincmd w
doautoall SessionLoadPostunlet SessionLoad
" vim: ft=vimronowrapsmc=128
The text was updated successfully, but these errors were encountered:
Hi Ivan. Thanks for the bug report! I released a new version yesterday but unfortunately did not test the changes well enough... It should be fixed now! I'm closing this issue now, but if you have any further problems feel free to reopen this issue or create a new one. Here's hoping your second attempt to use vim-session will be more successful than the first :-).
I'm having issues on default installation of this plugin.
Steps to reproduce my issue:
gvim /tmp/test.txt
gvim
During gvim startup I see an error message:
Error detected while processing function xolox#session#auto_load..54_prompt:
line 9:
E121: Undefined variable: a:var
Press ENTER or type command to continue
Please note that I'm not doing any configuration. Just installing
Here is my ~/.vim/sessions/default.vim:
The text was updated successfully, but these errors were encountered: