vimr icon indicating copy to clipboard operation
vimr copied to clipboard

Request: command-shift-[ and command-shift-] to select next or previous tab, respectively

Open hobbes3 opened this issue 7 years ago • 5 comments

Please enable the following shortcut:

command-shift-[ - Next tab command-shift-] - Previous tab

Every major application, like Terminal, Finder, Chrome, has this shortcut and I find it incredibly useful. The problem is even subconsciously try to use it in Vimr.

hobbes3 avatar Sep 25 '18 10:09 hobbes3

What about ctl+tab

J-Liu avatar Sep 26 '18 02:09 J-Liu

ctrl-tab and ctrl-shift-tab also works, but it's stupidly awkward to press. Support both I guess.

hobbes3 avatar Sep 26 '18 04:09 hobbes3

You can try adding these mappings to your init.vim:

if has('gui_vimr')
    nnoremap <S-D-{> :tabp<CR>
    vnoremap <S-D-{> :tabp<CR>
    inoremap <S-D-{> :tabp<CR>
    nnoremap <S-D-}> :tabn<CR>
    vnoremap <S-D-}> :tabn<CR>
    inoremap <S-D-}> :tabn<CR>
endif

fanzeyi avatar Sep 29 '18 23:09 fanzeyi

@fanzeyi This is a good workaround for now, but it doesn't compare to a native UI support since you can't use these mappings in insert mode.

Also I'm a little disappointed that the tabs aren't actual UI tabs. You can't drag them around; so you can't do neat shortcuts like drag a tab from one window to another.

hobbes3 avatar Oct 09 '18 20:10 hobbes3

+1 for this feature. I'd love to see gui tab support like MacVim has. I'm experimenting with switching and this is quite a hurdle. I am so accustomed to cmd-shift-[ and ]. fanzeyi's workaround works and I could get used to vim tabs I suppose. :)

silent-e avatar Mar 06 '23 23:03 silent-e