diff options
author | David Phillips <david@sighup.nz> | 2019-10-14 10:57:57 +1300 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2019-10-14 11:14:39 +1300 |
commit | fe44370a551d7f8db3a1093da9b8199f157dc374 (patch) | |
tree | 1e3e84700aa8c9fdd2ac0b3e376c3dc662f5b421 | |
parent | 39ff47d1c25c7cb641e8bf0b8de3398a12e1f998 (diff) | |
download | dotfiles-fe44370a551d7f8db3a1093da9b8199f157dc374.tar.xz |
vimrc: Add hlsearch, adjust diff colours
-rw-r--r-- | vimrc | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -33,6 +33,28 @@ inoremap <CR> <CR>x<BS> nnoremap o ox<BS> nnoremap O Ox<BS> +function! ToggleHlsearch() + if &hlsearch + nohlsearch + set nohlsearch + else + set hlsearch + endif +endfunction + +" highlighted search colours +hi Search ctermbg=DarkYellow ctermfg=Black +nnoremap <C-_> :call ToggleHlsearch()<cr> + +hi Todo ctermbg=DarkGreen ctermfg=Black + + +set expandtab +autocmd BufRead,BufNewFile *.cli setfiletype xml +"autocmd FileType c setlocal expandtab +autocmd FileType make set noexpandtab +autocmd FileType cpp setlocal expandtab +autocmd FileType bitbake setlocal expandtab autocmd FileType python setlocal expandtab autocmd FileType haskell setlocal expandtab autocmd FileType lhaskell setlocal expandtab @@ -56,3 +78,9 @@ let g:airline_powerline_fonts = 1 " makes airline work before split set laststatus=2 + +" Nicer colours for solarised vimdiff +highlight DiffAdd cterm=bold ctermfg=233 ctermbg=101 gui=none guifg=bg guibg=Red +highlight DiffDelete cterm=bold ctermfg=175 ctermbg=175 gui=none guifg=bg guibg=Red +highlight DiffChange cterm=bold ctermfg=234 ctermbg=101 gui=none guifg=bg guibg=Red +highlight DiffText cterm=none ctermfg=242 ctermbg=0 gui=none guifg=bg guibg=Red |