vim 小功能-讓你能更快速完成工作
2016-11-13 本文已影响0人
iamkai
對整個文件進行縮排
func IndentEntireFile()
execute "normal mzgg=G`z"
endfunc
刪除不必要的行尾空白
func DeleteTrailWS()
execute "normal mz"
%s/\s\+$//ge
execute "normal z"
endfunc
若有其他不錯的功能將會持續更新上來