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

I search for pdf files and have them show up in a menu using %m. Now, if I press v, it opens all of the pdf files in vim as binary. Is this expected? Is there a way to have the files to open up using their associated filetype?

thank you

1 Answer

0 votes
by
selected by
 
Best answer

Is this expected?

Yes. It actually makes sense in case of PDF as it's partially ASCII and have a highlighting in Vim.

Is there a way to have the files to open up using their associated filetype?

Not from a menu, but you can go to the file in the view via gf or b.

by

b works but gf doesn't. Can it be configured?

by

Right, use %M macro instead of %m to make gf work. Menus don't run external commands, but you can use c to build one.

by

could you point me to the documentation related to c to build external command?

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