From ddbdd942b3f45b8a9d0f646678fe24ac5cef0ba2 Mon Sep 17 00:00:00 2001 From: Thaer Khawaja Date: Fri, 14 Jul 2017 16:43:07 -0700 Subject: [PATCH] Make BufWrite autocommands silent. --- plugin/workspace.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/workspace.vim b/plugin/workspace.vim index dc33ec1..35ac649 100644 --- a/plugin/workspace.vim +++ b/plugin/workspace.vim @@ -125,10 +125,10 @@ function! s:Autosave(timed) let s:last_update = current_time checktime " checktime with autoread will sync files on a last-writer-wins basis. call s:UntrailSpaces() - doautocmd BufWritePre % " needed for soft checks + silent! doautocmd BufWritePre % " needed for soft checks silent! update " only updates if there are changes to the file. if a:timed == 0 || s:time_delta >= g:workspace_autosave_au_updatetime - doautocmd BufWritePost % " Periodically trigger BufWritePost. + silent! doautocmd BufWritePost % " Periodically trigger BufWritePost. endif endif endfunction