Something is going to interfere:
I have this user vifmrc (after removing the comments):
`filetype *.wdk
\ {find commons with known}
\ cd .. && ./do.sh %f:p %m`
autocmd DirEnter ~/Documents/wikidata/*/ nnoremap o :!gvim -O ../known/%c ../unknown/%c ../unneeded/%c<cr>
autocmd DirEnter !~/Documents/wikidata/*/ execute 'nnoremap o :!gvim --remote-tab-silent %f<cr>'
command! wd cd .. && ./do.sh %f:p %m
The current file is Q6942@1727-год-ru-en-es.txt.wdk
:filetype Q6942@1727-год-ru-en-es.txt.wdk says “[find commons with known] cd .. && ./do.sh %f:p %m”
:file lists that association and it works (a menu with the script output appears).
<cr>, l and → open the file in Vim.