molok/vim-smartusline — Issue #5: Support for expression status lines, starting with "%!"
Author: blueyed
Created: 2012-01-08 13:29:49+00:00
State: open

I am using an expression in my statusline config, which looks as follows:

set statusline=%!MyStatusLine('Enter')

I think smartusline should evaluate this expression and then do its search-and-replace on the result.

I have tried the following code in the `SmartusLineWin` function, but did not get it to work properly:

if curr_stl[0:1] == "%!"
let curr_stl = eval(curr_stl[2:-1])
endif