vim:cheatsheet:cut_and_paste
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
vim:cheatsheet:cut_and_paste [2021/02/16 10:36] – peter | vim:cheatsheet:cut_and_paste [2021/02/16 10:38] (current) – peter | ||
---|---|---|---|
Line 4: | Line 4: | ||
yy - yank (copy) a line | yy - yank (copy) a line | ||
2yy - yank (copy) 2 lines | 2yy - yank (copy) 2 lines | ||
+ | | ||
yw - yank (copy) the characters of the word from the cursor position to the start of the next word | yw - yank (copy) the characters of the word from the cursor position to the start of the next word | ||
- | y$ - yank (copy) to end of line | + | y$ - yank (copy) to end of linehttps:// |
+ | | ||
p - put (paste) the clipboard after cursor | p - put (paste) the clipboard after cursor | ||
P - put (paste) before cursor | P - put (paste) before cursor | ||
+ | | ||
dd - delete (cut) a line | dd - delete (cut) a line | ||
2dd - delete (cut) 2 lines | 2dd - delete (cut) 2 lines | ||
+ | |||
dw - delete (cut) the characters of the word from the cursor position to the start of the next word | dw - delete (cut) the characters of the word from the cursor position to the start of the next word | ||
+ | |||
D - delete (cut) to the end of the line | D - delete (cut) to the end of the line | ||
d$ - delete (cut) to the end of the line | d$ - delete (cut) to the end of the line | ||
+ | |||
x - delete (cut) character | x - delete (cut) character | ||
</ | </ |
vim/cheatsheet/cut_and_paste.1613471781.txt.gz · Last modified: 2021/02/16 10:36 by peter