Vim: Visual Block can't paste as a block

Created on 1 Mar 2019  Â·  12Comments  Â·  Source: VSCodeVim/Vim

What happened:
image
It works in Vim that I can paste the paragraph as a block to the right side,
image
image
but it doesn't work in VScode,it inserts the block after that line.

What did you expect to happen:
image

thanks!

arecontent-change kinbug

Most helpful comment

Soon (â„¢)

All 12 comments

Confirmed the same behavior happened for VSCodeVim on Ubuntu 16.04.

Ace does this perfectly (as far as I can see at least) and might provide hints as to how to go about fixing/implementing this.

me too.

Same for me, both Linux Debian and Mac.

CTRL+v -> select with arrow -> y -> p
the block is pasted in-line, not as a block like in vim.

Same here on Version 1.36.1 (1.36.1) on macOS 10.14.5 (18F132)

Same here on version 1.36.1 rhel74. Often times I will select a block and paste it over a separately selected block in vim.

A temporary workaround is to visual block copy in VSCodeVim, then make a selection with the same number of lines in visual block mode (the standard CTRL+v default) and use CTRL+SHIFT+v to paste it as a block while in visual block mode.

A temporary workaround is to visual block copy in VSCodeVim, then make a selection with the same number of lines in visual block mode (the standard CTRL+v default) and use CTRL+SHIFT+v to paste it as a block while in visual block mode.

This works well for me, thanks for the tips!

@J-Fields any idea when this will be fixed? This seems like a basic vim functionality... :disappointed:

Soon (â„¢)

Closing as duplicate of #1796. This is mostly working on a local branch, I'm just fixing some edge cases and writing tests. Expect it to be included in the next release.

If I yank two three and then I cannot paste it over four selected in Visual block

one four eight
two three five
Was this page helpful?
0 / 5 - 0 ratings

Related issues

stefanoio picture stefanoio  Â·  3Comments

jaredly picture jaredly  Â·  3Comments

gerardmrk picture gerardmrk  Â·  3Comments

WangRongda picture WangRongda  Â·  3Comments

st-schneider picture st-schneider  Â·  3Comments