Welcome to Vifm Q&A, where you can ask questions about Vifm usage. Registration is optional, anonymous posts are moderated. GitHub or Google logins are enabled.
0 votes
in vifm by

In vim, I have a command mapped to a shortcut to select all lines in a file and I'm trying to port this functionality over to vifm. I can enter the commands manually (ggVG) successfully, but when I want to set up the shortcut "a" it doesn't seem to be working.

Here's what i've done to try to set this up.

map <Leader>a ggVG

What am I missing?


map < Leader>a :select *< cr>

1 Answer

+1 vote
selected by
Best answer

There is no <leader> in vifm at the moment, so you can't use that. Insert character you use as a leader into the mapping. For , that would be:

nnoremap ,a ggVG

I used nnoremap instead of map to limit to normal mode and avoid remappings in the right-hand side.

If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here is acceptable, but this is not a perfect place for them.

Support Ukraine