From f6d910386bc56c3a3b27650a284f4029ef97d3c0 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Mon, 30 Nov 2015 09:32:01 +0100 Subject: [PATCH] Always remove trailing whitespace in vimrc. --- vim/vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index ad324fd..b285a32 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -25,3 +25,6 @@ let g:syntastic_cpp_compiler="g++" let g:syntastic_cpp_compiler_options = "-std=c++11 -Wall -Wextra -Wpedantic" autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 + +" Remove trailing whitespace, always. +autocmd BufWritePre * :%s/\s\+$//e