Thursday, October 6, 2011

Default CTRL-PageUp and CTRL-PageDown don't work!

I've noticed for some time, CTRL-PageUp and CTRL-PageDown doesn't work for
cycling through the tabline tabs.

I've had to not only remap the URXVT mapping, but also the Virtual Terminal as
well to get this feature working properly.

$HOME/.vimrc

" These following maps should be already working, but are not
" on my console! Using Ctrl-V to send exact char.
" These are for urxvt
map [5^ :tabn<CR> " C-PageUp
map [6^ :tabp<CR> " C-PageDown

" Again, on virtual terminal using GNU Screen
map [5~ :tabn<CR> " C-PageUp
map [6~ :tabp<CR> " C-PageDown

(On this box, I couldn't duplicate which exact terminal was using ^[[5^ and
^[[6^ as both were reporting using the tilde here.)

GVIM seems to only be reporting the <PageUp> and <PageDown>.


For historical reference, the mappings are created by performing the
following within .vimrc:

map <CTRL-V> <PageUp> :tabn<CR>
map <CTRL-V> <PageDown> :tabp<CR>


VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Sep 26 2011 00:00:48)

--
Roger
http://rogerx.freeshell.org/

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment