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.

Selection of files/folder with single key

0 votes
asked May 5 in vifm by Philipp

I want to select and deselect files/folder just with a single keystroke, e.g. the space key or the insert key. (Actually, that's how many other filemanagers use to work, e.g. mc)

For this I defined in my vifmrc:

nnoremap <Space> av<cr><Down>

This way I can select files/folder with the space key only. However I can't deselect them with space. Does anybody have an idea how to accomplish that?

1 Answer

0 votes
answered May 5 by xaizek
selected May 6 by xaizek
 
Best answer

Sounds like you want to use t key:

nnoremap <Space> t<Down>
commented May 6 by anonymous

Thank you, that's exactly what I was looking for!

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.
...