Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. " enable true colors only if available
  2. let colorterm=$COLORTERM
  3. if colorterm =~# 'truecolor' || colorterm =~# '24bit'
  4. set termguicolors
  5. " also set escape characters for true colors, if needed
  6. if &term =~# '^screen'
  7. let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
  8. let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
  9. endif
  10. " if we're not in a GUI environment, we use 256 colors
  11. " before commenting out, check if you've set a proper $TERM in your terminal
  12. " settings or .bashrc - this is just a fallback solution!
  13. "else
  14. " if !has('gui_running')
  15. " set t_Co=256
  16. " endif
  17. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement