I disabled arrow keys with

noremap <Up> <Nop>
noremap <Down> <Nop>
noremap <Left> <Nop>
noremap <Right> <Nop>

I now want arrow keys back. I removed this from my .vimrc and the configuration still applies.

What is the default configuration for arrow keys that I should add to my .vimrc to make them work again?

closed as off-topic by Rich, statox Feb 7 '18 at 18:39

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question was caused by a problem that can no longer be reproduced or a simple typographical error. While similar questions may be on-topic here, this one was resolved in a manner unlikely to help future readers." – Rich, statox
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    You don't need any configuration they work by default. If you quit vim :qa! and restart it, it should work properly. – statox Feb 7 '18 at 14:48

First thing's first: did you restart Vim after altering your .vimrc? Unless you :source it manually or have autocommands set up to automate this when it is changed, it is only read on start-up.

If you remove the configuration from your .vimrc then it should no longer apply. Most likely some other part of your configuration is affecting these keys.

Try running the following command within Vim to see if your arrow keys are currently mapped, and if so, what mapped them:

:verbose nmap <Up>

If that reports No mapping found, then something else is going wrong. It's worth checking that Vim is actually receiving the arrow-key events. Try entering insert mode and then pressing the series of keystrokes:


That should tell you the keycode that Vim is receiving when you press an arrow key, and you can then investigate further why that is not resulting in movement for you.

  • I'm a dumbass and forgot to remove mapping from .vimrc. I didn't know about :verbose and it helped me find this. Thank you. – bemug Feb 7 '18 at 15:15
  • 1
    @bemug Haha easily done! Glad you've solved your issue :). – Rich Feb 7 '18 at 16:36

Not the answer you're looking for? Browse other questions tagged or ask your own question.