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

Re: how to replace/remove characters, when substitute cmd is sourced from a script

Expand Messages
  • Mathias Michaelis
    Klaus ... The following replaces (^@) by a line break ( r): execute normal :%s/ 000/ r/g HTH Mathias
    Message 1 of 2 , Jan 3, 2005
    • 0 Attachment
      Klaus

      > how to replace/remove <nul> characters, when substitute cmd is
      > sourced from a script
      >
      The following replaces <NUL> (^@) by a line break (\\r):

      execute "normal :%s/\<C-V>000/\\r/g\<CR>"

      HTH
      Mathias
    Your message has been successfully submitted and would be delivered to recipients shortly.