Isn't Apple-T already the shortcut for creating new tabs in MacVim by
default?
---
David Zhou
da...@nodnod.net
You could try <D-T>. I don't know if there is something special about
the existing tab mapping, but I use <D-...> for mapping many other
things like <D-1>, <D-2> for tab shortcuts.
macmenu &File.New\ Tab key=<nop>
nnoremap <D-t> whatever you want...
It must be in your vimrc or gvimrc as the unbinding will only work if it
happens at startup time for a Vim instance. The :menu command without
parameters is helpful to find the exact text to use to unbind menu item
keys, e.g. I need
macmenu &File.Open\ Tab\.\.\.<Tab>:tabnew key=<nop>
nnoremap <D-T> something
to change the meaning of apple-shift-T, but there was no way I could
figure that out just by looking at the menu.
:help :macmenu
:help <D-
:help showing-menus
Ben.
This *must* go in .gvimrc, not .vimrc, otherwise the "macmenu" command
will be overridden by the one that sets up the default menus.
You could also just symlink .gvimrc to .vimrc and include these in an
"if has('gui_running')" section. I'm not sure if that's advisable
though.
Hope that helps!
Jason
You want a little t, not a big T. What you have in your map is command+shift+T.
Ben.