Possible Duplicate:
How to fix Ctrl + arrows in Vim?

Through the several tutorials and tips and tricks site about Vim, I think I happened to read that one can reassign a combination of keys in Vim.

I would have loved to switch between vim tabs more easily and quicker that typing :tabn or :tabp each time.

For the moment Ctrl + Left or Right arrow, makes me switch from command mode to insert mode, and pastes the character c or d according the arrow pressed.

So I plan to assign Ctrl + Arrows (Left Right) to :tabn :tabp

However as I am still relatively really new to Vim, I wonder if they may have a superuseful utility that I might not know about.

Am I safe to re-use them this way ?

marked as duplicate by Gilles, Renan, Michael Mrozek Dec 16 '12 at 1:21

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


The reason you're seeing what you are is because they're completely unassigned, and vim is processing the raw character sequence instead. Feel free to give them a useful purpose.

$ od -c <<< '<C-V><C-Left>'
0000000 033   [   1   ;   5   D  \n
$ od -c <<< '<C-V><C-Right>'
0000000 033   [   1   ;   5   C  \n

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