Disallowed arrow keys

This commit is contained in:
trey 2018-08-25 14:22:55 -04:00
parent d5656cec61
commit 005af30223
1 changed files with 19 additions and 0 deletions

19
.vimrc
View File

@ -45,6 +45,16 @@ inoremap :q <Esc>:q
inoremap yy <Esc>yy
inoremap ddd <Esc>dd
" Force me to stop using arrow keys
inoremap <Left> <Nop>
nnoremap <Left> <Nop>
inoremap <Right> <Nop>
nnoremap <Right> <Nop>
inoremap <Up> <Nop>
nnoremap <Up> <Nop>
inoremap <Down> <Nop>
nnoremap <Down> <Nop>
" Fix Home/End/Delete
set backspace=indent,eol,start
"fixdel
@ -60,6 +70,15 @@ set statusline=[%n]\ %<%F\ \ \ [%M%R%H%W%Y][%{&ff}]\ \ %=\ line:%l/%L\ col:%c\
"set spell spelllang=en
"
" Force me to stop using arrow keys
inoremap <Left> <Esc>
nnoremap <Left> <Nop>
inoremap <Right> <Esc>
nnoremap <Right> <Nop>
inoremap <Up> <Esc>
nnoremap <Up> <Nop>
inoremap <Down> <Esc>
nnoremap <Down> <Nop>
" Change cursor from block to vertical pipe when in insert mode