In a quest to work more efficiently, I’m trying to reduce the use of the mouse. Therefore I’m trying to learn as much shortcuts as possible.
This page stores the ones I’m learning for vim.
Shortcut | Description |
---|---|
Duplicate line | yy (yank line) , p (paste) |
Copy line to system | shit + v (to select), yy (yank line) |
Add new line | o |
Visual mode | v |
Copy chars selected | y (yank) |
Visual block mode | ctrl + V |
How to:
Add text to multiple lines:
- Visual block mode
- Select where to change
- Press I
- Perform the change in one line
- Press ESC
- The change will propagate