From 073ba2968c53cd61ef0d124a36901a96fb192240 Mon Sep 17 00:00:00 2001 From: Ryan Reed Date: Tue, 2 Nov 2021 16:02:55 -0400 Subject: [PATCH] Adding whitespace trimming on save --- dot_vim/vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dot_vim/vimrc b/dot_vim/vimrc index b925862..92ec872 100644 --- a/dot_vim/vimrc +++ b/dot_vim/vimrc @@ -238,3 +238,6 @@ nmap D ysiw nnoremap j :%!python -m json.tool " Pretty print json + +" 05 - Auto Commands + autocmd BufWritePre * :%s/\s\+$//e " Remove trailing whitespace on save