Skip to content

Instantly share code, notes, and snippets.

@xiangjian
Created September 13, 2011 08:19
Show Gist options
  • Save xiangjian/1213402 to your computer and use it in GitHub Desktop.
Save xiangjian/1213402 to your computer and use it in GitHub Desktop.
vim for website to webapp
:args *.aspx */*.aspx */*/*.aspx */*/*/*.aspx
:argdo %s/Inherits="\(\w*\)"/Inherits="WebSite\.\1"/ge|update
:args *.ashx */*.ashx */*/*.ashx */*/*/*.ashx
:argdo %s/" Class="\(\w*".*$\)/" class="WebSite\.\1"namespace WebSite{/ge|$s/$/}/ge|update
:args *.ascx */*.ascx */*/*.ascx */*/*/*.ascx
:argdo %s/ Inherits="\(\w*\)"/ Inherits="WebSite\.\1"/ge |update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment