aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-04-19 05:28:11 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-04-19 05:28:11 +0200
commit1af8894941b4c97df7aeca6afc03bac066235686 (patch)
treeb012e1b7f5c3591cf7e97f1529af4d43cfec594b
parentd582cb408f0479b5124647d5293b079f29cca8d3 (diff)
downloaddotfiles-1af8894941b4c97df7aeca6afc03bac066235686.tar.xz
vim: Add extra comments
-rw-r--r--vim/vimrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 23e562e..d95b0f6 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -79,9 +79,11 @@ map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l
+" Show tabs and end-of-line whitespace
set listchars=tab:»·,trail:·
set list
+" Color spaces at end of lines bright red for visibility
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/