From 75e9983518085dd05d351d5da316d580be3d93a9 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Sat, 12 Oct 2013 09:19:23 +0200 Subject: vimrc: Highlight trailing spaces --- .config/vim/vimrc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to '.config/vim/vimrc') diff --git a/.config/vim/vimrc b/.config/vim/vimrc index 09e72c8..a0d8ae7 100644 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -23,8 +23,8 @@ else set autoindent " auto indents next new line endif -set cinoptions=t0,g0,(0,:0 - +set cinoptions=t0,g0,(0,:0 + " searching set nohlsearch " dont highlight all search results set incsearch " increment search @@ -51,7 +51,7 @@ set tags=./tags; " syntax highlighting syntax on " enable syntax highlighting -" set templatepath .vim/plugin/templates.vim +" set templatepath .vim/plugin/templates.vim let g:templatePath = "~/.config/vim/templates" " highlight redundant whitespaces and tabs. @@ -92,7 +92,7 @@ autocmd BufRead /tmp/mutt-* set tw=72 spell " load build-in man page viewer command runtime ftplugin/man.vim -" set bash syntax - pressed v in bash-vi mode +" set bash syntax - pressed v in bash-vi mode au BufRead,BufNewFile /tmp/bash-* let is_bash=1|setfiletype sh " mesa project specific settings @@ -130,3 +130,8 @@ autocmd FileType tex colorscheme delek autocmd FileType asciidoc colorscheme inkpot set spellfile=$XDG_DATA_HOME/vim/spell.de.add,$XDG_DATA_HOME/vim/spell.en.add + +highlight ExtraWhitespace ctermbg=red guibg=red +autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red +" Show trailing whitespace and spaces before a tab: +match ExtraWhitespace /\s\+$\| \+\ze\t/ -- cgit