Tony Mechelynck wrote: > On Wed, Sep 7, 2016 at 7:06 AM, Tony Mechelynck > <[email protected]> wrote: >> On Wed, Sep 7, 2016 at 6:22 AM, Charles E Campbell >> <[email protected]> wrote: >>> Hello: >>> >>> With the following 6 lines: (the last three are empty) >>> ----------------- >>> hello world! >>> hello world! >>> hello world! >>> >>> >>> >>> ----------------- >>> Put cursor on line 4, use ctrl-v and move down 2 lines. >>> Press "ad . This operation grabs the visually selected text and puts it >>> into register a. (ie. the three blank lines) >> At this point, (for me) the register contains ^J^J^J (three >> carriage-return characters) > Oops, sorry, in Block-visual (note Line-visual) the selected text is > not deleted and the register contains ^J^J (only 2 carriage returns) >>> :goto 1 . This puts the cursor on the h in the first hello. >>> "ap >>> >>> I rather expected that nothing would happen -- instead, a blank is inserted >>> after each h. >> With me, it inserts three empty lines immediately after the current >> line (i.e., between lines 1 and 2) > Sorry. In block-visual I see the same as you do. It "might" be > correct, considering that we insert a three-line block after column 1 > and that, when the cursor is on an empty line, the "column" part of > the ruler says 0-1 (i.e. "column 0, visual column 1" or maybe more > precisely "byte 0, screen cell 1"). > >>> Is this correct behavior? >>> Hello:
Well, this affects my vis.vim plugin, which allows one to perform an arbitrary vim command on a visual block; for example, :B s/e// applied to visual-block selected "e"s in the "hello"s. Result was unwanted blanks being inserted. I've worked around this, but I think its a vim bug (visual block selection of empty lines should not insert something). Regards, Chip Campbell -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
