I have both GVim and Neovim installed. When I open a file in Vifm, it is opened in GVim and not in Neovim.

How to make Neovim the default editor for Vifm?

  • This question is probably off-topic here since it is about Vifm. I think it should be migrated to SuperUser or Unix & Linux.
    – Quasímodo
    Commented Sep 19, 2020 at 15:58
  • @Quasímodo , How to migrate it?
    – Jdeep
    Commented Sep 19, 2020 at 16:24
  • Since it got an answer, maybe it is better for it to stay here? Hopefully the moderators will know better.
    – Quasímodo
    Commented Sep 19, 2020 at 16:34
  • I'm inclined to think this is off-topic as well; we'll discuss what to do with it. In the meantime, it's possible vifm relies on EDITOR or VISUAL
    – D. Ben Knoble
    Commented Sep 19, 2020 at 17:15

1 Answer 1


Change set vicmd=vim to set vicmd=nvim in your vifmrc.

  • @Quasímodo from their docs, it looks like the default value of vixcmd is the value of vicmd, and you would only set it if you want something else to run in an X session. Is that incorrect? Commented Sep 19, 2020 at 16:03
  • True! I missed that, sorry. (Although it might be worth the mention.)
    – Quasímodo
    Commented Sep 19, 2020 at 16:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.