After replace netrw with Vifm, vim doesn't clear the screen properly
After replacing netrw with vifm, the terminal is not cleaned properly.
Steps to run the problem:
- Install
vifm.vim - In an empty
vimrcfile, disable netrw and enable theg:vifm_replace_netrwflag - Run the command
vim .in a terminal. - After the vifm opens inside the vim,
:quitto exit - Vim will open an empty file,
:quitagain - The terminal will not be cleaned properly
System: Linux Mint 19.3 Shell: fish and bash Terminal: alacritty and xterm Multiplexer terminal: tmux (or none) Vim version: 8.2.827 Vifm version: 0.10.1 Vifm plugin commit: 5b6291f4ed4f964ac12a467e9fa8cceeaee23043 (on May 26, 2020)
Below I’ll send a screenshot of the issue

With vifm.vim being the only plugin in Vim 8.2.801 with such ~/.vimrc:
let g:loaded_netrw = 1
let g:loaded_netrwPlugin = 1
let g:vifm_replace_netrw = 1
I don't see any issue in xterm.
All that the plugin does is basically running :silent !vifm. It even follows that with :redraw!. I don't think it can do anything more here. Also vim doesn't open current directory automatically for me, so I did vim ..
Great report, by the way.
Manually testing the :silent !vifm and :redraw! inside vim, it works perfectly, as shown in the screencast I made.
I misunderstood you initially, I see it now. Thanks. Maybe something can be done about it if it's not an artifact of running external applications inside Vim's autocommand.