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!

Keep hacking!
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