Skip to content

Instantly share code, notes, and snippets.

@manuelmorales
Created January 24, 2012 14:30
Show Gist options
  • Save manuelmorales/1670438 to your computer and use it in GitHub Desktop.
Save manuelmorales/1670438 to your computer and use it in GitHub Desktop.
Replace text across files with vim
" Replace all <% whatever do %> with <%= whatever do %>
:args app/views/*/*
:argdo %s/<% \(.*\) do \(.*\) %>/<%= \1 do \2 %>/ge | update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment