Welcome to the Linux Foundation Forum!

VIM Mapping PF5 to PF12

sssccc
sssccc Posts: 1
edited March 2018 in New to Linux

I have created a .vimrc file in my home directory to map some pf keys while I am in VIM session. I am able to map some pf keys but not all. Only PF2 to PF4 work. Any key PF5 onwards does not work. This is what I have in my .vimrc file:

:map <F2> :wq! <cr>

:map <F3> :q! <cr>

:map <F4> yyp

:map <F7> :set number <cr>

First 3 work just fine but last one doesn't. I have tried every key PF5 onwards but it doesn't.

Any help will be greatly appreciated.

Categories

Upcoming Training