vim: Disable arrow keys in normal mode

This commit is contained in:
Oliver Davies 2021-05-06 21:49:52 +01:00
parent 1b856e361f
commit 25fcc5279e

View file

@ -54,6 +54,12 @@ nnoremap <leader>pv :Vex<CR>
nnoremap <Leader>so :so ~/.config/nvim/init.vim<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
map <C-s> <esc>:w<CR>
imap <C-s> <esc>:w<CR>