S
S
Sergey Burduzha2019-02-15 21:23:55
vim
Sergey Burduzha, 2019-02-15 21:23:55

How to copy multiple lines in command line mode in vim?

I am using vscode and vim.
Do not judge strictly until I decide to completely switch to Linux, while I still work under Windows.
So, there are several lines

.our-worsk__item
        .our-works__picture
          img.our-works__image(src="assets/i/our-works/2.jpg", alt="")
          span.our-works__label
        .our-works__content
          h3.our-works__title Саша Мальцев
          p.our-works__text Попросил омолодить и омолодили! Кто теперь скажет, что мне 45?
          ul.our-works__meta.meta
            li.meta__item
              i.meta__picture.meta-picture--scrissors
                <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="21" height="20" viewBox="0 0 21 20"><g><g transform="translate(-42 -892)"><image width="21" height="20" transform="translate(42 892)" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAUCAYAAABiS3YzAAAA8UlEQVQ4T7WV0RGCMBBEHx1oB9qBpWgHWoIVOFZgCdCBlmIHWoId6KxeZg5IAsThfpiQ5LF3uQ0Vv9gCF2Bl4ydwBG42nvSoDHhN7NqNANfA3u1vBH2YwjtwtskTsAGkeJ2R2QMCB0HftsmrUjmCeq2JRRSohaXQJDBAc+m/gGVHZhYYoD7VWJqN6mQTg8AAjbWUFC78iRrYQ/3HWmJSh6BFKVV6rwjqe9nloB4s5QqZIQkL9KlQlSSZ9hhoN32fZhYclHa9HzsoQVt2TJViyPsCFbXULM1f4v1Bm5ZAc338vVBmufpy3i++pGPe/+t38gGpi1VTPRWL9QAAAABJRU5ErkJggg=="/></g></g></svg>
              span.meta__text Стрижка

Let's say I need to copy lines 3 to 8.
I call the command line mode through shift : and write
3,8yanka
, that is, copy lines 3 to 8 in register a, you can do without a.
But only this does not work, I get an error on the command line that this is not a vim command.
What is the reason?
Or am I not writing the command correctly, or is vim in vscode not working as it should?
Thanks in advance for your help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2019-02-15
@serii81

I call the command line mode through shift : and write
3,8yanka
, that is, copy lines from 3 to 8 in register a, you can do without a.

I do the same in vim by adding a space between yank and a -- and it works. Conclusion: the problem is in vscode.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question