Chapter 3. Vim Editor

Normal Mode (3) – Copy and Paste

Normal Mode (3) – Copy and Paste
Tag:

In Normal mode, you can copy text and paste the copied text in a certain location in the same document.

Copy – y (yank) command)

yy : copy the line under the cursor

nyy : copy multiple lines (current line and lines below)

Copy – p (paste) command)

p : paste copied text in the line below the current line

P : paste copied text in the line above the current line

In Normal mode, you can copy text and paste the copied text in a certain location in the same document.

Copy – y (yank) command)

yy : copy the line under the cursor

nyy : copy multiple lines (current line and lines below)

Copy – p (paste) command)

p : paste copied text in the line below the current line

P : paste copied text in the line above the current line

Tag: