1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:30:05 +08:00

perf(core): use :update instead of :w

This commit is contained in:
wsdjeg 2023-06-17 18:48:42 +08:00
parent ffdc24702d
commit 14835d4439

View File

@ -930,7 +930,7 @@ endfunction
function! s:save_current_file() abort
let v:errmsg = ''
silent! write
silent! update
if v:errmsg !=# ''
echohl ErrorMsg
echo v:errmsg