I noticed that the key equivalents for next/previous tab on the Window
menu in Safari now are Cmd-Tab and Cmd-Shift-Tab instead of Cmd-} and
Cmd-{ which are what MacVim uses (taken from Safari 3 on Tiger).
Would anybody object if I update the MacVim key equivalents to be the
same as Safari? (I noticed that Cmd-} and Cmd-{ still work in Safari
but the way it stands with MacVim I can only support one key
equivalent so I can't do the same thing.)
Björn
My vote: For me, ctrl-tab is awkward to type, and shift-ctrl-tab is
even worse. I'd stick with the current settings at least until Snow
Leopard comes out. If ctrl-tab is the new cross-app default in SL
(i.e. what's used in Safari _and_ Terminal.app :-P), I'm fine with
changing the shortcut, as it's then arguably the system default, but
for now, I wouldn't change it.
Nico
Something like
:nmap <D-1> :tabn 1<CR>
:nmap <D-2> :tabn 2<CR>
:nmap <D-3> :tabn 3<CR>
...
should do the trick (you may also want to make the mapping in insert
mode, see ":h map-modes").
Björn
Agreed. I don't really want to change it myself since I am used to
<D-}>/<D-{>. I'll leave it the way it is for now.
Thanks for the feedback,
Björn
You can also use the normal mode command <tabnumber>gt (e.g. 1gt, 2gt
etc.) to switch tabs. Thus shortening the mappings a tiny bit:
:nmap <D-1> 1gt
...
Or add this to your .gvimrc:
for i in range(1, 9)
exec "nnoremap <D-".i."> ".i."gt"
endfor
;)
Best regards,
Niklas
All macvim extensions are documented in the help that comes with
MacVim, see `:h macvim` for the MacVim help page.
Nico