summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2020-05-26 15:59:41 -0700
committerBen Sima <ben@bsima.me>2020-05-26 15:59:41 -0700
commit3b18edf70e9a881e1a2f8de6ed5f121d89a10b82 (patch)
tree95329e2c148451025c146433d3d4847504fd635e /lib
parent84a012bce37a13aa3b43cc957de8bd3886ff31b0 (diff)
Some vim improvements
Diffstat (limited to 'lib')
-rw-r--r--lib/vimrc38
1 files changed, 38 insertions, 0 deletions
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 = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
+""" Show highlighting groups for current word
+nmap <C-S-P> :call <SID>SynStack()<CR>
+function! <SID>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 = "\<Esc>[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
+