vim:cheatsheet:cut_and_paste
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
vim:cheatsheet:cut_and_paste [2021/02/16 10:35] – created peter | vim:cheatsheet:cut_and_paste [2021/02/16 10:38] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== VIM - Cheatsheet - Cut and paste ====== | ====== VIM - Cheatsheet - Cut and paste ====== | ||
+ | < | ||
+ | yy - yank (copy) a line | ||
+ | 2yy - yank (copy) 2 lines | ||
+ | | ||
+ | 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 linehttps:// | ||
+ | | ||
+ | p - put (paste) the clipboard after cursor | ||
+ | P - put (paste) before cursor | ||
+ | | ||
+ | dd - delete (cut) a line | ||
+ | 2dd - delete (cut) 2 lines | ||
+ | |||
+ | 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 | ||
+ | |||
+ | x - delete (cut) character | ||
+ | </ |
vim/cheatsheet/cut_and_paste.1613471744.txt.gz · Last modified: 2021/02/16 10:35 by peter