Friday, May 13, 2016

Re: Disabling arrow key in insert mode

Hello, Thank you for the answer. I use this to force myself not to use the arrow key.

I tried using <Nop> but the behavior is the same: I can still go up and down.

Here is the whole part of my .vimrc that deals with arrow keys:

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

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

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



Could it be that a plugin reactivates them? If yes is there a way to test if a key has been remaped?

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: