فهرست منبع

Mappings: add s:nowait to j and k

Marco Hinz 9 سال پیش
والد
کامیت
881246ed5c
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      autoload/startify.vim

+ 2 - 2
autoload/startify.vim

@@ -738,10 +738,10 @@ function! s:set_mappings() abort
   " Prevent 'nnoremap j gj' mappings, since they would break navigation.
   " (One can't leave the [x].)
   if !empty(maparg('j', 'n'))
-    nnoremap <buffer> j j
+    execute 'nnoremap <buffer>'. s:nowait 'j j'
   endif
   if !empty(maparg('k', 'n'))
-    nnoremap <buffer> k k
+    execute 'nnoremap <buffer>'. s:nowait 'k k'
   endif
 endfunction