On Thu, Aug 24, 2006 at 12:17:45PM +0200, Radoslaw Garbacz wrote:
>
> 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
Both of these examples have :normal followed by another command
(separated by |). This is discussed under
:help :execute
Try
:call search("class","") | execute "normal j]} :s/}$/};/g" | update
or
:%g/class/execute "normal j]}:s?}?};?g" | update
HTH --Benji Fisher