On Jun 9, 2011, Jeroen Budts wrote:

> I'm wondering if there is a shortcut in vim to switch between two
> tabs, similar to CTRL-^ to switch between two buffers.
> Suppose i'm working in tab 2 and i switch to tab 4 (4gt), then i'd
> like to be able to use a simple shortcut to switch back to the
> previous tab (S-CTRL-^ or something similar). Does something like
> that exist?

Here's the relevant portion of my .gvimrc — I'm on a Mac, so I'm using
command-key equivalents. You'll want to map to keystrokes that you have
on your platform.

" Command-pagedown - Next tab
map <C-D-L> gt
" Command-pageup - Previous tab
map <C-D-K> gT
" Option-Command-Right - Next tab (a la browsers, et al)
map <M-C-D-]> gt
" Option-Command-Left - Previous tab (a la browsers, et al)
map <M-C-D-\> gT

Dave

-- 
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

Reply via email to