Re: Mapping Cmd keys in terminal
- -----BEGIN PGP SIGNED MESSAGE-----
On 10/03/2012 00:23, tonymcdaniel wrote:
> I'm using the MacVim version of vim with an alias command:
> alias vim='/Applications/MacVim.app/Contents/MacOS/Vim'
> but I've noticed that some of the keyboard shortcuts that I've defined
> in my .vimrc aren't working in the terminal. Specifically, any mapping
> that uses the command key won't work.
> For example, I have the following in .vimrc
> nnoremap <D-[> <<
> which reduces the indenting on lines.
> One part of the problem was that iTerm2 had the shortcut mapped to
> switch to the previous tab. I was able to change this in the keyboard
> preference pane.
> I'm trying to get vim working the same regardless of whether I'm in
> iTerm2 or MacVim, and missing these commands is a killer in the
As far as I'm aware you can't map the cmd key in console Vim: it belongs
to the OS before console Vim even sees it.
I may be wrong but I believe I've seen this question asked before on
`vim_use@...` & recently on Stack Overflow & that was the
general consensus (Mac Vim, iTerm2, etc, are built via Xcode, console
But masters, remember that I am an ass.
Though it be not written down,
yet forget not that I am an ass.
Wm. Shakespeare - Much Ado About Nothing
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: §auto-key-locate cert pka ldap hkp://keys.gnupg.net
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
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