在vim中判斷檔案格式,是dos或者unix

在vim中輸入

:set ff?

如果檔案是dos,將要顯示

fileformat=dos

如果檔案是unix,將要顯示

fileformat=unix

猜你喜欢

转载自blog.csdn.net/u011028408/article/details/83302775
今日推荐