1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

remove arrow key nope mapping.

Now I am familiar with h,j,k,l, I do not need to force myself to use them.
This commit is contained in:
jdhao 2020-05-10 23:52:25 +08:00
parent 1938df08b8
commit 643f5dad10

View File

@ -50,16 +50,6 @@ nnoremap <silent> \d :bprevious <bar> bdelete #<CR>
" Toggle search highlight, see https://stackoverflow.com/a/26504944/6064933
nnoremap <silent><expr> <Leader>hl (&hls && v:hlsearch ? ':nohls' : ':set hls')."\n"
" Disable arrow key in vim, see https://superuser.com/q/599150/736190
nnoremap <Up> <nop>
nnoremap <Down> <nop>
nnoremap <Left> <nop>
nnoremap <Right> <nop>
inoremap <Up> <nop>
inoremap <Down> <nop>
inoremap <Left> <nop>
inoremap <Right> <nop>
" Insert a blank line below or above current line (do not move the cursor),
" see https://stackoverflow.com/a/16136133/6064933
nnoremap <expr> oo 'm`' . v:count1 . 'o<Esc>``'