Commit 025cb283 authored by Dom Sekotill's avatar Dom Sekotill Committed by Dom Sekotill
Browse files

Improve colours and highlighting in vim

parent 73f25507
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -150,6 +150,7 @@ nnoremap <space> za


" === HIGH-LIGHTING ===
" Should probably go into ~/.vim/colors/default.vim

" Set a marker column for *just outside* &textwidth
highlight ColorColumn ctermbg=gray ctermfg=red guibg=gray guifg=red
@@ -157,6 +158,21 @@ if exists('+colorcolumn')
	set colorcolumn=+1
endif

" Spelling error highlighting
highlight clear SpellBad
highlight SpellBad cterm=undercurl ctermfg=red gui=undercurl guifg=red

" Diff syntax highlighting
highlight diffAdded ctermfg=green guifg=green
highlight diffRemoved ctermfg=red guifg=red

" Fold highlighting
highlight clear Folded
highlight Folded ctermfg=magenta cterm=italic,bold

" Default delimiter colour is difficult to see
highlight Delimiter ctermfg=red

" Toggle search high-lighting with '<Leader>h' or 'th' (deprecated)
nmap <silent> <Leader>h :set hlsearch!<CR>
nmap <silent> th :set hlsearch!<CR>