Indonesia Website Awards
Indonesia Website Awards

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
CTRL+SHIFT+C and
CTRL+SHIFT+V
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
CTRL+SHIFT+C like this :

 

copy paste first method

 

then use

CTRL+SHIFT+V
CTRL+SHIFT+V to paste it

 

copy paste first method

Also Read : Rules on Cronjob

Second, we can type

mk
mk
y'k
y'k and
p
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
mk (here I am doing it on line 2),

 

copy paste second method

 

then we point the cursor to the last line that we want to copy and press

y'k
y'k ( here I am doing it on line 5 )

 

copy paste second method

 

Finally we hover over the line we want to paste and press

p
p  ( here I am doing it on line 5, so paste it starting from line 6 )

 

copy paste second method
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 ^^

Categories: Linux

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *