From 0793d63d0fd42e51019dd587686d5e033e526eff Mon Sep 17 00:00:00 2001 From: Riyyi Date: Thu, 1 Feb 2018 22:38:25 +0100 Subject: [PATCH] Autoremove trailing whitespaces in vim --- etc/vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etc/vimrc b/etc/vimrc index a811f90..cf8ab90 100644 --- a/etc/vimrc +++ b/etc/vimrc @@ -29,3 +29,6 @@ set clipboard=unnamedplus set background=dark colorscheme hybrid_reverse + +" Autoremove trailing whitespace in the following filetypes +autocmd FileType c,cpp,ino,sh,java,php autocmd BufWritePre %s/\s\+$//e