From e21c80014f198160d0d2adedcba7de07d062285a Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 24 Oct 2021 15:54:21 +0800 Subject: Update vim apparence config --- .vimrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.vimrc b/.vimrc index a3b3e98..89d5c37 100644 --- a/.vimrc +++ b/.vimrc @@ -5,7 +5,6 @@ set number set backspace=indent,eol,start syntax on set fileencodings=ucs=bom,utf-8,utf-16,gbk,big5,gb18030,latin1 -set t_Co=256 set showcmd set autoread set mouse=a @@ -22,7 +21,12 @@ set hidden set completeopt=menu,menuone -if $COLORTERM is 'truecolor' +" set Vim-specific sequences for RGB colors +let &t_8f = "\[38;2;%lu;%lu;%lum" +let &t_8b = "\[48;2;%lu;%lu;%lum" +set t_Co=256 + +if has("termguicolors") set termguicolors endif -- cgit v1.2.3