about summary refs log tree commit diff
path: root/configs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2017-07-31T03·56-0400
committerWilliam Carroll <wpcarro@gmail.com>2017-07-31T03·56-0400
commit622dbcb8332f71809cb8008d7df4e75e5f92d28e (patch)
treec6d6b7ee4bdd24ed7aeca8b14a8daf65efb15623 /configs
parent328fd88e98dc5a345161007b7a2324db3d111b60 (diff)
Adds conditional cfg for TC support
Diffstat (limited to 'configs')
-rw-r--r--configs/shared/.vimrc9
1 files changed, 8 insertions, 1 deletions
diff --git a/configs/shared/.vimrc b/configs/shared/.vimrc
index b54ef3056df2..b647eff2c526 100644
--- a/configs/shared/.vimrc
+++ b/configs/shared/.vimrc
@@ -116,7 +116,14 @@ set background=dark
 syntax enable
 colorscheme onedark
 
-set termguicolors
+if has('termguicolors')
+  set termguicolors
+endif
+
+if &term =~# '^screen'
+  let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
+  let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
+endif
 
 set history=1000
 set undolevels=1000