diff options
| author | jdhao <jdhao@hotmail.com> | 2020-05-10 23:52:25 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2020-05-10 23:52:25 +0800 |
| commit | 643f5dad1083f47d15fb55a0d40546cbe4905665 (patch) | |
| tree | ca7a9d1b387951e278780cfb0f65db9b59c4ecf3 | |
| parent | 1938df08b82e9c2e6ee30d55015cf76939ce3c6b (diff) | |
remove arrow key nope mapping.
Now I am familiar with h,j,k,l, I do not need to force myself to use them.
| -rw-r--r-- | mappings.vim | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/mappings.vim b/mappings.vim index 62c118d..5a7bded 100644 --- a/mappings.vim +++ b/mappings.vim @@ -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>``' |
