vim
#copy & paste
using text
:start line, end line copy dest ine
example :9,15 copy 16
it will copy line 9 to 15 to 16.
using v+y, p
1) v key, enter select mode, move current to select what your want , and then press "y" to copy the selected to memory
2) move the currsor to your desired position, press "p"
#paste
middle key of mouse or ctrl+shift+v
Cut and paste:
- Position the cursor where you want to begin cutting.
- Press
vto select characters, or uppercaseVto select whole lines, orCtrl-vto select rectangular blocks (useCtrl-qifCtrl-vis mapped to paste). - Move the cursor to the end of what you want to cut.
- Press
dto cut (oryto copy). - Move to where you would like to paste.
- Press
Pto paste before the cursor, orpto paste after.
Copy and paste is performed with the same steps except for step 4 where you would press y instead of d:
dstands for delete in Vim, which in other editors is usually called cutystands for yank in Vim, which in other editors is usually called copy
浙公网安备 33010602011771号