Operating System - HP-UX
1752812 Members
6092 Online
108789 Solutions
New Discussion

vi problems with repeating commands with dot

 
C-Mays
New Member

vi problems with repeating commands with dot

I'm having an issue in my HPUX vi sesssions when attempting to repeat the previous r command (single char replace)
The first time I use the r command it works as expected. 
For example, I do the single character replace command:  rA    
The character at my current location is changed to the character 'A' as desired.
I can go to another location in the file and issue the . (dot) command and again my current character is changed to an 'A'.

In the same session, if I issue another r command.  For example:   rB
the character at my current location is changed to the character 'B' as desired.
However, if I go to another location in the file and issue the . (dot) command to repeat the replacement
instead of replacing the current character with a 'B' as desired, it replaces it with an 'A' from the first r command.

It's seems like whatever buffer the r command uses during the repeat command doesn't get updated after the first use.

Is anyone else experiencing this issue?

I've tried repeating other commands with the . (dot) command and they all seem fine:  R, cw, C

Thanks in advance for any help.
Curtis.

1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: vi problems with repeating commands with dot

I tried it with "r" then dot then changing "r" then dot but it worked fine for me.