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.

Error when opening a file using vifm in vim

0 votes
asked Oct 8 in vifm.vim by Philipp

I'm using the vifm plugin for vim. However, sometimes when opening a file I get the error message:

Got non-zero code from vifm: 1

If I retry to open the file it might work, but not always. The behaviour seems to be quiet random. Any idea what might be the reason for it?

1 Answer

0 votes
answered Oct 9 by xaizek

It could be that writing to a temporary files which are used to communicate the result of running vifm has failed. Those files are created by Vim and should exist for a while though. You can try using Vim's builtin terminal or external terminal to see maybe it depends on how vifm is run.

It would be nice to be able to reproduce it, otherwise it's hard to help especially when it doesn't happen every time.

commented 4 days ago by Philipp

You can try using Vim's builtin terminal or external terminal to see maybe it depends on how vifm is run.

Sorry, I don't understand what you mean. I'm starting the vifm selection with `:EditVifm` from vim. There is no problem with vifm when I run it from the terminal.

commented 4 days ago by xaizek

There is g:vifm_embed_term configuration variable that controls whether Vim's builtin terminal is used or not. It's on by default in gVim and off in terminal Vim. Having it on or off might make a difference. If your Vim is built without :terminal command, then you can't try it.

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.
...