From c594dd829010b74718fffb2d3064c18a1d367c38 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Wed, 29 Dec 2021 19:15:04 -0500 Subject: [PATCH] Don't use fancy color schemes in TTY --- .vimrc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.vimrc b/.vimrc index f83e54f..cea9182 100644 --- a/.vimrc +++ b/.vimrc @@ -11,12 +11,16 @@ set tags=./tags;/ " Search up to / for tags file set updatetime=100 set clipboard=unnamedplus " Use system clipboard -set termguicolors -let &t_8f = "\[38:2:%lu:%lu:%lum" -let &t_8b = "\[48:2:%lu:%lu:%lum" -syntax enable +if empty($DISPLAY) + colorscheme elflord +else + set termguicolors + let &t_8f = "\[38:2:%lu:%lu:%lum" + let &t_8b = "\[48:2:%lu:%lu:%lum" + syntax enable -colorscheme jellybeans + colorscheme jellybeans +endif let mapleader=" "