Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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 ?

share|improve this question
add comment

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.

1 Answer

up vote 2 down vote accepted

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
0000007
$ od -c <<< '<C-V><C-Right>'
0000000 033   [   1   ;   5   C  \n
0000007
share|improve this answer
add comment

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