diff --git a/autoload/startify.vim b/autoload/startify.vim index 38a2369..23126c9 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -702,6 +702,11 @@ function! s:set_mappings() abort execute "nnoremap ". s:nowait_string ." :call startify#open_buffers()" execute "nnoremap ". s:nowait_string ." <2-LeftMouse> :call startify#open_buffers()" + " Without these mappings n/N wouldn't work properly, since autocmds always + " force the cursor back on the index. + nnoremap n ' j'[v:searchforward].'n' + nnoremap N 'j '[v:searchforward].'N' + for k in keys(s:entries) execute 'nnoremap '. s:entries[k].nowait s:entries[k].index \ ':call startify#open_buffers('. string(k) .')'