Преглед изворни кода

make commands take session names

Marco Hinz пре 12 година
родитељ
комит
5c064488b3
2 измењених фајлова са 5 додато и 2 уклоњено
  1. 3 0
      doc/startify.txt
  2. 2 2
      plugin/startify.vim

+ 3 - 0
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*

+ 2 - 2
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(<args>)
-command! -nargs=? -bar SLoad call startify#load_session(<args>)
+command! -nargs=? -bar SSave call startify#save_session(<f-args>)
+command! -nargs=? -bar SLoad call startify#load_session(<f-args>)
 
 augroup startify
   autocmd!