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
Start vim
using this vimrc:
vim -u vimrc vimrc
and it will show "vimrc" on a status line, on 2nd line from the bottom.
Now run:
: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.
:terminal
when you say “Vim Terminal”?'statusline'
setting, but I don't see the value of'statusline'
actually changing when:terminal
is executed. Can you provide more details on what you're seeing?:terminal
window and'statusline'
doesn't actually do that? Are you looking for a way to configure what the status line shows there, is that it?