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 with :select fails: Invalid command name

0 votes
asked Oct 21, 2016 in vifm by HadriaNUs34

I want to select multiple files with one command. I thought that this command would do the trick:

:select *.jpg or 
:select! *.jpg

The result is: Invalid command name.
What am I doing wrong here?

1 Answer

+1 vote
answered Oct 21, 2016 by xaizek
edited Oct 21, 2016 by xaizek

:select and :unselect are available since 0.8.2 version, you must be using an older one.

If you can't update, there are less convenient ways:

  • switch 'hlsearch' option on (set hlsearch) and then do /\.jpg$ search, or
  • filter files with =\.jpg$, select all files (probably in visual mode) and then use zf or =<c-u> to clear the filter.
commented Oct 21, 2016 by HadriaNUs34

Yes, indeed, I have 0.7.8. Your solution works. Ty.

If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here won't be considered as spam, but this is not a perfect place for it.