I am editing a lot of files with Vim, and I have the following in my
.vimrc to help me stay oriented as to which file I am in:
" Add file name to statusline so we know where we are in the slideshow set statusline+=%f
I recently started using mdless to render the Markdown files in Vim Terminal (
:terminal); it's working great except Terminal overwrites my statusline setting. Is there way to keep Terminal's paws off the statusline? :)
The built-in help on Terminal says:
In Terminal-Normal mode the statusline and window title show "(Terminal)". If the job ends while in Terminal-Normal mode this changes to "(Terminal-finished)".
It's hard to believe this isn't configurable... just about everything else is. :)
How to reproduce
Given a file
vimrc with the following content:
" Make status line visible set laststatus=2 " Add file name to statusline so we know where we are in the slideshow set statusline+=%f
vim using this vimrc:
vim -u vimrc vimrc
and it will show "vimrc" on a status line, on 2nd line from the bottom.
:term++curwin cat vimrc
and that changes that 2nd line from the bottom to say
!cat vimrc [finished]
Also its color changes, from white to green.