Created
December 1, 2016 16:53
-
-
Save tjdevries/b3504773713ff94d778b506bd21bc6fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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