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>
Written by Nayan Hajratwala
Related protips
1 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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#