This is 'simple how to' copy, paste and delete on Vim
Copy
Y --> To copy one line
2Y --> Two lines
10Y --> 10 lines
yG --> All lines to the end of the file
Paste
Just hit 'p'
Delete
dd --> delete a line
5dd --> delete five lines
d$ --> delete to end of line
d0 --> delete to beginning of line
Select
ggVG --> select all
0 comments:
Post a Comment