User Tools

Site Tools


vim:cheatsheet:cut_and_paste

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
vim:cheatsheet:cut_and_paste [2021/02/16 10:35] – created petervim: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 ======
  
 +<code>
 +    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://wiki.sharewiz.net/doku.php?id=vim:cheatsheet:cut_and_paste&do=edit
 +    
 +    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
 +</code>
vim/cheatsheet/cut_and_paste.1613471744.txt.gz · Last modified: 2021/02/16 10:35 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki