vim:cheatsheet:cut_and_paste
This is an old revision of the document!
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 line 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.1613471781.txt.gz · Last modified: 2021/02/16 10:36 by peter