Y
Y
Yermek2020-09-17 17:55:17
vim
Yermek, 2020-09-17 17:55:17

How to move the selected block?

In one of the video tutorials on Youtube, I saw how the author, when refactoring, selects a block of text and moves it up / down in the text.

Please tell me how is it done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Barbolin, 2020-09-17
@dronmaxman

You can simply delete and paste
. Press "v", then select the block with arrows, then "d" - delete, then "p" - insert.
or
d5d - deletes 5 lines at once, then "p".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question