Skip to content

Instantly share code, notes, and snippets.

@Andrew8xx8
Created April 6, 2011 06:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Andrew8xx8/905219 to your computer and use it in GitHub Desktop.
Save Andrew8xx8/905219 to your computer and use it in GitHub Desktop.
замена dos-овых концов строк (\r\n -> \n)
Если vim автоматически не распознал DOS line ends,
то в конце строк будут символы ^M.
Удалить их можно простой заменой:
:%s/^M//g
Символ ^M при этом вводится как Ctrl-V Ctrl-M.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment