A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.

March 28, 2018

VIM Mapping PF5 to PF12


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.

Click Here!