From 7986b5336783eb575c241afaaada4b59c59fc88b Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Wed, 22 Jun 2022 11:12:32 +0000 Subject: [PATCH] Use more colours on the terminal --- vimrc | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/vimrc b/vimrc index 15811dc..09bfa2a 100644 --- a/vimrc +++ b/vimrc @@ -21,6 +21,10 @@ endif "============================================================================= " General settings for all builds. +" Set colour levels for different terminals. +set t_Co=256 +set termguicolors + inoremap inoremap ^ inoremap $ @@ -118,23 +122,6 @@ if has('eval') let g:org_indent=0 let g:org_tag_column=78 let g:tempus_enforce_background_color=1 - " Set colour levels for different terminals. - if &term == 'builtin_gui' - set t_Co=256 - elseif &term == 'xterm-256color' - set t_Co=256 - elseif &term == 'xterm' - set t_Co=256 - elseif &term == 'rxvt-unicode' - set t_Co=256 - else - set t_Co=16 - endif - if &term =~# '256color' && ( &term =~# '^screen' || &term =~# '^tmux' ) - let &t_8f = '\[38;2;%lu;%lu;%lum' - let &t_8b = '\[48;2;%lu;%lu;%lum' - set termguicolors - endif " " Set theme for Terminal. colorscheme tempus_night