-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathregexfunctions.vim
More file actions
31 lines (26 loc) · 1.11 KB
/
regexfunctions.vim
File metadata and controls
31 lines (26 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
function CsprojToIIS(projectRoot)
let l:projects = { "\\AccountManagement\\AccountManagement.csproj" : "", "\\Application_Form\\Application_Form.csproj" : "", "\\BrokerArea\\BrokerArea.csproj" : "BrokerArea", "\\LMS\\LMS.csproj" : "", "\\LMS.MVC\\LMS.MVC.csproj" : "LMS.MVC", "\\UpdateDetails\\UpdateDetails.csproj" : "" }
for l:project in keys(l:projects)
let l:proj=a:projectRoot . l:project
exe ":edit " . proj
call ReplaceServerPath(l:projects[l:project])
call IisTrue()
write
endfor
endfunction
function ReplaceServerPath(appendString)
exe "%s /\\(.*DevelopmentServerVPath>\\)\\/*\\(\\S\\+\\)\\(<\\/\\1\\_.*<IISUrl>\\)\\_.*\\(<\\/IISUrl>\\)/\\1\\2\\3http:\\/\\/pfd4546.dfc.local\\/\\2" . a:appendString . "\\4/ce"
endfunction
function IisTrue()
%s /\(.*<UseIIS>\)\w\+\(.*\)/\1True\2/ce
endfunction
function LogMessage()
:s /\s\{3}at/\r at/g
%s /---/\r/ge
endfunction
function CardServiceMethod()
%s /\_.*\(CardServer.*ICardServiceContract.*)\)\_.*/\1/
endfunction
function ReplaceDomainUrl
%s /v\$Domain_Url_.{-}\//http:\/\/test-lb.memcapital.com\/LB-5754/c
endfunction