From 5c064488b36b004591316e793262b67531ad7c8c Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Wed, 24 Apr 2013 13:46:11 +0200 Subject: [PATCH] make commands take session names --- doc/startify.txt | 3 +++ plugin/startify.vim | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/startify.txt b/doc/startify.txt index 2d86463..d363eac 100644 --- a/doc/startify.txt +++ b/doc/startify.txt @@ -106,6 +106,9 @@ There are only two commands for handling sessions: :SLoad load a session :SSave save a session +These take either 0 or 1 argument. If you don't specify the session name as an +argument, they will just ask for it. + ============================================================================== 5. About the author *startify-author* diff --git a/plugin/startify.vim b/plugin/startify.vim index b23b1fa..3c8c4d0 100644 --- a/plugin/startify.vim +++ b/plugin/startify.vim @@ -11,8 +11,8 @@ let g:loaded_startify = 1 " Init {{{1 let g:startify_session_dir = resolve(expand(get(g:, 'startify_session_dir', '~/.vim/session'))) -command! -nargs=? -bar SSave call startify#save_session() -command! -nargs=? -bar SLoad call startify#load_session() +command! -nargs=? -bar SSave call startify#save_session() +command! -nargs=? -bar SLoad call startify#load_session() augroup startify autocmd!