fvim icon indicating copy to clipboard operation
fvim copied to clipboard

Command key mappings on Mac

Open skanev opened this issue 4 years ago • 2 comments

Hey.

It will be really good if FVim can support mappings with the Cmd key on mac. I believe one of two things would work:

  • mapping <D-f> to mean Cmd+f, an approach taken by MacVim, goneovim and VimR.
  • alternatively, have a way to treat the command key as meta (what I end up doing in Emacs)

Apologies if there already is a way to do it, and I just couldn't find it.

skanev avatar May 10 '21 10:05 skanev

Update: I initially thought FVim does not support command mappings, because no mapping I tried work. Turns out - they work, but only if I enter them twice. That is, if I do:

map <D-f> ifoo

and then hit <D-f> once, nothing happens, but then if I hit it again, FVim goes into insert mode and adds foo. I'm at fvim: 0.2.348,81a158c, which I got from homebrew.

Any advice?

skanev avatar May 10 '21 15:05 skanev

Hey @skanev !

Sounds like a similar problem to https://github.com/yatli/fvim/issues/167

I've submitted a patch upstream, but if cmd key also suffers from this, I need to update that bit.

Thanks!

yatli avatar Jul 14 '21 17:07 yatli