2004年2月20日 星期五

使用vi時dos與unix換行符號的差異

:set fileformat=dos
:set fileformat=unix
:set fileformat=mac

可以用
:set ff=dos
:set ff=unix
:set ff=mac

dos 是以 0D 0A 來斷行
unix 是以 0A 來斷行
mac 是以 0D 來斷行


Reference
http://www.study-area.net/tips/vim/
大家來學VIM(一個歷久彌新的編輯器)

沒有留言: