Hello, in this post I want to share tips for Linux users who often use the VIM editor. the tips are how to copy and paste in vim editor. There are 2 ways that I give:
The first, using the keyboard buttons CTRL+SHIFT+C
and CTRL+SHIFT+V
. The trick, when we are in the Vim editor and have entered insert mode, block the part that you want to copy using CTRL+SHIFT+C
like this :
then use CTRL+SHIFT+V
to paste it
Also Read : Rules on Cronjob
Second, we can type mk
y'k
and p
. To copy and paste, the method is to mark or mark the position of rows from such as line 1 to line 10, then we just copy after that paste. To do this, point the vim cursor to the starting line that we want to copy and then press mk
(here I am doing it on line 2),
then we point the cursor to the last line that we want to copy and press y'k
( here I am doing it on line 5 )
Finally we hover over the line we want to paste and press p
( here I am doing it on line 5, so paste it starting from line 6 )
Yes, that’s a simple tip that I can give about how to copy and paste in the vim editor, hopefully it will be useful for all readers, thank you ^^
0 Comments