Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " enable true colors only if available
- let colorterm=$COLORTERM
- if colorterm =~# 'truecolor' || colorterm =~# '24bit'
- set termguicolors
- " also set escape characters for true colors, if needed
- if &term =~# '^screen'
- let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
- let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
- endif
- " if we're not in a GUI environment, we use 256 colors
- " before commenting out, check if you've set a proper $TERM in your terminal
- " settings or .bashrc - this is just a fallback solution!
- "else
- " if !has('gui_running')
- " set t_Co=256
- " endif
- endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement