From 441d5965a2dd56f09809a08a46ae8e02e4746839 Mon Sep 17 00:00:00 2001 From: jdhao Date: Mon, 11 Oct 2021 00:06:20 +0800 Subject: [PATCH] do not shadow default keys in normal mode It causes delay (we have to wait timeoutlen milliseconds) when we want to use the key's original command. --- core/mappings.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/mappings.vim b/core/mappings.vim index ebd9d26..c6362c4 100644 --- a/core/mappings.vim +++ b/core/mappings.vim @@ -46,8 +46,10 @@ nnoremap \d :bprevious bdelete # " Insert a blank line below or above current line (do not move the cursor), " see https://stackoverflow.com/a/16136133/6064933 -nnoremap oo printf('m`%so``', v:count1) -nnoremap OO printf('m`%sO``', v:count1) +nnoremap oo :echo 'Please use M-o> instead' +nnoremap OO :echo 'Please use M-O> instead' +nnoremap printf('m`%so``', v:count1) +nnoremap printf('m`%sO``', v:count1) " Insert a space after current character nnoremap ah