sponsor Vim development Vim logo Vim Book Ad

intermediate Tip #1433: Use of vim to convert files mangled by Palm OS memo conduit

 tip karma   Rating 129/41, Viewed by 824 

Read and edit this tip on the Vim tip wiki. The wiki may have a more recent version of this tip.

created:   December 6, 2006 21:47      complexity:   intermediate
author:   Pete Jenkins      as of Vim:   5.7

This may not be useful to a lot (any?) of people, but here it is none the less. Tip is described on my blog here: http://pete4512.blogspot.com/2006/12/vim-palm-desktop-text-formatting.html

 rate this tip  Life Changing Helpful Unfulfilling 

<< File search similar to cmd-t in TextMate | as you type (or paste) in Makefile, autoconvert leading eight spaces to tab >>

Additional Notes

Anonymous, December 7, 2006 6:25
No one cares about your blog...

Here is the relevant vim code from his post there

:%s/^V^M/^V^V^V/g

:%s/^V^M/^V^V/g

:%s/^V^M/^V/g

:%s/\/\/ /\/\/^V/g
pete.vim@mailnull.com, December 8, 2006 12:43
You "internet people" are kinda harsh huh :) Next time I'll post just the code.
Anonymous, December 15, 2006 12:42
How about setting  ffs?

:set ffs+=mac

Best to use it before loading the file. Then you won't get any problems about ^Ms or something like that.
If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to vim@vim.org after searching the archive. Help Bram help Uganda.
   
Sponsored by Web Concept Group Inc. SourceForge.net Logo