vifm / vifm.vim

Vim plugin that allows use of vifm as a file picker
325 stars 18 forks source link

Vifm.vim remains opened in a hidden buffer after running `vim <DIR>` and picking a file #95

Open intelfx opened 1 week ago

intelfx commented 1 week ago

Description

There seems to be a usability issue with vifm.vim w/embedding + netrw replacement.

When vim is started as vim <DIR> directly into a vifm.vim buffer, after picking a file vifm.vim does not terminate and remains in a hidden buffer. Thus, when I edit the file and attempt to exit Vim via :q, I get an error:

E947: Job still running in buffer "vifm: edit"

If I then pick another file, the embedded instance does terminate. ISTM that it should do so in the beginning as well.

Environment

xaizek commented 3 days ago

Thanks for the report. There is clearly an issue. Vifm does terminate after picking a file, otherwise nothing would get opened in Vim, but Vifm is started again in a new buffer right after that.

intelfx commented 3 days ago

Vifm does terminate after picking a file, otherwise nothing would get opened in Vim, but Vifm is started again in a new buffer right after that.

Ah, right. I described the user-visible effects :-)