In both the plugins I use for Vim and neovim statuslines, an indicator shows that the file has been changed since it was last saved. It looks like this on one of them after the current buffer filename: [+]
. I think it's handy to show where you started when repeatedly undoing changes with u
.
I don't use a statusline plugin on gVim as I prefer to keep it as plain-looking as possible, but I keep missing that indicator. Is there a function that I can use to add it?
This is my current statusline gVim configuration:
set statusline=
set statusline+=%f
set statusline+=%=
set statusline+=%l:%c\ \ %p%%
hi StatusLine guibg=grey70 guifg=#eeeeee
:help 'statusline'
far enough.[+]
as indicator for modified buffer is default behavior. If you "prefer to keep it as plain-looking as possible," just don't:set statusline
at all.statusline
option on its default value (i.e. empty) gives me all the information I want to see. This includes line, column and percentage (0% is rendered as "Top"). It's your statusline so set it to whatever makes you happy :)