On Sat, May 13, 2006 at 10:37:46PM +0200, Tobias Klein wrote:
> Hi list,
>
> I noticed a non expected behaviour (for me) using visual block mode in
> combination with text objects.
>
> Here is an example:
> say we have a file containing only two lines (one character each):
> a
> b
>
> Then typing:
> CTRL-V apIx
> (starting visual block mode and selecting both lines _with an text
> object_ to insert 'x' in front of every line)
>
> results in:
> xa
> b
>
> I expect:
> xa
> xb
>
> Tested on VIM 7.0 (Patches 1-16)
> with
> vim -u NONE
>
> Tobi
I see the same thing. I notice that
:echo line("'<") col("'<") line("'>") col("'>")
shows
1 1 2 2
and that a 2x2 block (including one space beyond the end of each line)
is highlighted after CTRL-V ap . If I start on the "a" and try
CTRL-V jl then the highlighted area is an L shape, including only the
"a" on the first line. I get the same response
:echo line("'<") col("'<") line("'>") col("'>")
1 1 2 2
with either selection.
Does anyone want to try to fix this before Bram gets back from
vacation?
HTH --Benji Fisher