Skip to content

Commit

Permalink
Persist Vim's verbosity (makes it easier to debug :RestartVim :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed May 25, 2013
1 parent b69e9ae commit 62410ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion autoload/xolox/session.vim
Expand Up @@ -3,7 +3,7 @@
" Last Change: May 25, 2013
" URL: http://peterodding.com/code/vim/session/

let g:xolox#session#version = '2.3.5'
let g:xolox#session#version = '2.3.6'

" Public API for session persistence. {{{1

Expand All @@ -20,6 +20,9 @@ function! xolox#session#save_session(commands, filename) " {{{2
call add(a:commands, '" Created by session.vim ' . g:xolox#session#version . ' on ' . strftime('%d %B %Y at %H:%M:%S.'))
call add(a:commands, '" Open this file in Vim and run :source % to restore your session.')
call add(a:commands, '')
if &verbose >= 1
call add(a:commands, 'set verbose=' . &verbose)
endif
if is_all_tabs
call add(a:commands, 'set guioptions=' . escape(&go, ' "\'))
call add(a:commands, 'silent! set guifont=' . escape(&gfn, ' "\'))
Expand Down

0 comments on commit 62410ba

Please sign in to comment.