Created
December 18, 2011 16:52
-
-
Save lodestone/1493908 to your computer and use it in GitHub Desktop.
Set a temporary session background color
This file contains hidden or 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
" Set a temporary background color. | |
" I use this to differentiate | |
" visually between windows easily. | |
function! SetBackground(color) | |
let setbg=':highlight Normal guibg=' . a:color | |
exec setbg | |
endfunction | |
command! -nargs=? BackgroundColor :call SetBackground(<f-args>) | |
nmap <leader>bg :BackgroundColor # |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment