Displaying characters <ctrl - #>

I am trying to match specific sequences with brackets / brackets with no success. I tried to use the following commands to map specific check sequences, but they don't seem to work. Does anyone know what I am doing wrong here?

: imap <ctrl-9> () hha
: imap <ctrl - (> () hha

+2


source to share


1 answer


Vim does not always support all key combinations ctrl-

, and they can also be passed as something else because of your terminal. The easiest way to enter them is to :map

literally dial , then press CTRL+V, and then press CTRL+9(or whatever number you want). If vim can recognize ctrl+9

, then the correct code will be inserted for ctrl+9

.



+2


source







All Articles