0

I'm used to using cmd-option + arrows to switch between tabs in Chrome. I'd like to do the same in Vim without having to learn vimscript right way. Any suggestions?

freddyrangel
  • 1,353
  • 1
  • 11
  • 20

2 Answers2

2

Something like

:nnoremap <D-A-Down> <C-PageDown>
:nnoremap <D-A-Up> <C-PageUp>

should do it. The <D-> modifier is Mac-specific. For other options, see

:help keycodes
benjifisher
  • 5,054
  • 16
  • 18
2

You can use some alternative mappings. The terminal may not play nice with some of these because <Tab> is a control key already.

Something like:

nnoremap <C-t> :tabe<CR>                                                        
nnoremap <C-tab> :tabn<CR>                                                
nnoremap <C-S-tab> :tabp<CR>

This will not necessarily work depending on your terminal and terminal settings, so you would just have to learn to use other navigation keys.

Explosion Pills
  • 188,624
  • 52
  • 326
  • 405