對整個文件進行縮排
func IndentEntireFile()
execute "normal mzgg=G`z"
endfunc
刪除不必要的行尾空白
func DeleteTrailWS()
execute "normal mz"
%s/\s\+$//ge
execute "normal z"
endfunc
若有其他不錯的功能將會持續更新上來
func IndentEntireFile()
execute "normal mzgg=G`z"
endfunc
func DeleteTrailWS()
execute "normal mz"
%s/\s\+$//ge
execute "normal z"
endfunc
若有其他不錯的功能將會持續更新上來
本文标题:vim 小功能-讓你能更快速完成工作
本文链接:https://www.haomeiwen.com/subject/jxucpttx.html
网友评论