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

link|improve this question

67% accept rate
feedback

1 Answer

Try adding this to your .vimrc:

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

(to enter "^]O" do "<c-v><a-s-o>")

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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