Friday, May 13, 2016

Disabling arrow key in insert mode

Hello,

I'm trying to disable the arrow keys in insert mode. I added the following in my vimrc:

inoremap <Left> <Esc>
inoremap <Right> <Esc>
inoremap <Up> <Esc>
inoremap <Down> <Esc>
inoremap <PageUp> <Esc>
inoremap <PageDown> <Esc>

When I'm in insert mode, I now can't navigate left and right.
However, and I press up or down, the cursor still moves and I can still navigate.

Any idea how that could be?

Thank you

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: