Article

How to not use the arrow keys any more in vim

I have been trying to wrap my head around the VIM editor for a few months. Unfortunately I do not have enough discipline to use h-j-k-l as my movement keys. But there is a solution that will teach me.

I found it deep inside the .vimrc of my colleague Fabian.

nnoremap <up>    <nop>
nnoremap <down>  <nop>
nnoremap <left>  <nop>
nnoremap <right> <nop>
inoremap <up>    <nop>
inoremap <down>  <nop>
inoremap <left>  <nop>
inoremap <right> <nop>

This turns off the arrow keys. A really obvious way of doing it ;)

I will add this to my .vimrc right away!

Wish me luck!

  • vim

Replies

To reply from the fediverse, follow @robert@rocu.de or look up the address of this post from your account.