mirror of
https://github.com/lloeki/vimfiles.git
synced 2025-12-06 05:24:39 +01:00
Add session save shortcut
This commit is contained in:
parent
1412b3094d
commit
0711305c3c
1 changed files with 1 additions and 0 deletions
1
vimrc
1
vimrc
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue