How can I view/list only the <F#>
keys with :map
? I need to know what <F#>
is doing... Newbie here!
Entering the following will list function key mappings for to :
:for i in range(1, 12) | execute("map <F".i.">") | endfor
If you add a "verbose", you will be told where the key mappings were defined:
:for i in range(1, 12) | execute("verbose map <F".i.">") | endfor
If you have more than 12 function keys, adjust the second parameter of the "range()" expression accordingly.
you can just write
:map <F1>
to find out what the key is mapped to. I other mappings like the ones that
start with \
you can type
:map \
and vim will list all mappings starting with \
for for the function keys I think you have to check them individually.
:map
(without arguments) shows all the maps available for n, v and o
modes. For the other modes, try the correspondent command (for example :imap
for insert mode).
Now it's just a matter of skimming the output looking for function key maps. If you give the command a specific key:
:nmap <F4>
That map will be presented.
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