ソースを参照

Remove <nowait> for index mappings

<nowait> guards against global mappings.

Problem: However, having 2 local <nowait> mappings, '1' and '11', makes no
sense, since it would always go with the former.

Solution: Remove <nowait> from all dynamically created mappings and keep it
for the fixed ones (i, b, v, ...).

If you absolutely need a <nowait> mapping for a non-fixed mapping, e.g. 'g'
(and because you use vim-commentary which maps 'gc'), see
":h startify-autocmd":

    autocmd User Startified nnoremap <buffer><nowait><silent> g ...

References #180.

Reported-by: @noscripter
Marco Hinz 10 年 前
コミット
b817cab23f
1 ファイル変更1 行追加1 行削除
  1. 1 1
      autoload/startify.vim

+ 1 - 1
autoload/startify.vim

@@ -605,7 +605,7 @@ function! s:set_mappings() abort
   nnoremap <buffer><nowait><silent> <2-LeftMouse> :call startify#open_buffers()<cr>
 
   for k in keys(s:entries)
-    execute 'nnoremap <buffer><nowait><silent>' s:entries[k].index
+    execute 'nnoremap <buffer><silent>' s:entries[k].index
           \ ':call startify#open_buffers('. string(k) .')<cr>'
   endfor