How do I map the fn key in combination with another key to a macro? I know that the ctrl key in key combinations is written as a C (e.g., <C-c> for ctrl+c) in vimscript.

So how would I do something similar to this but for fn?


I don't think you can map fn key in vim since it's mostly hooked in global os level.

I've managed to remap my fn key using software like Karabiner

| improve this answer | |
  • I cannot use karabiner because it only works on macOS and I use Arch Linux. What would be an equivalent program for Linux? – coder54321 May 14 at 18:35
  • @coder54321 Consider asking about keyboard mappings in Linux on either Superuser or Unix & Linux – filbranden May 14 at 19:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.