aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2022-04-03 02:34:35 -0400
committertdro <tdro@users.noreply.github.com>2022-04-03 02:34:35 -0400
commit427fe844859a06afebc839af13b6d8dd88ce55d2 (patch)
tree96478dcc53dec3e2be7a76047a01f98e9a160f80
parent008f05dbdbcf306b2ef0dbc835a0647256111ddd (diff)
downloaddotfiles-427fe844859a06afebc839af13b6d8dd88ce55d2.tar.gz
dotfiles-427fe844859a06afebc839af13b6d8dd88ce55d2.tar.bz2
dotfiles-427fe844859a06afebc839af13b6d8dd88ce55d2.zip
.vim/vimrc: Remove trailing white space only on BufWritePre
-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