사용자 도구

사이트 도구


application:vim:fileformat

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
application:vim:fileformat [2007/09/25 23:28]
starlits
application:vim:fileformat [2009/12/28 23:30] (현재)
starlits
줄 67: 줄 67:
  
 ===== Fixing Inconsistent Line Endings ===== ===== Fixing Inconsistent Line Endings =====
-  - If you have extra leading or trailing characters (^M in unix or ^J in mac), use **:%s/\r//** to remove them. +  - If you have extra leading or trailing characters (^M in unix or ^J in mac), use **:%s/\r/''/''** to remove them. 
   - If you have long lines (mac line-ends with ff=dos or unix, unix line ends with ff=mac), use **:%s/\r/\r/g** to replace the wrong line-ends with the correct line-ends.    - If you have long lines (mac line-ends with ff=dos or unix, unix line ends with ff=mac), use **:%s/\r/\r/g** to replace the wrong line-ends with the correct line-ends. 
   - If you are curious, the reasoning behind this methodology appears below.   - If you are curious, the reasoning behind this methodology appears below.
 +
  
 ===== The Nitty-Gritty (핵심) ===== ===== The Nitty-Gritty (핵심) =====
application/vim/fileformat.1190730507.txt.gz · 마지막으로 수정됨: 2007/09/25 23:28 저자 starlits