2

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?

1

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? – user29330 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