Last Updated: February 25, 2016
·
768
· nhajratw

Prevent bad vim habits

put this in your .vimrc to prevent usage of the arrow keys and keep those fingers on the home row!

inoremap <Up> <NOP>
inoremap <Down> <NOP>
inoremap <Left> <NOP>
inoremap <Right> <NOP>
vnoremap <Up> <NOP>
vnoremap <Down> <NOP>
vnoremap <Left> <NOP>
vnoremap <Right> <NOP>

1 Response
Add your response

You can use a plugin as well https://github.com/mrmargolis/dogmatic.vim it will tell you how many times you try to use arrow keys

over 1 year ago ·