Loading ...
Sorry, an error occurred while loading the content.

Re: Mapping Cmd keys in terminal

Expand Messages
  • Phil Dobbin
    ... Hash: SHA1 ... 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
    Message 1 of 2 , Mar 10, 2012
    • 0 Attachment
      Hash: SHA1

      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
      > terminal.

      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
      Vim isn't).



      - --
      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
    Your message has been successfully submitted and would be delivered to recipients shortly.