diff --git a/vimrc b/vimrc index aaff3a1..2819147 100644 --- a/vimrc +++ b/vimrc @@ -14,3 +14,5 @@ set shiftwidth=4 set hlsearch " Disable VIM matching parenthesis highlighting let loaded_matchparen = 1 +" Automatically removing all trailing whitespace +autocmd BufWritePre * %s/\s\+$//e