jaredpar/VsVim — Issue #794: Moving cursor in visual block mode behaves oddly
Author: tremby
Created: 2012-02-28 02:47:52+00:00
State: open

C-V to get visual block mode, then l and j to move down and right -- that all works fine as long as you don't go past a shorter line. For instance

blah blah [1] blah [2] blah
short
blah blah blah bl [3] blah blah
blah blah blah bl [4] blah blah

If visual block is started at [1] and you press l a few times to get to [2], then j to go down once, things look as they do in vim. If you then press j again to get to [3] the selection area is correct but the cursor is below [1]. Moving again (left or right) moves the cursor and then the area is recalculated. The cursor should have jumped from the end of the short line back to [3].

Now try opening a new visual block at [4], then pressing k to move up to [3], then l to move right. The selected block area shifts over to the right and expands rather than just expanding.