Last active
September 8, 2015 09:44
-
-
Save devhero/e6373c087e878d6e7f8a to your computer and use it in GitHub Desktop.
vim cut copy paste - http://vim.wikia.com/wiki/Copy,_cut_and_paste
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cut and paste: | |
Position the cursor where you want to begin cutting. | |
Press v to select characters (or uppercase V to select whole lines). | |
Move the cursor to the end of what you want to cut. | |
Press d to cut (or y to copy). | |
Move to where you would like to paste. | |
Press P to paste before the cursor, or p to paste after. | |
Copy and paste is performed with the same steps except for step 4 where you would press y instead of d: | |
d = delete = cut | |
y = yank = copy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment