I am using vim-tinyline
and it doesn't seem to have an option for this and I have no idea how to write a function to do this.
Example function from tinyline that checks whether the file has been modified:
function! TlModified() " {{{
" Make sure we ignore &modified when choosewin is active
let choosewin = exists('g:choosewin_active') && g:choosewin_active
return &modified && ! choosewin ? ' ⚫' : ''
endfunction
This one returns a ⚫
if the file has been modified. How would I do something similar if spell
is set?
&modified
with&spell
?