Sorry, I haven't had coffee yet.
I've tried other methods and couldn't get help on that either.
Typing literally
:h <D-t>
didn't work.
Trying ˆV and the actual shortcut didn't work either.
I just found out that literal
:h <C-A>
displays cmdline.txt while
:h ^A (using ^V to enter ^A)
displays change.txt.
Why the difference?
Thanks,
Dado
On 12/10/11 9:56 AM, dado wrote:
I tried
:h cmd-key
and got
E149: Sorry, no help for cmd-key
Thanks,
Dado
On Dec 7, 1:06 pm, björn<bjorn.winck...@gmail.com> wrote:
On 6 December 2011 14:37, Tom Wieland wrote:
I'm trying to set up MacVim in a 'one file per tab' environment.
My normal setup is using the MiniBufExpl plugin with the maps
map<Tab> :bn<cr>
map<S-Tab> :bp<cr>
By default the cmd-t and cmd-w maps are used for opening and closing
tabs. The problem I have with cmd-t (<D-t>) is that it opens a new
buffer with the name "[No Name]". I'd like it to open an existing
buffer instead. Like that I can open a tab and then open a file or
drag a file to it from Finder (or the File Browser
inhttps://github.com/alloy/macvim).
By default the cmd-w map will close a tab. I'd like it to also buffer
wipe the buffer I had open in there (because by closing the tab,
having one file per tab, I'm saying that I don't want the file open
any more).
These maps should do:
map<Tab> :tabnext<cr>
map<S-Tab> :tabprevious<cr>
map<D-t> :tabedit %<cr>
map<D-w> :bwipeout :tabclose<cr>
The problem is that when I open vim, set these maps and then do a cmd-
t it will not work. Neither with e.g. map<D-t> :echo LOL<cr>.
These shortcuts are bound to menus so you have to unbind them first.
Read up on ":h cmd-key".
Björn
--
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php