[SLUG] how to make vim DTRT

From: Eben King (eben01@verizon.net)
Date: Mon Mar 17 2008 - 16:41:49 EST


Something -- I think Google Groups -- is replacing the second space after a
sentence as well as the final space in a time (between H:MM and [ap]m) with
0xa0 = 0240 which is presumably a non-breakable space in some encoding. I'd
like to replace these with everyday spaces. I've got a "tr" command that
does it ("| tr '\240' ' '") but what I don't know is how to make vim pipe
the whole document through that, and replace all text with what comes out.

:%something|tr '\240' ' '

is as far as I've got. Anyone?

-- 
-eben   QebWenE01R@vTerYizUonI.nOetP   royalty.mine.nu:81
          They that can give up essential liberty to
           obtain a little temporary safety deserve
          neither liberty nor safety. -- Ben Franklin
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:20:34 EDT