Vim: Add setting termguicolors

This commit is contained in:
Hedy Li 2021-10-09 13:05:29 +00:00
parent 1e7f2b137e
commit a84da9d4a0
Signed by: hedy
GPG Key ID: B51B5A8D1B176372
1 changed files with 7 additions and 1 deletions

8
.vimrc
View File

@ -32,7 +32,13 @@ filetype plugin indent on
""""""""""""""""""
" General settings
""""""""""""""""""
colorscheme dracula
if has('termguicolors')
"dracula looks like shit without termguicolors
set termguicolors
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
colorscheme dracula
endif
let mapleader=";" " setting leader key to ';'
set number