From 63d23c3453d6b798ed4db85243efcf08a354b374 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Fri, 10 Aug 2018 14:23:34 +0200 Subject: [PATCH] Trying to make it work with true color --- .vimrc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.vimrc b/.vimrc index 14c484f..e3e2cbf 100644 --- a/.vimrc +++ b/.vimrc @@ -431,14 +431,22 @@ set hidden set cryptmethod=blowfish2 " Ensure 256 colour support if the terminal supports it -if &term == "xterm" || &term == "xterm-256color" || &term == "screen-bce" || &term == "screen-256color" || &term == "screen" || &term == "tmux-256color-italic" - set t_Co=256 +"if &term == "xterm" || &term == "xterm-256color" || &term == "screen-bce" || &term == "screen-256color" || &term == "screen" || &term == "tmux-256color-italic" + "set t_Co=256 + " The "^[" is a single character. You enter it by pressing Ctrl+v and then ESC. + set t_8f=^[[38;2;%lu;%lu;%lum + set t_8b=^[[48;2;%lu;%lu;%lum + colorscheme falcon + " This is what sets vim to use 24-bit colors. It will also work for any version of neovim + " newer than 0.1.4. + set termguicolors + " create a bar for airline set laststatus=2 let g:airline_powerline_fonts = 1 -endif +"endif " Toggle paste and autoindent mode (enable paste so no indention weirdness " happens when pasting into the current file)