aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vim/vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.vim/vimrc b/.vim/vimrc
index 1ab0478..1bcfa27 100644
--- a/.vim/vimrc
+++ b/.vim/vimrc
@@ -350,7 +350,7 @@ augroup AutoCommands
autocmd CursorMoved * silent! call popup_clear()
" Automatically remove trailing white space on save.
- autocmd InsertLeave,BufWritePre * %s/\s\+$//e
+ autocmd BufWritePre * %s/\s\+$//e
" Automatically save file on insert and idle.
autocmd InsertLeave,CursorHold * silent! write