Yakov Lerner
2004-07-20 19:36:38 UTC
I think this is bug in vim. This can be observed in terminal emulator
which does not resize window width when you 'set columns=N'
to a lower value. One such terminal terminal emulator is gnome-terminal.
If you don't have gnome-terminal, you can also observe it in xterm if
you set TERM to vt100 ( TERM=vt100 will cause vim not to resize xterm's
window).
I noticed this in real editing when using multi-tabbed gnome-terminal. The
gnome-terminal had with of 200 columns but I wanted to watch for my long
lines
and I set 'set solumns=80', and I noticed this thing.
To reproduce:
1. open either gnome-terminal, or open xterm and set TERM to vt100.
2. vim -U NONE -u NONE
3. :set laststatus=2 " just for visibility
4. insert this line longer than 80 chars:
123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
5. :set columns=40
6. Now the vim is using only 40 columns witdth out of 80 width
of terminal window, but the terminal emulator does not
resizes its window (see #1).
7. You'll notice that the last character in long wrapped lines
is "ghost" character, replicated and drawn past 40-th column.
Yakov
which does not resize window width when you 'set columns=N'
to a lower value. One such terminal terminal emulator is gnome-terminal.
If you don't have gnome-terminal, you can also observe it in xterm if
you set TERM to vt100 ( TERM=vt100 will cause vim not to resize xterm's
window).
I noticed this in real editing when using multi-tabbed gnome-terminal. The
gnome-terminal had with of 200 columns but I wanted to watch for my long
lines
and I set 'set solumns=80', and I noticed this thing.
To reproduce:
1. open either gnome-terminal, or open xterm and set TERM to vt100.
2. vim -U NONE -u NONE
3. :set laststatus=2 " just for visibility
4. insert this line longer than 80 chars:
123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
5. :set columns=40
6. Now the vim is using only 40 columns witdth out of 80 width
of terminal window, but the terminal emulator does not
resizes its window (see #1).
7. You'll notice that the last character in long wrapped lines
is "ghost" character, replicated and drawn past 40-th column.
Yakov