Hi,
 I'm a new Vim user and want to use it to convert some JavaScript code to C#
code.

The only problem is I can't get the patterns to work. :-/

I was given this to use,

%s/var \(.*\) : \(.*\) = \(.*\);/\2 \1 = \3;/g
%s/var \(.*\) : \(.*\);/\2 \1;/g
%s/function \(.*\)() : \(.*\)/public \2 \1()/g
%s/function \(.*\)/public void \1
%s/boolean/bool 

but when I paste in the first line in command mode, it says 

E486: Pattern not found: var \(.*\) : \(.*\) = \(.*\);


My other question, is it possible in Vim to enter all of these commands at
once, rather than 1 at a time for each file I want to convert?


-- 
View this message in context: 
http://old.nabble.com/Search-and-Replace-Across-Multiple-Files-tp27802445p27802445.html
Sent from the Vim - General mailing list archive at Nabble.com.

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to