Gary Johnson <[email protected]> [09-11-18 01:52]:
> 
> On 2009-11-18, [email protected] wrote:
> > Hi,
> > 
> > while editing C/C++-source I often came into the following situation:
> > 
> > This is the "original" code
> > 
> >     a_pulses = times * proportional_x         ;
> >     b_pulses = times * proportional_y         ;
> >     c_pulses = times * proportional_z         ;
> > 
> > ...then I see, that the last line must be corrected. I position my
> > cursor over the second "p" of that line and press cfz and get as
> > an intermidiate state this;
> > 
> >     a_pulses = times * proportional_x         ;
> >     b_pulses = times * proportional_y         ;
> >     c_pulses = times * proportional_$         ;
> > 
> > ...then I type correction followed by <ESC>
> > 
> >     a_pulses = times * proportional_x         ;
> >     b_pulses = times * proportional_y         ;
> >     c_pulses = times * pi         ;
> > 
> > . Unfortunately the ";" jumps to the left cause "pi" is shorter than
> > "proportional_z".
> > 
> > Is there a mechanism available, which fills automagically the missing
> > space with " " when doing a cf<char> or cw with a shorter word as the 
> > replacement or (other situation) "eats up" space, when replaceing is 
> > done with a longer word as in 
> > 
> >     a_pulses = times * proportional_x         ;
> >     b_pulses = times * proportional_y         ;
> >     c_pulses = times * pi * 2.721 * phaseloop         ;
> > 
> > ???
> > 
> > (The examples given are a special case of the general question I
> > have.)
> > 
> > Thank you very much in advance for any help!
> 
> While not a solution to the general case, in cases like your
> examples where I'm changing all the text up to the large space, I
> use R rather than c<motion>.
> 
> Regards,
> Gary
> 
> 
> 
> > 

Since I want to type efficiently and spaces can sometimes a lot
more than those in the example I think, there most be a better
way....its vim! ;) :o)

Regards,
mcc

-- 
Please don't send me any Word- or Powerpoint-Attachments
unless it's absolutely neccessary. - Send simply Text.
See http://www.gnu.org/philosophy/no-word-attachments.html
In a world without fences and walls nobody needs gates and windows.


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to