Is it possible to map a vim command to a combination of keys involving more than one modifier? For example: ctrl-alt-v
.
As far as I can tell, the only modifier key that can be used in combination with another is shift. e.g. <C-v>
and <C-V>
. Or am I missing something?
To map keys that work only in the normal mode, use the ':nmap' or ':nnoremap' command. The 'n' in ':nmap' and ':nnoremap' denotes normal mode. Examples: The following commands map the 'j' key to execute 'gj' and the 'k' key to execute 'gk'.
<silent> tells vim to show no message when this key sequence is used. <leader> means the key sequence starts with the character assigned to variable mapleader -- a backslash, if no let mapleader = statement has executed yet at the point nmap executes.
The <CR> in vim mappings is the carriage return usually the Enter on your keyboard.
Yeah, you would map <C-A-v>
or <C-M-v>
(A, Alt, and M, Meta are equivalent concepts). See :help key-notation
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With