diff --git a/autoload/startify.vim b/autoload/startify.vim index ce3d756..cd65848 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -731,7 +731,7 @@ function! s:set_mappings() abort execute "nnoremap ". s:nowait ." v :call set_mark('V')" execute "nnoremap ". s:nowait ." :call startify#open_buffers()" execute "nnoremap ". s:nowait ." <2-LeftMouse> :call startify#open_buffers()" - execute "nnoremap ". s:nowait ." :enew execute 'normal! \"'.v:register.'gp'" + execute "nnoremap ". s:nowait ." :enew execute 'normal! \"'.(v:register=='\"'?'*':v:register).'gp'" " Without these mappings n/N wouldn't work properly, since autocmds always " force the cursor back on the index.