From 881246ed5c47265736af39e7010eb8b26c677d73 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 20 Dec 2016 11:39:27 +0100 Subject: [PATCH] Mappings: add s:nowait to j and k --- autoload/startify.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/startify.vim b/autoload/startify.vim index 600e96e..34bff70 100644 --- a/autoload/startify.vim +++ b/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 j j + execute 'nnoremap '. s:nowait 'j j' endif if !empty(maparg('k', 'n')) - nnoremap k k + execute 'nnoremap '. s:nowait 'k k' endif endfunction