vim: Use plugin for highlighting trailing whitespace

legacy
Simon Bruder 2020-05-18 15:24:18 +02:00
parent fe4e3cd33d
commit 9e9ca493a2
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
1 changed files with 3 additions and 4 deletions

View File

@ -14,10 +14,6 @@ set ignorecase
" Autoload settings from file
set modeline
" Highlight trailing spaces and spaces before tabs
highlight ExtraWhitespace ctermbg=red guibg=red
autocmd BufWinEnter * match ExtraWhitespace /\s\+$\| \+\ze\t/
" Jump to the last position
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
@ -47,6 +43,9 @@ let g:airline_powerline_fonts = 1
let g:airline_solarized_bg='dark'
let g:airline_theme='solarized'
" Trailing whitespace highlighting
Plug 'ntpeters/vim-better-whitespace'
" Syntax highlighting/Language support
Plug 'ElmCast/elm-vim', { 'for': 'elm' }
Plug 'Glench/Vim-Jinja2-Syntax', { 'for': 'jinja' }