diff --git a/vim/vimrc b/vim/vimrc index f5c8945..fc4e85e 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -12,3 +12,5 @@ set tabstop=2 autocmd FileType php setlocal sw=4 sts=4 ts=4 autocmd FileType gitcommit,markdown,text setlocal nosi spell tw=80 wm=2 + +autocmd BufWritePre * :%s/\s\+$//e