Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Visual block mode: yanking / copy not working properly #24

@davehouser1

Description

@davehouser1

This a continuation of issue #21

When in visual block mode copy and paste do not work properly.
If I have the following example:

1 dog
2 cat
3 moose

If I go to the o in dog on line 1, use ctrl+q, and go down two lines, and use y to yank, then go to line 4 and paste, I see this.

1 dog
2 cat
3 moose
4 og
5 cat
6 m

That is not right it should look like this

1 dog
2 cat
3 moose
4 o
5 a
6 o

More testing, other JSON text

1  {
2    "animals": [ 
3      - { "dog" : "wolf" }
4      - { "cat" : "meow" }
5      - { "moose" : "huuuuhh" }
6    ]
7  }

If I go to the m in animals, ctrl q, then j down 3 times I would capture m{{{, It looks like this if I go to line 8 and paste

1   {
2     "animals": [ 
3       - { "dog" : "wolf" }
4       - { "cat" : "meow" }
5       - { "moose" : "huuuuhh" }
6     ]
7   }
8   m
9   {
10  {
11  {

But it looks like this

1   {
2     "animals": [ 
3       - { "dog" : "wolf" }
4       - { "cat" : "meow" }
5       - { "moose" : "huuuuhh" }
6     ]
7   }
8  mals": [ 
9      - { "dog" : "wolf" }
10      - { "cat" : "meow" }
11    - 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions