Copy and Paste in VI/VIM


- dd will delete the line and add it to the default register.
- k will move up a line (j would move down a line)
- P will paste above the current line

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s