website

The source code for https://bpaul.xyz
Log | Files | Refs

commit 89732416fde2ef6a44caae7afaf0b321ed5f37ea
parent 8409d932ab59a1b99d9d444a360e2c7aa33c7650
Author: benjamin paul <bpaul@bpaul.xyz>
Date:   Sat, 17 Jul 2021 13:59:50 +1000

vim thingo

Diffstat:
Mself-stuff/vim-cheatsheet.html | 93++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 92 insertions(+), 1 deletion(-)

diff --git a/self-stuff/vim-cheatsheet.html b/self-stuff/vim-cheatsheet.html @@ -1,6 +1,97 @@ <html> <body> - <table> + Normal mode commands<br> + <table style="width:100%"> + <col style="width:25%"> + <col style="width:75%"> + <tr> + <th>Tag</th> + <th>Description</th> + </tr> + <tr> + <td>a</td> + <td>Append. Enter insert mode pointing at the character one after the cursor.</td> + </tr> + <tr> + <td>A</td> + <td>Enter insert mode pointing at the character one after the end of the current line.</td> + </tr> + <tr> + <td>CTRL-A</td> + <td>Increment the number under the cursor by one.</td> + </tr> + <tr> + <td>b</td> + <td>Back. Go to the start of the current word or previous word if you are already at the current word start.</td> + </tr> + <tr> + <td>B</td> + <td>Go to the start of the current WORD or previous WORD if you are already at the current WORD start. WORD means anything space separated, not - separated etc.</td> + </tr> + <tr> + <td>CTRL-B</td> + <td>Scroll up one page.</td> + </tr> + <tr> + <td>c</td> + <td>Change. Goes c<motion>. Delete what is selected by <motion> and open insert mode. Not separated for undos like d<motion>i would be.</td> + </tr> + <tr> + <td>cc</td> + <td>Clear the current line and open insert mode.</td> + </tr> + <tr> + <td>C</td> + <td>Delete every character from the cursor to the end of the current line and open insert mode. Not separated for undos like Di would be.</td> + </tr> + <tr> + <td>CTRL-C</td> + <td>Cancel whatever you are halfway through doing. E.g. c3 CTRL-C would cancel your c command.</td> + </tr> + <tr> + <td>d</td> + <td>Delete. Goes d<motion>. Delete what is selected by <motion>.</td> + </tr> + <tr> + <td>dd</td> + <td>Delete the current line and move the cursor to the next line.</td> + </tr> + <tr> + <td>D</td> + <td>Delete every character from the cursor to the end of the current line.</td> + </tr> + <tr> + <td>CTRL-D</td> + <td>Scroll down half a page.</td> + </tr> + <tr> + <td>e</td> + <td>End. Go to the end of the current word or next word if you are already at the current word end.</td> + </tr> + <tr> + <td>E</td> + <td>Go to the end of the current WORD or next WORD if you are already at the current WORD end. See B</td> + </tr> + <tr> + <td>CTRL-E</td> + <td>Scroll down by one line.</td> + </tr> + <tr> + <td>f</td> + <td>Goes nf<char>. Move the pointer to the nth occurence of <char> going forwards from the pointer to the end of the line.</td> + </tr> + <tr> + <td>F</td> + <td>Goes nF<char>. Move the pointer to the nth occurence of <char> going backwards from the pointer to the start of the line.</td> + </tr> + <tr> + <td>CTRL-F</td> + <td>Scroll down one page.</td> + </tr> + <tr> + <td>CTRL-F</td> + <td>Scroll down one page.</td> + </tr> </table> </body> </html>