vim: Split vimrc into vimrc.d/
This commit is contained in:
21
.config/vim/vimrc.d/50-aesthetics.vim
Normal file
21
.config/vim/vimrc.d/50-aesthetics.vim
Normal file
@@ -0,0 +1,21 @@
|
||||
" Aesthetics ###################################################################
|
||||
" Use 24-bit (true-color) mode
|
||||
if (has('termguicolors'))
|
||||
set termguicolors
|
||||
" https://github.com/vim/vim/issues/993
|
||||
if (&term != 'xterm-256color')
|
||||
" set Vim-specific sequences for RGB colors
|
||||
let &t_8f = "\e[38;2;%lu;%lu;%lum"
|
||||
let &t_8b = "\e[48;2;%lu;%lu;%lum"
|
||||
endif
|
||||
endif
|
||||
" use onedark as theme for syntax highlighting
|
||||
syntax on
|
||||
colorscheme onedark
|
||||
|
||||
" get transparent background of the terminal back
|
||||
" (at least in nvim, i can't get it to work in vanilla)
|
||||
if (has('nvim'))
|
||||
highlight Normal guibg=NONE
|
||||
highlight NonText guibg=NONE
|
||||
endif
|
||||
Reference in New Issue
Block a user