vim: Automatically removing all trailing whitespace

This commit is contained in:
Flo 2019-07-17 22:59:46 +02:00
parent 62fa7501cc
commit 5a67ba2d90

2
vimrc
View File

@ -14,3 +14,5 @@ set shiftwidth=4
set hlsearch set hlsearch
" Disable VIM matching parenthesis highlighting " Disable VIM matching parenthesis highlighting
let loaded_matchparen = 1 let loaded_matchparen = 1
" Automatically removing all trailing whitespace
autocmd BufWritePre * %s/\s\+$//e