vim: Disable arrow keys in normal mode
This commit is contained in:
parent
1b856e361f
commit
25fcc5279e
1 changed files with 6 additions and 0 deletions
|
@ -54,6 +54,12 @@ nnoremap <leader>pv :Vex<CR>
|
||||||
nnoremap <Leader>so :so ~/.config/nvim/init.vim<CR>
|
nnoremap <Leader>so :so ~/.config/nvim/init.vim<CR>
|
||||||
nnoremap <C-p> :GFiles<CR>
|
nnoremap <C-p> :GFiles<CR>
|
||||||
|
|
||||||
|
" Remove arrow keys
|
||||||
|
noremap <up> <nop>
|
||||||
|
noremap <down> <nop>
|
||||||
|
noremap <left> <nop>
|
||||||
|
noremap <right> <nop>
|
||||||
|
|
||||||
" Ctrl+C should write the file
|
" Ctrl+C should write the file
|
||||||
map <C-s> <esc>:w<CR>
|
map <C-s> <esc>:w<CR>
|
||||||
imap <C-s> <esc>:w<CR>
|
imap <C-s> <esc>:w<CR>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue