Add session save shortcut

This commit is contained in:
Loic Nageleisen 2020-06-29 14:27:22 +02:00
parent 1412b3094d
commit 0711305c3c

1
vimrc
View file

@ -243,6 +243,7 @@ if expand('%:t') =~? 'rfc\d\+' || expand('%:t') =~? 'draft-.*-\d\{2,}'
setl textwidth=72 setl textwidth=72
endif endif
map <leader>s :mksession!<CR>
" Restore session if Session.vim exists " Restore session if Session.vim exists
function! RestoreSession() function! RestoreSession()
if argc() == 0 && filereadable("Session.vim") "vim called without arguments if argc() == 0 && filereadable("Session.vim") "vim called without arguments