Loading ...
Sorry, an error occurred while loading the content.

93Re: removing control characters

Expand Messages
  • Bram Moolenaar
    Aug 4, 2000
    • 0 Attachment
      Robert Link wrote:

      > I want to take an old MSWord file, open it in vimppc, and zap all
      > control characters, leaving me alpha-num-punctuation; here's what I
      > thought should work:
      >
      > :%s/[[:cntrl:]]//g
      >
      > This nets me a warning, "Pattern not found: [[:cntrl:]]"

      This is a bug. The NUL character is accidentally included in the range, and
      it truncates the regexp. I'll make a patch for it against 5.7.

      --
      hundred-and-one symptoms of being an internet addict:
      116. You are living with your boyfriend who networks your respective
      computers so you can sit in separate rooms and email each other

      /// Bram Moolenaar Bram@... http://www.moolenaar.net \\\
      \\\ Vim: http://www.vim.org ICCF Holland: http://iccf-holland.org ///
    • Show all 3 messages in this topic