terminal:vim
VIM
Vi IMproved
Commands/Keybinds
Commands are entered in visual mode, the default mode of Vim. If you want to enter a command you must be in visual mode. Pressing ESC will exit the insert and replace modes. Some commands may be stacked, specifically those that require a colon to be typed in order to use them. A useful stacked command is :wq.
| Command | Description |
|---|---|
| :q | Exits Vim |
| :w | Writes changes to a file |
| :set showmode | Shows current mode |
| /<query> | Searches for a string |
| v | Single character select mode |
| shift+v | Whole line select mode |
| q<char><commands>q | Start recording a macro |
| @<char> | Runs macro <char> |
| <number>@<char> | Runs a macro <char> <number> times |
terminal/vim.txt · Last modified: 2022/08/14 20:44 by lucid