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

Re: DOS scripts under Unix.

Expand Messages
  • Antoine J. Mechelynck
    ... Regards, Tony.
    Message 1 of 3 , Sep 9, 2003
      Krzysztof Wrzalik <kwrzalik@...> wrote:
      > Hi!
      > Recently, I've downloaded several scripts from vim.org written by
      > folks who were apparently using DOS/Windows. Those scripts had those
      > nasty ^Rs at the end of each line which made my Unix version choke.
      > Of course, it is easy to remove them with some filter, but I wonder
      > if this could be fixed by some VIM setup...
      > Best Regards, Krzysztof

      If you mean ^M (or \r) then the following should "repair" it:

      :edit ++ff=dos filename
      :set ff=unix

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