summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index d9c7694..cc63092 100644
--- a/vimrc
+++ b/vimrc
@@ -125,6 +125,7 @@ function! Preserve(command)
endfunction
nmap _$ :call Preserve("%s/\\s\\+$//e")<CR>
nmap _= :call Preserve("normal gg=G")<CR>
+autocmd BufWritePre * :call Preserve("%s/\\s\\+$//e")
source ~/.vim/scripts/bepo-layout.vim