From 3b18edf70e9a881e1a2f8de6ed5f121d89a10b82 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 26 May 2020 15:59:41 -0700 Subject: Some vim improvements --- lib/vimrc | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'lib') diff --git a/lib/vimrc b/lib/vimrc index f585f90..4868b2f 100644 --- a/lib/vimrc +++ b/lib/vimrc @@ -95,6 +95,15 @@ set termguicolors let &t_8f = "\[38;2;%lu;%lu;%lum" let &t_8b = "\[48;2;%lu;%lu;%lum" +""" Show highlighting groups for current word +nmap :call SynStack() +function! SynStack() + if !exists("*synstack") + return + endif + echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")') +endfunc + """ Plugins with vim-plug " 2019.06.11: disabling b/c I'd rather just use nix/home-manager for vim " plugins, but this is nice code to have for reference too @@ -104,3 +113,32 @@ let &t_8b = "\[48;2;%lu;%lu;%lum" " autocmd VimEnter * PlugInstall --sync | source $MYVIMRC "endif "so ~/.vim/plugins.vim + +""" My personal colorscheme: +syntax off +set background=dark +highlight clear +if exists("syntax_on") + syntax reset +endif +" set g:colors_name="bs-dark" + +" purple +highlight StatusLine guifg=Black guibg=LightMagenta +highlight StatusLineNC guifg=Black guibg=LightMagenta +highlight VertSplit guifg=Black guibg=LightMagenta +highlight Search guifg=Black guibg=LightMagenta + +" blue +highlight clear CursorLine " clear the underline nonsense +highlight CursorColumn guifg=Black guibg=LightBlue +highlight CursorLine guifg=Black guibg=LightBlue +highlight Cursor guifg=Black guibg=LightBlue + +" green +highlight Visual guifg=Black guibg=LightGreen +highlight DiffAdd guifg=Black guibg=LightGreen + +" red +highlight DiffDelete guifg=Black guibg=LightRed + -- cgit v1.2.3