Welcome to Vifm Q&A, where you can ask questions about Vifm usage. Registration is optional, anonymous posts are moderated. GitHub or Google logins are enabled.
0 votes
in vifm by

I'm trying to write my own vifm plugin and I found the --choose-files can save the target file path, but I'm wondering if vifm can send the target directly into neovim by rpc or other stuff so we don't need to use io.read etc to get the file list. thx!

1 Answer

0 votes

--choose-files accepts - which makes it print list of files on standard output. That's an RPC through pipes.

Or you can do this in Vifm and run with -c 'filetype * #nvim#open' if you need more control.