Windows
C-w does window stuff.
| Key | Effect |
|---|---|
| C-w s | split horizontal |
| C-w v | split vertical |
| C-w L | move current window to vertical window on the right (think hjkl navigation keys with shift) |
| C-w H | move current window to vertical window on the left |
| C-w j | move current window to horizontal window below |
| C-w k | move current window to horizontal window above |
| C-w f | open file with name under cursor in new window |
| C-w gf | open file with name under cursor in new tab |
| C-w | | zoom current window |
| C-w = | return from zoom |
| C-w S-t | current window to new tab |
Press C-6 to go back.
g stuff
| Key | Effect |
|---|---|
| gv | go back to last |
| gq | break long paragraphs |
| gJ | join without spaces |
joining lines
You can select lines with visual mode, then press J or gJ and it will join all those lines.
Then if you are at the start of a paragraph, you can use V}J to select to the end of the
paragraph and join.