Switched ViM to Gruvbox

This commit is contained in:
Serĉanto de Scio 2020-01-06 12:03:32 +10:00
parent d7af60e18c
commit 5614c41c63
Signed by: sercanto
GPG key ID: A4122FF3971B6865

View file

@ -10,8 +10,8 @@ vim_configurable.customize {
set tabstop=4 " Default tabstop set tabstop=4 " Default tabstop
set shiftwidth=4 " Default indent spacing set shiftwidth=4 " Default indent spacing
set expandtab " Expand [TABS] to spaces set expandtab " Expand [TABS] to spaces
syntax enable " Enable syntax highlighting syntax on " Enable syntax highlighting
colorscheme solarized " Set the default colour scheme colorscheme gruvbox " Set the default colour scheme
set t_Co=256 " Use 265 colors in vim set t_Co=256 " Use 265 colors in vim
set spell spelllang=en_au " Defaul spell checking language set spell spelllang=en_au " Defaul spell checking language
hi clear SpellBad " Clear any unwanted default settings hi clear SpellBad " Clear any unwanted default settings
@ -20,7 +20,7 @@ vim_configurable.customize {
match ErrorMsg '\s\+$' " match ErrorMsg '\s\+$' "
let g:airline_powerline_fonts = 1 " Use powerline fonts let g:airline_powerline_fonts = 1 " Use powerline fonts
let g:airline_theme='solarized' " Set the airline theme let g:airline_theme='gruvbox' " Set the airline theme
"call togglebg#map("<F10>") " Toggle background colour between dark|light "call togglebg#map("<F10>") " Toggle background colour between dark|light
@ -37,12 +37,16 @@ vim_configurable.customize {
autocmd FilterWritePre * :call TrimWhiteSpace() autocmd FilterWritePre * :call TrimWhiteSpace()
autocmd BufWritePre * :call TrimWhiteSpace() autocmd BufWritePre * :call TrimWhiteSpace()
" Solarized light during the day, solarized dark during the night " Light during the day, dark during the night
let hour = strftime("%H") let hour = strftime("%H")
if 7 <= hour && hour < 17 if 7 <= hour && hour < 17
set background=light set background=light
hi Normal ctermbg=none " Set a transparent background
let g:airline_gruvbox_bg='light' " Set the airline background
else else
set background=dark set background=dark
hi Normal ctermbg=none " Set a transparent background
let g:airline_gruvbox_bg='dark' " Set the airline background
endif endif
" Transparent editing of gpg encrypted files. " Transparent editing of gpg encrypted files.
@ -188,6 +192,7 @@ vim_configurable.customize {
airline # Lean & mean status/tabline for vim that's light as air airline # Lean & mean status/tabline for vim that's light as air
ctrlp # Full path fuzzy file, buffer, mru, tag, ... finder for Vim ctrlp # Full path fuzzy file, buffer, mru, tag, ... finder for Vim
ghc-mod-vim # Happy Haskell programming on Vim, powered by ghc-mod ghc-mod-vim # Happy Haskell programming on Vim, powered by ghc-mod
gruvbox
neco-ghc # Completion plugin for Haskell, using ghc-mod neco-ghc # Completion plugin for Haskell, using ghc-mod
neocomplete-vim # Keyword completion system neocomplete-vim # Keyword completion system
nerdcommenter # Comment functions so powerful—no comment necessary nerdcommenter # Comment functions so powerful—no comment necessary
@ -199,7 +204,9 @@ vim_configurable.customize {
syntastic # Syntax checking hacks syntastic # Syntax checking hacks
tabular # Script for text filtering and alignment tabular # Script for text filtering and alignment
vim-airline-themes # Collection of themes for airline vim-airline-themes # Collection of themes for airline
vim-colorschemes # Collection of ViM colour schemes
vim-nix # Support for writing Nix expressions in vim vim-nix # Support for writing Nix expressions in vim
vim-polyglot
vimproc # Interactive command execution required by ghc-mod-vim vimproc # Interactive command execution required by ghc-mod-vim
]; ];
# manually loadable by calling `:packadd $plugin-name` # manually loadable by calling `:packadd $plugin-name`