dotfiles

Configuration dotfiles
git clone git://git.wimdupont.com/dotfiles.git
Log | Files | Refs | README | LICENSE

commit cd701f8303070a44008b4ac3f901786da6977ebb
parent 5c3c89bbecf19f605cb3f3bc9e7926b5d8df7120
Author: Wim Dupont <wim@wimdupont.com>
Date:   Sun, 23 Jun 2024 09:38:59 +0200

added highlights

Diffstat:
Mvimrc | 29++++++++++++++++++++++-------
1 file changed, 22 insertions(+), 7 deletions(-)

diff --git a/vimrc b/vimrc @@ -29,13 +29,25 @@ let t:is_book = 0 let g:netrw_winsize = 20 function! Toggle_transparent() - if t:is_transparent == 0 - hi Normal guibg=NONE ctermbg=NONE - let t:is_transparent = 1 - else - hi Normal guibg=#111111 ctermbg=black - let t:is_transparent = 0 - endif + :colors default + call Set_Highlights() + if t:is_transparent == 0 + hi Normal guibg=NONE ctermbg=NONE + let t:is_transparent = 1 + else + hi Normal guibg=#111111 ctermbg=black + let t:is_transparent = 0 + endif +endfunction + +function! Set_Highlights() + highlight VertSplit cterm=none gui=none + highlight StatusLineNC ctermbg=241 ctermfg=0 + highlight StatusLine ctermbg=0 ctermfg=238 + highlight IncSearch ctermbg=3 ctermfg=1 + highlight Search ctermbg=241 ctermfg=3 + highlight StatusLineTerm ctermbg=238 ctermfg=0 cterm=NONE + highlight StatusLineTermNC ctermbg=0 ctermfg=238 cterm=NONE endfunction function! Toggle_bookmode() @@ -81,6 +93,7 @@ runtime! ftplugin/man.vim tnoremap <leader>w <C-w><C-w> tnoremap <leader>i <C-w><S-n> tnoremap <leader>R <C-w><S-n>:so /etc/vimrc<CR>i +tnoremap <leader>t <C-w><S-n>: call Toggle_transparent()<CR>i tnoremap <leader><up> <C-w><S-n>:<C-U>call Change_Res('+',5,0)<CR>i tnoremap <leader><down> <C-w><S-n>:<C-U>call Change_Res('-',5,0)<CR>i tnoremap <leader><right> <C-w><S-n>:<C-U>call Change_Res('+',5,1)<CR>i @@ -92,6 +105,7 @@ nnoremap <leader><right> :<C-U>call Change_Res('+',5,1)<CR> nnoremap <leader><left> :<C-U>call Change_Res('-',5,1)<CR> nnoremap <leader>w <C-w><C-w> nnoremap <leader>R :so /etc/vimrc<CR> +nnoremap <leader>T :bo ter<CR> nnoremap <leader>t : call Toggle_transparent()<CR> nnoremap <leader>b : call Toggle_bookmode()<CR> nnoremap <leader>f : call Format()<CR> @@ -105,6 +119,7 @@ vnoremap <leader>P "_dP cmap suw w !sudo tee > /dev/null % autocmd BufWritePost,FileWritePost config.def.h !sudo rm config.h && sudo make install +autocmd VimEnter * call Set_Highlights() autocmd FileType asciidoc map <F2> :w <CR> :!adoc %< <CR> autocmd FileType c map <F2> :w <CR> :!gcc % -o %< && ./%< <CR>