Clarity
Clarity

Reputation: 53

How to map Cmd + Shift + ] to switch tabs in vim

Is it possible to map "Cmd + Shift + ]" to switch tabs in vim? If so, what should I add to my .vimrc file?

Thanks

Upvotes: 0

Views: 224

Answers (1)

Tumbler41
Tumbler41

Reputation: 432

I don't use a Mac, but I believe that you cannot chain and Shift. Might I suggest Alt? And since Shift+] is just }, give this a try:

noremap <A-}> gt

or

noremap <A-}> :tabnext<CR>

Then you should be able to use Alt+Shift+] to move through your tabs.

Upvotes: 1

Related Questions