Include color string in statusline
问题 I have some function defined as function! myfunc() let s = 'hello world' return s endfunction and I can include this in my status line as statusline=%{myfunc()} , which nicely prints 'hello world'. I can also color it as statusline=%#mycolor#%{myfunc()} where mycolor is a color I've defined. Now I want to color each of the words separately, so I redefine my function as function! myfunc() let s = '%#mycolor1#hello %#mycolor2#world' return s endfunction However, when I set this in the status