vimmappingcasing

What is the correct casing of mapping in vim?


I'm confused with these mappings:

map <c-c>
map <C-C>
map <c-C>
map <C-c>

Are they different ? Which is the correct way to write this mapping ?

Same question with:

map <s-Tab>
map <S-TAB>
map <s-tab>

Solution

  • <C-c>, <c-c>, <c-C> and <C-C> are strictly equivalent but…

    1. Read :help key-notation.

    2. Always use the notation you see in the first column.

    3. ?

    4. Profit.