If *every* line ends with ^M (which is almost always going to be the case, if the file has been produced on a DOS/Windows system), then you can just use this:
:%s/.$// to delete the last character of each line. This has an obvious downside, but the advantages are that it's easier to type and to read. -- Greg Wooledge | "Truth belongs to everybody." [EMAIL PROTECTED] | - The Red Hot Chili Peppers http://wooledge.org/~greg/ |
signature.asc
Description: Digital signature