Hi Roy! On Do, 09 Jun 2011, Roy Fulbright wrote:
> > On Do, 09 Jun 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? > > > > I don't think there is. You can however script yourself a solution: > > > I had the same problem and created the following mappings. Since my > leader character is the backslash, the '[' and ']' characters are very > convenient. > > noremap <silent><Leader>[ :tabp<CR> > noremap <silent><Leader>] :tabn<CR> This is not exactly the same. If you have 4 tabs open, and jump from tab 2 to tab 4 using :tabp will jump to tab 3, while the script will jump back to tab 2. regards, Christian -- 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
