I put these 4 lines of code in my vifmrc:
fileviewer {.csv,.docx,.odt,.rtf} pandoc -t markdown %c
fileviewer .doc catdoc %c
fileviewer .xls xls2csv %c | pandoc -f csv -t markdown
fileviewer .xlsx xlsx2csv %c | pandoc -f csv -t markdown
But when I have selected a file in vifm, the files are not properly previewed. What have I done wrong?