사용자 도구

사이트 도구


application:vim:fileformat

차이

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

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
application:vim:fileformat [2007/09/25 23:27]
starlits
application:vim:fileformat [2009/12/28 23:30] (현재)
starlits
줄 41: 줄 41:
     - The true fileformat is not found in 'fileformats', \\ eg a Mac file on a Unix platform using the defaults      - The true fileformat is not found in 'fileformats', \\ eg a Mac file on a Unix platform using the defaults 
     - There is a mix of line-ending sequences. \\ This can happen when mixing tools made for different platforms.      - There is a mix of line-ending sequences. \\ This can happen when mixing tools made for different platforms. 
 +
  
  
줄 52: 줄 53:
 | unix line-ends, ff=dos | Line 1 \\ Line 2 | | unix line-ends, ff=dos | Line 1 \\ Line 2 |
 | dos line-ends, ff=unix | ''%%Line 1^M%%'' \\ ''%%Line 2^M%%'' | | dos line-ends, ff=unix | ''%%Line 1^M%%'' \\ ''%%Line 2^M%%'' |
-| dos line-ends, ff=mac | <code>Line 1  +| dos line-ends, ff=mac | ''%%Line 1%%'' \\ ''%%^JLine 2%%'' \\ ''%%^J%%'' |
-^JLine 2  +
-^J</code> |+
 | mac line-ends, ff=unix | ''%%Line 1^MLine 2^M%%'' | | mac line-ends, ff=unix | ''%%Line 1^MLine 2^M%%'' |
 | mac line-ends, ff=dos  | ''%%Line 1^MLine 2^M%%'' | | mac line-ends, ff=dos  | ''%%Line 1^MLine 2^M%%'' |
줄 68: 줄 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.1190730446.txt.gz · 마지막으로 수정됨: 2007/09/25 23:27 저자 starlits