Vi-IMproved.org Wiki - Diff: FileFormat

Wiki: Diff: FileFormat

Differences between version 19 and predecessor to the previous major change of FileFormat.

Other diffs: Previous Revision, Previous Author

Newer page: version 19 Last edited on September 6, 2006. by 143.210.72.86
Older page: version 17 Last edited on August 6, 2006. by 82.146.53.20
@@ -8,11 +8,11 @@
  
 !!Mass conversion 
 As absolon was kind enough to point out in #vim, you can do mass conversion from the shell like so: 
  
-< verbatim>  
-vim +" argdo set ff=< format>" +wqa < files>  
-< /verbatim>  
+< verbatim>  
+vim +" argdo set ff=< format>" +wqa < files>  
+< /verbatim>  
  
 This will set *'fileformat'* for each file in the argument list, then quit, saving all files. 
  
 See :help argdo and :help -c if you need more detail on what this does and why. 
@@ -33,53 +33,53 @@
  
 When *'ff'* is not detected correctly, you will usually see part or all of the line ending sequences in the editor window. Here is a short illustration of what you see when a mismatch happens. 
  
 File contents| 
- &lt; verbatim&gt;  
+ < verbatim>  
  Line 1 
  Line 2 
- &lt; /verbatim&gt;  
+ < /verbatim>  
  
 unix line-ends, ff=mac| 
- &lt; verbatim&gt;  
+ < verbatim>  
  Line 1^JLine 2^J 
- &lt; /verbatim&gt;  
+ < /verbatim>  
  
 unix line-ends, ff=dos| 
- &lt; verbatim&gt;  
+ < verbatim>  
  Line 1 
  Line 2 
- &lt; /verbatim&gt;  
+ < /verbatim>  
  
 dos line-ends, ff=unix| 
- &lt; verbatim&gt;  
+ < verbatim>  
  Line 1^M 
  Line 2^M 
- &lt; /verbatim&gt;  
+ < /verbatim>  
  
 dos line-ends, ff=mac| 
- &lt; verbatim&gt;  
+ < verbatim>  
  Line 1 
  ^JLine 2 
  ^J 
- &lt; /verbatim&gt;  
+ < /verbatim>  
  
 mac line-ends, ff=unix| 
- &lt; verbatim&gt;  
+ < verbatim>  
  Line 1^MLine 2^M 
- &lt; /verbatim&gt;  
+ < /verbatim>  
  
 mac line-ends, ff=dos| 
- &lt; verbatim&gt;  
+ < verbatim>  
  Line 1^MLine 2^M 
- &lt; /verbatim&gt;  
+ < /verbatim>  
  
 !Fixing Detection Problems 
  
 If your file has consistent line endings throughout, but you have had a *'ff'* detection problem, the best fix is to force Vim to use the correct format with the :e command: 
-&lt; verbatim&gt;  
+< verbatim>  
 :e ++ff=mac 
-&lt; /verbatim&gt;  
+< /verbatim>  
  
 !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 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. 
@@ -92,9 +92,9 @@
 Article by [Tofer]. Questions? Comments? Contact me in #vim or send gmail to chagnon. 
  
 ----- 
  
-Thanks Tofer, great article! Here's a [vim tip|http://www.vim.org/tips/tip.php?tip_id=736] that implements the display of non-native fileformat in the statusline.&lt; br&gt; -- GrantBow 
+Thanks Tofer, great article! Here's a [vim tip|http://www.vim.org/tips/tip.php?tip_id=736] that implements the display of non-native fileformat in the statusline.< br> -- GrantBow 
  
 ----- 
  
-Excellent article. Forcing the file format (:e ++ff=mac) did the trick for me. I knew it was a mac-file, but ff=mac never seemed to change anything. I've been looking for this solution quite a while now ... Thanks-- cmasc<div style="abc">123</div> ""<div style="bcd">456</div>"" [http://google.com SE Google] [[http://yahoo.com SE Yahoo]]  
+Excellent article. Forcing the file format (:e ++ff=mac) did the trick for me. I knew it was a mac-file, but ff=mac never seemed to change anything. I've been looking for this solution quite a while now ... Thanks-- cmasc 

PHP Warnings

lib/DB_Session.php:148: Notice[8]: Only variables should be assigned by reference

lib/Template.php:120: Notice[8]: Only variables should be assigned by reference

lib/Template.php:122: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'html'):120: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'html'):122: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'html'):120: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'html'):122: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'body') (In template 'html'):120: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'body') (In template 'html'):122: Notice[8]: Only variables should be assigned by reference