vim: Use plugin for highlighting trailing whitespace
This commit is contained in:
parent
fe4e3cd33d
commit
9e9ca493a2
|
@ -14,10 +14,6 @@ set ignorecase
|
||||||
" Autoload settings from file
|
" Autoload settings from file
|
||||||
set modeline
|
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
|
" Jump to the last position
|
||||||
if has("autocmd")
|
if has("autocmd")
|
||||||
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
|
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_solarized_bg='dark'
|
||||||
let g:airline_theme='solarized'
|
let g:airline_theme='solarized'
|
||||||
|
|
||||||
|
" Trailing whitespace highlighting
|
||||||
|
Plug 'ntpeters/vim-better-whitespace'
|
||||||
|
|
||||||
" Syntax highlighting/Language support
|
" Syntax highlighting/Language support
|
||||||
Plug 'ElmCast/elm-vim', { 'for': 'elm' }
|
Plug 'ElmCast/elm-vim', { 'for': 'elm' }
|
||||||
Plug 'Glench/Vim-Jinja2-Syntax', { 'for': 'jinja' }
|
Plug 'Glench/Vim-Jinja2-Syntax', { 'for': 'jinja' }
|
||||||
|
|
Reference in a new issue