diff --git a/articles/vi.md b/articles/vi.md index eb16976..c482df9 100644 --- a/articles/vi.md +++ b/articles/vi.md @@ -126,6 +126,9 @@ It has to be noted that `Home`, `End`, `PageUp/Down` and cursor keys also work. - (n) `K`: look for the identifier under the cursor in the man pages, really useful when you're doing C programming. - (n) `.`: repeat last action - `:help`, `:h`: Vim help pages +- `:!`: execute shell command (in the shell specified by the `shell` varible) +- `:r!`: execute shell command and paste the stdout of that command in the current buffer at where the cursor is +- `:w !`: (not `:w!`) send buffer or current range to the specified shell command ### Macros - (n) `q`: start recording macro to register @@ -166,6 +169,8 @@ It has to be noted that `Home`, `End`, `PageUp/Down` and cursor keys also work. - `30gg`: go to line 30 - `G`: go to bottom of file - `30G`: same as `30gg` +- `|`: go to column of the current line + - `20|`: move to column 20 - `gT`: move to previous tab - `gt`: move to next tab - `gf`: open the file path under the cursor in a new buffer