Welcome to the new Linux Foundation Forum!

VIM Mapping PF5 to PF12

ssscccsssccc 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.

Sign In or Register to comment.