Skip to content

Instantly share code, notes, and snippets.

@RIAstar
Created July 11, 2011 21:25
Show Gist options
  • Save RIAstar/1076822 to your computer and use it in GitHub Desktop.
Save RIAstar/1076822 to your computer and use it in GitHub Desktop.
[vim] search & replace stuff
" remove ctrl+M at linebreaks
:1,$s/^M//g
" type :1,$s/ CTRL-Q CTRL-M //g for entering the ^M character
" backslash to forward slash
:%s/\\/\//g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment