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
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
i <Up> * pumvisible() ? "\<C-P>" : "\<Up>"
Last set from ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim
If anyone has an idea on how to bypass that...