VSCodeVim / VSCodeVim/Vim

Text block yank with `vip` and pasting behave differently from vim/neovim

Open
#5,772 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/bug
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Describe the bug
When one copies a block of text selected using vip and then pastes it with p, the behavior presented by vscodevim is different from vim and neovim. On vim, the block will be pasted in the line below the current highlighted one while using vscodevim the block is pasted in the same line. The screencasts below show the issue in a more clear way.

To Reproduce
Steps to reproduce the behavior:

Neovim

nvim

VscodeVim

vscode

Expected behavior
VscodeVim to behave the same way as Vim.

Screenshots
See screencasts above

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.17.1
  • VSCode version: 1.51.1
  • OS: Linux x64 5.4.0-48-generic

Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f
Date: 2020-11-10T23:31:29.624Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0

Additional context
N/A

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the vip then p sequence in VSCodeVim and compare it with the Vim and Neovim screencasts linked in the issue. Done means the selected text block is pasted on the line below the highlighted line, matching Vim behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.