Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

Try adding this to your .vimrc:

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

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.