Re: vim modes switching problem

2006-08-31 Thread Radoslaw Garbacz
On Wednesday 30 August 2006 15:18, Benji Fisher wrote:
 On Thu, Aug 24, 2006 at 12:17:45PM +0200, Radoslaw Garbacz wrote:
   I have a problem with switching from the command-line mode to the normal
  one and back to the command-line.

 :help :execute
 
 Thank you very much for the hint.

-- 

Mit freundlichen Gruessen
Best regards
   
.Radoslaw Garbacz
.aycan Digitalsysteme GmbH
.Innere Aumuehlstrasse 5
.97076 Wuerzburg  .  Germany
.+49.(0)9 31.270 40 9.0  .  phone
.+49.(0)9 31.270 40 9.1  .  fax
.mailto:[EMAIL PROTECTED]
.http://www.aycan.de


vim modes switching problem

2006-08-24 Thread Radoslaw Garbacz

Hello,

 I have a problem with switching from the command-line mode to the normal one 
and back to the command-line.
 
 The command I would like to do is (just an example):
command-line:call search(class,) | normal j]} :s/}$/};/g | update
or maybe:
command-line:%g/class/normal j]}:s?}?};?g | update

 The root problem:
 In general I have to change all } endings of class or struct blocks to 
}; - so maybe there is a simpler solution.

 
 It would be great if the solution worked with ex, because finally I would 
like  to apply it automatically to all the files in a project with ex -c 
argdo ... ...

 Sorry if this is trivial, but I spent some time searching for an answer and 
not succeeded.

 Thanks in advance.
-- 

Mit freundlichen Gruessen
Best regards
   
.Radoslaw Garbacz
.aycan Digitalsysteme GmbH
.Innere Aumuehlstrasse 5
.97076 Wuerzburg  .  Germany
.+49.(0)9 31.270 40 9.0  .  phone
.+49.(0)9 31.270 40 9.1  .  fax
.mailto:[EMAIL PROTECTED]
.http://www.aycan.de