Reason for my question: It's not the first time I have cancelled my arrow keys in vim, and the improvments in my typing is again tremendous. I wish to keep arrow keys non effective inside vim.

HOWEVER: Like the last time, I stumble on the same thing that made me remove the arrow disabling.

I cannot navigate between the proposals of autocompletion. I simply can't if my arrows are "cancelled". Hjkl are taken as letters, not move commands here.

what should be corrected in my .vimrc file ?:

noremap  <Up> ""
noremap! <Up> <Esc>
noremap  <Down> ""
noremap! <Down> <Esc>
noremap  <Left> ""
noremap! <Left> <Esc>
noremap  <Right> ""
noremap! <Right> <Esc>

You should be able to use ctrlp and ctrln for the previous/next item on the list.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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