aboutsummaryrefslogtreecommitdiff
path: root/home/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'home/vimrc')
-rw-r--r--home/vimrc43
1 files changed, 29 insertions, 14 deletions
diff --git a/home/vimrc b/home/vimrc
index 3e3b22c..babdefa 100644
--- a/home/vimrc
+++ b/home/vimrc
@@ -5,7 +5,6 @@
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree'
-Plug 'altercation/vim-colors-solarized'
Plug 'vim-scripts/bufexplorer.zip'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'pangloss/vim-javascript'
@@ -16,6 +15,7 @@ Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'tpope/vim-eunuch'
Plug 'dense-analysis/ale'
+Plug 'https://gitlab.com/protesilaos/tempus-themes-vim.git'
call plug#end()
@@ -125,21 +125,37 @@ nnoremap <leader>fv :BufExplorerVerticalSplit<Enter>
" ctrlp
let g:ctrlp_map ='<leader>a'
-" solarized
-nnoremap <leader>vl :let g:solarized_visibility="low" | colo solarized<Enter>
-nnoremap <leader>vh :let g:solarized_visibility="high" | colo solarized<Enter>
-
"
" visual
"
-let g:solarized_visibility="high" "trailing characters very visible
-let g:solarized_menu=0 "don't show the gui menu
-set synmaxcol=500
+"Use 24-bit (true-color) mode in Vim/Neovim when outside tmux.
+"If you're using tmux version 2.2 or later, you can remove the outermost $TMUX check and use tmux's 24-bit color support
+"(see < http://sunaku.github.io/tmux-24bit-color.html#usage > for more information.)
+if (empty($TMUX))
+ if (has("nvim"))
+ "For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 >
+ let $NVIM_TUI_ENABLE_TRUE_COLOR=1
+ endif
+ "For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 >
+ "Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd >
+ " < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 >
+ if (has("termguicolors"))
+ set termguicolors
+ endif
+endif
+
+" kitty terminal doesn't support bg blanking
+" https://github.com/kovidgoyal/kitty/issues/108#issuecomment-320492663
+if ($TERM == 'xterm-kitty')
+ let &t_ut=''
+endif
+
syntax on
set background=light
-silent! colo solarized "silent so it doesn't harf before it's installed
+silent! colo tempus_dawn
+let g:airline_theme='papercolor'
set hlsearch
" don't mess up gutter highlight with gitgutter
@@ -147,16 +163,15 @@ highlight clear SignColumn
hi! link SignColumn Background
" Highlight non-ascii characters
-" Run this late to override solarized
+" Run this late to override theme
if has("autocmd")
highlight nonascii guibg=Red ctermbg=1 term=standout
au BufReadPost * syntax match nonascii /[^\d0-\d127]/
endif
-let g:airline_left_sep=''
-let g:airline_left_alt_sep='|'
-let g:airline_right_sep=''
-let g:airline_right_alt_sep='|'
+let g:airline_powerline_fonts = 1
+let g:airline_left_sep="\uE0B4"
+let g:airline_right_sep = "\uE0B6"
"
" local additions