Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to create a mapping for Shift+Alt+O in Vim. It works good in GUI version (gvim), but in console Vim decides that I do command "insert a row above this line and insert insert mode" (Shft+O). My mapping looks like this:

map <S-A-o> :CommandT<Return>

How can I teach Vim to perform :CommandT on "Shift+Alt+O" (it's a NetBeans shortcut which I used for 4 years, so I'm really addicted to it).

share|improve this question

Try adding this to your .vimrc:

set <a-s-o>=^]O

To enter ^]O do <c-v><a-s-o>.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .