I want to have a Tmux popup window with FZF to search for a file from inside Vifm.
I have a custom .zsh script in ~/.config/vifm/scripts which gets the job done (works well if I hardcode server name) but fails if I try to pass the server name dynamically:
nnoremap f :!~/.config/vifm/scripts/vifm_fzf.sh "%d" "%{v:servername}" &<cr>
I do logging in my script and see that path is passed correctly but the server name is passed as literal: v:servername} which causes Sending remote commands failed.
I don't want to hardcode serve name becasue I want my script to handle multiple instances of Vifm well.
Please advice how to invoke a custom script with dynamic server name (I've tried some attempts with escape etc. but failed).