]> git.rmz.io Git - dotfiles.git/commitdiff
vim: support for truecolors
authorSamir Benmendil <me@rmz.io>
Sat, 6 Feb 2021 13:08:01 +0000 (13:08 +0000)
committerSamir Benmendil <me@rmz.io>
Sat, 6 Feb 2021 13:08:01 +0000 (13:08 +0000)
May need to check if terminal supports it.

vim/vimrc

index 675b5ab2fc4f5f551057152b6dbf714b57b8f4d5..67b77a619f467ff98c216fa54cfece6d2843883d 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -125,6 +125,9 @@ filetype plugin indent on
 " colorscheme {{{1
 syntax on
 set background=dark
+let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
+let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
+set termguicolors
 colorscheme $THEME
 
 " options {{{1