aboutsummaryrefslogtreecommitdiff
path: root/core/mappings.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-10-11 00:06:20 +0800
committerjdhao <jdhao@hotmail.com>2021-10-11 00:06:20 +0800
commit441d5965a2dd56f09809a08a46ae8e02e4746839 (patch)
treec236b459ab273ee362fc87d3386387bee71cbdf7 /core/mappings.vim
parentb7fcd4e32ee50287211aebc43d76dcf0d1a3e87c (diff)
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.
Diffstat (limited to 'core/mappings.vim')
-rw-r--r--core/mappings.vim6
1 files 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 <silent> \d :<C-U>bprevious <bar> bdelete #<CR>
" Insert a blank line below or above current line (do not move the cursor),
" see https://stackoverflow.com/a/16136133/6064933
-nnoremap <expr> oo printf('m`%so<ESC>``', v:count1)
-nnoremap <expr> OO printf('m`%sO<ESC>``', v:count1)
+nnoremap oo :echo 'Please use <lt>M-o> instead'<CR>
+nnoremap OO :echo 'Please use <lt>M-O> instead'<CR>
+nnoremap <expr> <M-o> printf('m`%so<ESC>``', v:count1)
+nnoremap <expr> <M-O> printf('m`%sO<ESC>``', v:count1)
" Insert a space after current character
nnoremap <Space><Space> a<Space><ESC>h