vim-cheatsheet.html (3769B)
1 <html> 2 <body> 3 Normal mode commands<br> 4 <table style="width:100%"> 5 <col style="width:25%"> 6 <col style="width:75%"> 7 <tr> 8 <th>Tag</th> 9 <th>Description</th> 10 </tr> 11 <tr> 12 <td>a</td> 13 <td>Append. Enter insert mode pointing at the character one after the cursor.</td> 14 </tr> 15 <tr> 16 <td>A</td> 17 <td>Enter insert mode pointing at the character one after the end of the current line.</td> 18 </tr> 19 <tr> 20 <td>CTRL-A</td> 21 <td>Increment the number under the cursor by one.</td> 22 </tr> 23 <tr> 24 <td>b</td> 25 <td>Back. Go to the start of the current word or previous word if you are already at the current word start.</td> 26 </tr> 27 <tr> 28 <td>B</td> 29 <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> 30 </tr> 31 <tr> 32 <td>CTRL-B</td> 33 <td>Scroll up one page.</td> 34 </tr> 35 <tr> 36 <td>c</td> 37 <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> 38 </tr> 39 <tr> 40 <td>cc</td> 41 <td>Clear the current line and open insert mode.</td> 42 </tr> 43 <tr> 44 <td>C</td> 45 <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> 46 </tr> 47 <tr> 48 <td>CTRL-C</td> 49 <td>Cancel whatever you are halfway through doing. E.g. c3 CTRL-C would cancel your c command.</td> 50 </tr> 51 <tr> 52 <td>d</td> 53 <td>Delete. Goes d<motion>. Delete what is selected by <motion>.</td> 54 </tr> 55 <tr> 56 <td>dd</td> 57 <td>Delete the current line and move the cursor to the next line.</td> 58 </tr> 59 <tr> 60 <td>D</td> 61 <td>Delete every character from the cursor to the end of the current line.</td> 62 </tr> 63 <tr> 64 <td>CTRL-D</td> 65 <td>Scroll down half a page.</td> 66 </tr> 67 <tr> 68 <td>e</td> 69 <td>End. Go to the end of the current word or next word if you are already at the current word end.</td> 70 </tr> 71 <tr> 72 <td>E</td> 73 <td>Go to the end of the current WORD or next WORD if you are already at the current WORD end. See B</td> 74 </tr> 75 <tr> 76 <td>CTRL-E</td> 77 <td>Scroll down by one line.</td> 78 </tr> 79 <tr> 80 <td>f</td> 81 <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> 82 </tr> 83 <tr> 84 <td>F</td> 85 <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> 86 </tr> 87 <tr> 88 <td>CTRL-F</td> 89 <td>Scroll down one page.</td> 90 </tr> 91 <tr> 92 <td>CTRL-F</td> 93 <td>Scroll down one page.</td> 94 </tr> 95 </table> 96 </body> 97 </html>