From 967ea449f5fdb4ceec9a7fdc299308ae3ae69c7a Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Wed, 22 Feb 2017 20:10:05 +0100 Subject: [PATCH] Make take register References #272. --- autoload/startify.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/startify.vim b/autoload/startify.vim index 2053220..36cc1a7 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 normal! gp" + execute "nnoremap ". s:nowait ." :enew execute 'normal! \"'.v:register.'gp'" " Without these mappings n/N wouldn't work properly, since autocmds always " force the cursor back on the index.