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 tried to use nvim-qt as vicmd and mostly it seems to work, but not for :rename and such.

I get an "Unknown option 'f'" for those commands. Is there any way I can get nvim-qt to work with vifm or have it use the regular nvim/vi for those operations?

 vifm
nvim-qt: Unknown option 'f'.
Press return ...

nvim-qt: Unknown option 'f'.
Press return ...

Already up to date.
nvim-qt: Unknown option 'f'.
Press return ...

1 Answer

+1 vote
by
selected by
 
Best answer

You either need to use a wrapper script to replace -f or use a Lua handler in vicmd if your Vifm is the latest (v0.12.1). The latter is preferable and allows handling all modes in which Vifm uses an editor.

There is a sample plugin I use for testing this functionality here. You can copy and modify gvim.lua as nvim-qt.lua to make it work with nvim-qt (also add ['nvim-qt'] = vifm.plugin.require('nvim-qt'), to init.lua).

Replace gvim wtih nvim-qt, change -f to something else (I can't find documentation on command-line options of nvim-qt, in gVim it means "Foreground: Don't fork when starting GUI"). If there is no suitable option, just leave gvim there and you'll have a mix of editors.

To use do set vicmd='#editor#run nvim-qt'.

See this Wiki page for an introduction to plugins.

If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here is acceptable, but this is not a perfect place for them.

Support Ukraine
...