I took some time to read the :help vifm-lua.txt and, while is clear how that's the better way, I feel a bit overwhelmed. I would like to stick to something in the reach of my actual knowledge and maybe refactor it with lua in the future.
Speaking of which, I would like an alternative solution with the smallest footprint possible like the register one:
I would like to map yc to a command that appends the file under cursor to the a register, I'm trying to follow your initial suggestion but I can't make it works:
nnoremap yc :%c "Ayy
It miss the register clearing too, I'm not sure how what's the best workaround for that.
Then I would use yx to execute a command with the register content as argument, something like:
nnoremap yx :!nvim -O %"a