Sunday, September 25, 2011

How to map CTRL + Right Arrow

I currently have the following mapping, which works fine, to move to the next tab in my edit session:
 
   noremap <silent><Leader><right> :tabnext<CR>
 
It would be much more convenient to use CTRL + Right Arrow instead of backslash (my Leader character) + Right Arrow.
I've tried:
 
   noremap <silent><C><right> :tabnext<CR>
   noremap <silent><C-right> :tabnext<CR>
 
but neither of these work. I've looked at help map, help expr, and help leader but found no answer.
Can someone show me how to map CTRL + Right Arrow?
 
Thanks in advance,
 
Roy

No comments: