1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 22:20:06 +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 function! s:save_current_file() abort
let v:errmsg = '' let v:errmsg = ''
silent! write silent! update
if v:errmsg !=# '' if v:errmsg !=# ''
echohl ErrorMsg echohl ErrorMsg
echo v:errmsg echo v:errmsg