From 4ff40b0b0dc22cafd5147b9b7cd7e649a0f072b6 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 9 Nov 2018 23:35:44 +0800 Subject: vim: Enable true color; change colorscheme; tweak GUI * Enable true color. Set terminal sequences to to fix the true color support in tmux. * Change colorscheme to flattened_light (solarized). * Set GUI font and size. * Disable GUI menu bar. --- _vimrc | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/_vimrc b/_vimrc index f144aa0..5a855a2 100644 --- a/_vimrc +++ b/_vimrc @@ -99,23 +99,24 @@ set foldcolumn=1 " Enable syntax highlighting syntax enable -" Enable 256 colors palette in Gnome Terminal -if $COLORTERM == 'gnome-terminal' - set t_Co=256 +set t_Co=256 +if $COLORTERM == 'truecolor' + set termguicolors +endif +if &term =~# '^screen' + " Set terminal sequences for true colors (:help xterm-true-color) + let &t_8f = "\[38;2;%lu;%lu;%lum" + let &t_8b = "\[48;2;%lu;%lu;%lum" endif -try - colorscheme desert -catch -endtry - -set background=dark +colorscheme flattened_light " Set extra options when running in GUI mode if has("gui_running") set guioptions-=T set guioptions-=e - set t_Co=256 + set guioptions-=m + set guifont=IBM\ Plex\ Mono\ Medium\ 11 set guitablabel=%M\ %t endif -- cgit v1.2.2