Hello Adrian, ... Thank you. I think some function like that might be helpful. ... No, I don t believe in GUIs. Cheers, Arvid -- [ Arvid Warnecke ][ arvid (at)
Message 1 of 8
, Feb 26
On Tue, Feb 26, 2013 at 08:21:23AM -0800, Adrian Luff wrote:
> I use the following lines in my .vimrc…
> > " Auto save/load session
> > function! CheckSessionFile()
> > if filereadable(expand("$HOME/.vim/session/default.vim"))
> > source $HOME/.vim/session/default.vim
> > endif
> > endfunction
> > if has('gui_running')
> > autocmd VimLeave * mksession! $HOME/.vim/session/default.vim
> > autocmd VimEnter * nested call CheckSessionFile()
> > autocmd * SessionLoadPost source $MYVIMRC
> > endif
> This automatically saves a session when GUI Vim leaves and loads the
> session file if it exists on start up.
Thank you. I think some function like that might be helpful.
> It may not work well for you since it sounds like you're always in
> terminal Vim but I thought I'd pass it along.
No, I don't believe in GUIs.
[ Arvid Warnecke ][ arvid (at) nostalgix (dot) org ]
[ IRC/OPN: "madhatter" ][ http://www.nostalgix.org ]
---[ ThreePiO was right: Let the Wookiee win. ]---
Your message has been successfully submitted and would be delivered to recipients shortly.
Changes have not been saved
Press OK to abandon changes or Cancel to continue editing
Your browser is not supported
Kindly note that Groups does not support 7.0 or earlier versions of Internet Explorer.
We recommend upgrading to the latest Internet Explorer, Google Chrome, or Firefox. If you are using IE 9 or later, make sure you turn off Compatibility View.