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
edited by

How to i get vlc to open a file ?
i have this in my vifmrc.

filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob vlc %c

but i get this error.

xdg-open: unexpected argument 'movietosee.mkv'
Try 'xdg-open --help' for more information.
Press return ...

1 Answer

0 votes
by

You probably have filetype * xdg-open or similar above the line you've shown. The order matters, so put new line higher in vifmrc.

You can check what will be run by using :file on an existing file with one of those extensions or with :filetype movie.mkv (the file doesn't have to exist).

...