Use :SS! to force overwriting a potentially existing session

This can be used to avoid the following prompt when using :SSave

  "Session already exists. Overwrite?  [y/n]"

References #295
This commit is contained in:
Marco Hinz 2017-11-21 20:13:48 +01:00
parent 22ccf58613
commit 95d182979e
No known key found for this signature in database
GPG key ID: 1C980A1B657B4A4F
2 changed files with 4 additions and 4 deletions

View file

@ -56,8 +56,8 @@ function! s:extinction()
endif
endfunction
command! -nargs=? -bar -complete=customlist,startify#session_list SSave call startify#session_save(<f-args>)
command! -nargs=? -bar -complete=customlist,startify#session_list SLoad call startify#session_load(<f-args>)
command! -nargs=? -bar -complete=customlist,startify#session_list SLoad call startify#session_load(<f-args>)
command! -nargs=? -bar -bang -complete=customlist,startify#session_list SSave call startify#session_save(<bang>0, <f-args>)
command! -nargs=? -bar -bang -complete=customlist,startify#session_list SDelete call startify#session_delete(<bang>0, <f-args>)
command! -nargs=0 -bar SClose call startify#session_close()
command! -nargs=0 -bar Startify noautocmd enew | call startify#insane_in_the_membrane()