Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you map Command/Apple option in vim

Tags:

vim

I am going through this document and this is what I gathered.

        <Esc>                Escape key
        <C-G>                CTRL-G
        <Up>                 cursor up key
        <C-LeftMouse>        Control- left mouse click
        <S-F11>              Shifted function key 11
        <M-a>                Meta- a  ('a' with bit 8 set)
        <M-A>                Meta- A  ('A' with bit 8 set)
        <t_kd>               "kd" termcap entry (cursor down key)

However I don't see how I can map Command/Apple key here. I am using plugin mentioned here. It works great. I open a tab and then I hit Command-R and I get the list of files. I could not find where the mapping is done between Command-R and the function. I am using vim settings as mentioned here

like image 998
Roger Avatar asked Aug 31 '09 15:08

Roger


2 Answers

the modifier "D" stands for the "Command" key

like image 116
ax. Avatar answered Nov 20 '22 14:11

ax.


Or T- in gvim, but it doesn't work with all keys, e. g. not with letters. T-CR, T-F5 or T-DELETE are OK though. Availability could be checked with ^K or ^V

like image 27
skurczybyk Avatar answered Nov 20 '22 15:11

skurczybyk