When I repeat change operations in Vim, spaces and periods are replaced ASCII character 172 (¬
).
For example:
- In command mode I move to the word "
year
" and typecw
and then "yr.
" to change the word "year" to "yr." - I hit Escape, navigate to another part of the file, and attempt to replace another instance of "year" with "yr." by typing
.
(period) to repeat the last command. yr¬
is inserted instead.
This behavior doesn't happen if I use macros instead of .
to repeat the command. For example, if I type qr
before cwyr.
and q
after (to store the operation in register r
as a macro) and then I use @r
to repeat the operation, yr.
is inserted properly.
I've only seen this problem on my Ubuntu machine running Ubuntu 10.04. It is a problem in both Vim and gVim and modifying or removing my .vimrc
file has not fixed the problem so far.
Any idea what's going on here or how to fix this? I upgraded Vim to version 7.3 recently and I'm still having the same issue.