diff --git a/autoload/startify.vim b/autoload/startify.vim index ca07da5..11a8f3e 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -275,7 +275,7 @@ function! s:show_sessions(cnt) abort let index = s:get_index_as_string(idx) call append('$', ' ['. index .']'. repeat(' ', (3 - strlen(index))) . fnamemodify(sfiles[i], ':t:r')) - execute 'nnoremap '. index .' :source '. fnameescape(sfiles[i]) .'' + execute 'nnoremap ' index ':source' fnameescape(sfiles[i]) '' endfor return idx @@ -291,7 +291,7 @@ function! s:show_bookmarks(cnt) abort let index = s:get_index_as_string(cnt) call append('$', ' ['. index .']'. repeat(' ', (3 - strlen(index))) . fname) - execute 'nnoremap '. index .' :edit '. fnameescape(fname) . s:chdir + execute 'nnoremap ' index ':edit' fnameescape(fname) s:chdir endfor endif