aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-11-09 23:35:44 +0800
committerAaron LI <aly@aaronly.me>2018-11-09 23:35:44 +0800
commit4ff40b0b0dc22cafd5147b9b7cd7e649a0f072b6 (patch)
tree840733eea2a8a96d601dbb980234d3e492a91185
parentbe8a0787ac347c55abb408d7217bf381fade71de (diff)
downloaddotfiles-4ff40b0b0dc22cafd5147b9b7cd7e649a0f072b6.tar.bz2
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.
-rw-r--r--_vimrc21
1 files 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 = "\<Esc>[38;2;%lu;%lu;%lum"
+ let &t_8b = "\<Esc>[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