Don't use fancy color schemes in TTY

This commit is contained in:
Sage Vaillancourt 2021-12-29 19:15:04 -05:00
parent cf7e99790a
commit c594dd8290
1 changed files with 9 additions and 5 deletions

4
.vimrc
View File

@ -11,12 +11,16 @@ set tags=./tags;/ " Search up to / for tags file
set updatetime=100 set updatetime=100
set clipboard=unnamedplus " Use system clipboard set clipboard=unnamedplus " Use system clipboard
if empty($DISPLAY)
colorscheme elflord
else
set termguicolors set termguicolors
let &t_8f = "\<Esc>[38:2:%lu:%lu:%lum" let &t_8f = "\<Esc>[38:2:%lu:%lu:%lum"
let &t_8b = "\<Esc>[48:2:%lu:%lu:%lum" let &t_8b = "\<Esc>[48:2:%lu:%lu:%lum"
syntax enable syntax enable
colorscheme jellybeans colorscheme jellybeans
endif
let mapleader=" " let mapleader=" "