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:
parent
ffdc24702d
commit
14835d4439
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user