CTRL-d - lists possible command completions
TAB - cycles through possible command completions
Example:
:help tags (then CTRL-d and TAB)
Do :help i_ CTRL-d
for insert commands, :help v_
for visual, etc.
Also, when in the help pages, CTRL-]
jumps to subjects between |bars|
and CTRL-T
jumps back (and, of course, :q
to quit).
Command |
Description |
:g/pattern/d |
Delete all lines mathching pattern |
Command |
Description |
Ctrl-W s |
Split window horizontally |
Ctrl-W v |
Split window verticalally |
Command |
Description |
Ctrl-W _ |
Max out the height of the current split |
10 Ctrl-W _ |
Minimize split to 10 lines |
Ctrl-W | |
Max out the width of the current split |
10 Ctrl-W | |
Minimize split to 10 columns |
Ctrl-W = |
Normalize all split sizes, which is very handy when resizing terminal |
Command |
Description |
Ctrl-W w |
Switch windows |
Ctrl-W x |
Exchange current window with next |
Ctrl-W q |
Quit current split |
Ctrl-W c |
Close current split |
:w !diff % '' do a diff of the file you're editing to see what you have changed
Action |
Command |
Ctrl-w N |
enter normal mode (for scrolling and editing, if enabled; re-enter term with i |
:vert term |
open terminal in vertical window |
:source ~/.vimrc