Chainsaw
unread,Feb 21, 2022, 10:24:00 AM2/21/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim...@googlegroups.com
Hello,
gVim Windows x64 daily version (currently 8.2.4428).
For 'statusline', restore normal highlight %0* or %* will cause the items
inside an item group %(%) to fail.
Example:
highlight StatusLine and StatusLineNC are defined.
Highlight groups User1 to User9 are defined.
'Hello' is just to represent a %{} result.
1) 'set statusline=:\ %3*Hello%2*:' works
2) 'set statusline=:%(\ %3*Hello%2*%):' works
3) 'set statusline=:\ %3*Hello%0*:' works
4) 'set statusline=:%(\ %3*Hello%0*%):' does not work
A workaround is to set a UserN group same as StatusLine and use %N* instead of
%0*.
Thanks,
Samson