This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| vi_vim [2025/05/19 00:17] – created ken | vi_vim [2026/01/16 03:37] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== Adding a character to the end of every line, using vim ===== | ||
| + | |||
| + | < | ||
| + | :%norm A* | ||
| + | </ | ||
| + | // | ||
| + | This is what it means: | ||
| + | // | ||
| + | < | ||
| + | | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | // | ||
| + | |||
| ===== vi Complete Key Binding List ===== | ===== vi Complete Key Binding List ===== | ||
| - | This is not intended as a tutorial. It is a reference on what every vi key binding does, followed by some useful vi tricks and tips. An expert will probably know most of these already, but an intermediate vi user will find valuable information, | + | This is not intended as a tutorial. It is a reference on what every vi key binding does, followed by some useful vi tricks and tips. An expert will probably know most of these already, but an intermediate vi user will find valuable information, |
| - | complete key binding reference | + | ==== complete key binding reference |
| - | Key Action Followed by | + | Key Action Followed by\\ |
| - | a enter insertion mode after current character text, | + | | a | enter insertion mode after current character | |
| - | b back word | + | **a** enter insertion mode after current character text, |
| - | c change command cursor motion command | + | b back word\\ |
| - | d delete command cursor motion command | + | c change command cursor motion command\\ |
| - | e end of word | + | d delete command cursor motion command\\ |
| - | f find character after cursor in current line character to find | + | e end of word\\ |
| - | g UNBOUND | + | f find character after cursor in current line character to find\\ |
| - | h move left one character | + | g UNBOUND\\ |
| - | i enter insertion mode before current character text, | + | h move left one character\\ |
| - | j move down one line | + | i enter insertion mode before current character text, |
| - | k move up one line | + | j move down one line\\ |
| - | l move right one character | + | k move up one line\\ |
| - | m mark current line and position mark character tag (a-z) | + | l move right one character\\ |
| + | m mark current line and position mark character tag (a-z)\\ | ||
| n repeat last search | n repeat last search | ||
| o open line below and enter insertion mode text, ESC | o open line below and enter insertion mode text, ESC | ||