[vim] Dim colors and make ALE highlights pretty

This commit is contained in:
Vladan Popovic 2019-08-02 17:21:15 +02:00
parent 627dbe5885
commit 85b776daf0
1 changed files with 12 additions and 4 deletions

View File

@ -29,13 +29,21 @@ set showmatch
noremap <tab> :bn<CR> noremap <tab> :bn<CR>
noremap <S-tab> :bp<CR> noremap <S-tab> :bp<CR>
" Highlight trailing whitespace (darker red) " Highlight trailing whitespace (darker red) and remove all with Ctrl+k
highlight WhitespaceEOL ctermbg=124* guibg=#ab0d0d highlight WhitespaceEOL ctermbg=red guibg=#ab0d0d
match WhitespaceEOL /\s\+\%#\@<!$/ match WhitespaceEOL /\s\+\%#\@<!$/
" Remove all trailing whitespace by pressing Ctrl+k
nnoremap <C-k> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar><CR> nnoremap <C-k> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar><CR>
" Much better with Tomorrow Night Bright color theme set in alacritty
set background=light
highlight SignColumn ctermbg=236
" ALE colors
highlight ALEWarning ctermbg=Yellow
highlight ALEWarning ctermfg=Black
highlight ALEError ctermbg=DarkRed
highlight ALEError ctermfg=White
" Language indents and line lengths " Language indents and line lengths
autocmd FileType py,rst,md set textwidth=79 autocmd FileType py,rst,md set textwidth=79
autocmd FileType html set softtabstop=2 shiftwidth=2 omnifunc=htmlcomplete#CompleteTags autocmd FileType html set softtabstop=2 shiftwidth=2 omnifunc=htmlcomplete#CompleteTags