Welcome to Vifm Q&A, where you can ask questions about using Vifm. Registration is optional, anonymous posts are moderated. E-mail and GitHub logins are enabled.
0 votes
in vifm by

Is there a way to preview markdown in vifm?

thank you

2 Answers

0 votes
by

I use bat for this purpose (apt install bat, but the executable is called batcat in my distro).

Your vifmrc should include something like this snippet:

fileviewer *.html,*.md env -uCOLORTERM batcat --color always --wrap auto --pager never %c -p
0 votes
by

As with other files, it needs a suitable converted, pandoc would be another example:

fileviewer {*.md} pandoc %c -t ansi
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.
...