Red Hat Bugzilla – Bug 225123
:%! does not update display/buffer
Last modified: 2007-11-30 17:11:54 EST
Description of problem:
After I filter current buffer by `:%!tr . y' the command succeeds but both the
display and the buffer remain unchanged.
Version-Release number of selected component (if applicable):
Almost always, in 20% of cases it is working, adding more newlines to the buffer
before `:%!' etc. may possibly improve the reproducibility
Steps to Reproduce:
1. (possibly delete ~/.vimrc ~/.bashrc for clean environment)
2. /bin/vi or /usr/bin/vim
3. iXXX<Esc>:%!tr . y
4. Possibly also: /y
Displayed buffer still contains XXX.
Search for `X' finds it (`y' fails).
Displayed buffer should contain yyy.
Search for `y' finds it.
My last tested working version was 6.4.007-4.i386.
Deleting vimrc isn't required, just start vim with '-u NONE -U NONE'
VIm works like expected on my system. What are your $TERM $LANG settings and
which terminal are you using (linux-console, konsole, gnome-terminal,...) ?
Does Ctrl-l (L) refesh the screen so that the changes made by tr are
It should not be a displaying problem - I wrote above the search for `y' fails
(sure I also tried CTRL-L, flip to other page etc.). You should try it 2-5
times times - it is not 100% reproducible.
OK, going to check it locally more asi it breaks my various macros.
(-u/-U - thanks although I just wanted to assure I do not have some broken stuff
Sorry the report was completely invalid.
Sure "tr . y" does not translate any character as tr(1) does not use regex.
I just tried to minimize the reproducibility case and...
The bug is just broken gnome-terminal(1) displaying, going to check elsewhere.