Skip to content

Instantly share code, notes, and snippets.

@xiangjian
Created September 13, 2011 08:19
Embed
What would you like to do?
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