Set termguicolors in vimrc when available
This commit is contained in:
parent
5054aecda5
commit
ee11695dee
8
vimrc
8
vimrc
|
@ -37,6 +37,13 @@ endfunction
|
||||||
"--------------------------------------------
|
"--------------------------------------------
|
||||||
" Colors
|
" Colors
|
||||||
"--------------------------------------------
|
"--------------------------------------------
|
||||||
|
if has('termguicolors')
|
||||||
|
set termguicolors
|
||||||
|
" Set Vim-specific sequences for RGB colors
|
||||||
|
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
|
||||||
|
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
|
||||||
|
endif
|
||||||
|
|
||||||
let g:campo_dark_theme = 'campo-simple-dark'
|
let g:campo_dark_theme = 'campo-simple-dark'
|
||||||
"let g:campo_dark_theme = 'campo-dark-blue'
|
"let g:campo_dark_theme = 'campo-dark-blue'
|
||||||
"let g:campo_dark_theme = 'campo-dark-grey-blue'
|
"let g:campo_dark_theme = 'campo-dark-grey-blue'
|
||||||
|
@ -282,6 +289,7 @@ set backspace=indent,eol,start " Allow backspacing over everything in insert
|
||||||
set complete+=kspell " Spell checking autocomplete.
|
set complete+=kspell " Spell checking autocomplete.
|
||||||
set complete-=i " Don't scan all included files since it's really slow.
|
set complete-=i " Don't scan all included files since it's really slow.
|
||||||
|
|
||||||
|
set termguicolors
|
||||||
syntax on " Enable highlighting for syntax
|
syntax on " Enable highlighting for syntax
|
||||||
|
|
||||||
set wildmenu
|
set wildmenu
|
||||||
|
|
4
zshrc
4
zshrc
|
@ -90,8 +90,8 @@ bindkey -e
|
||||||
source $ZSH/lib/*.zsh
|
source $ZSH/lib/*.zsh
|
||||||
|
|
||||||
# Source my custom files after oh-my-zsh so I can override things.
|
# Source my custom files after oh-my-zsh so I can override things.
|
||||||
source $HOME/.dotfiles/functions
|
source $HOME/.env.platform
|
||||||
source $HOME/.dotfiles/aliases
|
source $HOME/.aliases
|
||||||
|
|
||||||
# Fix <c-h> in neovim
|
# Fix <c-h> in neovim
|
||||||
infocmp $TERM | sed 's/kbs=^[hH]/kbs=\\177/' > $HOME/.$TERM.ti
|
infocmp $TERM | sed 's/kbs=^[hH]/kbs=\\177/' > $HOME/.$TERM.ti
|
||||||
|
|
Loading…
Reference in New Issue
Block a user