Skip to content

Instantly share code, notes, and snippets.

@tjdevries
Created December 1, 2016 16:53
Show Gist options
  • Save tjdevries/b3504773713ff94d778b506bd21bc6fe to your computer and use it in GitHub Desktop.
Save tjdevries/b3504773713ff94d778b506bd21bc6fe to your computer and use it in GitHub Desktop.
function! TestReturnHighlight()
if &spell
return '%#PreProc#%l%0'
else
return 'Not spelling and no colors'
endif
endfunction
function! SetStatuslineSnippet()
let l:str_stl = ''
let l:str_stl .= TestReturnHighlight()
return l:str_stl
endfunction
" Set the statusline for non airline times
set statusline=%!SetStatuslineSnippet()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment