Skip to content

Commit b53117e

Browse files
committed
Merge branch 'develop'
2 parents fa75f50 + 55f0d82 commit b53117e

File tree

1 file changed

+55
-54
lines changed

1 file changed

+55
-54
lines changed

app/index.html

+55-54
Original file line numberDiff line numberDiff line change
@@ -27,99 +27,100 @@ <h1>VIM</h1>
2727
<div class="col-lg-4">
2828
<h2>Cursor movement</h2>
2929
<ul>
30-
<li><kbd>h</kbd> - move left</li>
31-
<li><kbd>j</kbd> - move down</li>
32-
<li><kbd>k</kbd> - move up</li>
33-
<li><kbd>l</kbd> - move right</li>
34-
<li><kbd>w</kbd> - jump by start of words (punctuation considered words)</li>
35-
<li><kbd>W</kbd> - jump by words (spaces separate words)</li>
36-
<li><kbd>e</kbd> - jump to end of words (punctuation considered words)</li>
37-
<li><kbd>E</kbd> - jump to end of words (no punctuation)</li>
38-
<li><kbd>b</kbd> - jump backward by words (punctuation considered words)</li>
39-
<li><kbd>B</kbd> - jump backward by words (no punctuation)</li>
40-
<li><kbd>0</kbd> - (zero) start of line</li>
41-
<li><kbd>^</kbd> - first non-blank character of line</li>
42-
<li><kbd>$</kbd> - end of line</li>
43-
<li><kbd>G</kbd> - go to command (prefix with number - <kbd>5G</kbd> goes to line 5)</li>
30+
<li><kbd>h</kbd> - move cursor left</li>
31+
<li><kbd>j</kbd> - move cursor down</li>
32+
<li><kbd>k</kbd> - move cursor up</li>
33+
<li><kbd>l</kbd> - move cursor right</li>
34+
<li><kbd>w</kbd> - jump forwards to the start of a word</li>
35+
<li><kbd>W</kbd> - jump forwards to the start of a word (words can contain punctuation)</li>
36+
<li><kbd>e</kbd> - jump forwards to the end of a word</li>
37+
<li><kbd>E</kbd> - jump forwards to the end of a word (words can contain punctuation)</li>
38+
<li><kbd>b</kbd> - jump backwards to the start of a word</li>
39+
<li><kbd>B</kbd> - jump backwards to the start of a word (words can contain punctuation)</li>
40+
<li><kbd>0</kbd> - jump to the start of the line</li>
41+
<li><kbd>^</kbd> - jump to the first non-blank character of the line</li>
42+
<li><kbd>$</kbd> - jump to the end of the line</li>
43+
<li><kbd>G</kbd> - go to the last line of the document</li>
44+
<li><kbd>5G</kbd> - go to line 5</li>
4445
</ul>
4546
<div class="well">
4647
<small><strong>Tip</strong> Prefix a cursor movement command with a number to repeat it. For example, <kbd>4j</kbd> moves down 4 lines.</small>
4748
</div>
48-
<h2>Insert Mode - Inserting/Appending text</h2>
49+
<h2>Insert mode - inserting/appending text</h2>
4950
<ul>
50-
<li><kbd>i</kbd> - start insert mode at cursor</li>
51+
<li><kbd>i</kbd> - insert before the cursor</li>
5152
<li><kbd>I</kbd> - insert at the beginning of the line</li>
52-
<li><kbd>a</kbd> - append after the cursor</li>
53-
<li><kbd>A</kbd> - append at the end of the line</li>
54-
<li><kbd>o</kbd> - open (append) blank line below current line (no need to press return)</li>
55-
<li><kbd>O</kbd> - open blank line above current line</li>
56-
<li><kbd>ea</kbd> - append at end of word</li>
53+
<li><kbd>a</kbd> - insert (append) after the cursor</li>
54+
<li><kbd>A</kbd> - insert (append) at the end of the line</li>
55+
<li><kbd>o</kbd> - append (open) a new line below the current line</li>
56+
<li><kbd>O</kbd> - append (open) a new line above the current line</li>
57+
<li><kbd>ea</kbd> - insert (append) at the end of the word</li>
5758
<li><kbd>Esc</kbd> - exit insert mode</li>
5859
</ul>
5960
</div>
6061
<div class="col-lg-4">
6162
<h2>Editing</h2>
6263
<ul>
63-
<li><kbd>r</kbd> - replace a single character (does not use insert mode)</li>
64+
<li><kbd>r</kbd> - replace a single character</li>
6465
<li><kbd>J</kbd> - join line below to the current one</li>
65-
<li><kbd>cc</kbd> - change (replace) an entire line</li>
66-
<li><kbd>cw</kbd> - change (replace) to the end of word</li>
67-
<li><kbd>c$</kbd> - change (replace) to the end of line</li>
68-
<li><kbd>s</kbd> - delete character at cursor and substitute text</li>
69-
<li><kbd>S</kbd> - delete line at cursor and substitute text (same as cc)</li>
70-
<li><kbd>xp</kbd> - transpose two letter (delete and paste, technically)</li>
66+
<li><kbd>cc</kbd> - change (replace) entire line</li>
67+
<li><kbd>cw</kbd> - change (replace) to the end of the word</li>
68+
<li><kbd>c$</kbd> - change (replace) to the end of the line</li>
69+
<li><kbd>s</kbd> - delete character and substitute text</li>
70+
<li><kbd>S</kbd> - delete line and substitute text (same as cc)</li>
71+
<li><kbd>xp</kbd> - transpose two letters (delete and paste)</li>
7172
<li><kbd>u</kbd> - undo</li>
7273
<li><kbd>Ctrl</kbd> + <kbd>r</kbd> - redo</li>
7374
<li><kbd>.</kbd> - repeat last command</li>
7475
</ul>
7576
<h2>Marking text (visual mode)</h2>
7677
<ul>
77-
<li><kbd>v</kbd> - start visual mode, mark lines, then do command (such as y-yank)</li>
78+
<li><kbd>v</kbd> - start visual mode, mark lines, then do a command (like y-yank)</li>
7879
<li><kbd>V</kbd> - start linewise visual mode</li>
7980
<li><kbd>o</kbd> - move to other end of marked area</li>
8081
<li><kbd>Ctrl</kbd> + <kbd>v</kbd> - start visual block mode</li>
8182
<li><kbd>O</kbd> - move to other corner of block</li>
8283
<li><kbd>aw</kbd> - mark a word</li>
83-
<li><kbd>ab</kbd> - a () block (with braces)</li>
84-
<li><kbd>aB</kbd> - a {} block (with brackets)</li>
85-
<li><kbd>ib</kbd> - inner () block</li>
86-
<li><kbd>iB</kbd> - inner {} block</li>
84+
<li><kbd>ab</kbd> - a block with ()</li>
85+
<li><kbd>aB</kbd> - a block with {}</li>
86+
<li><kbd>ib</kbd> - inner block with ()</li>
87+
<li><kbd>iB</kbd> - inner block with {}</li>
8788
<li><kbd>Esc</kbd> - exit visual mode</li>
8889
</ul>
8990
<h2>Visual commands</h2>
9091
<ul>
91-
<li><kbd>&#62;</kbd> - shift right</li>
92-
<li><kbd>&#60;</kbd> - shift left</li>
92+
<li><kbd>&#62;</kbd> - shift text right</li>
93+
<li><kbd>&#60;</kbd> - shift text left</li>
9394
<li><kbd>y</kbd> - yank (copy) marked text</li>
9495
<li><kbd>d</kbd> - delete marked text</li>
9596
<li><kbd>~</kbd> - switch case</li>
9697
</ul>
9798
</div>
9899
<div class="col-lg-4">
99-
<h2>Cut and Paste</h2>
100+
<h2>Cut and paste</h2>
100101
<ul>
101102
<li><kbd>yy</kbd> - yank (copy) a line</li>
102-
<li><kbd>2yy</kbd> - yank 2 lines</li>
103-
<li><kbd>yw</kbd> - yank word</li>
104-
<li><kbd>y$</kbd> - yank to end of line</li>
103+
<li><kbd>2yy</kbd> - yank (copy) 2 lines</li>
104+
<li><kbd>yw</kbd> - yank (copy) word</li>
105+
<li><kbd>y$</kbd> - yank (copy) to end of line</li>
105106
<li><kbd>p</kbd> - put (paste) the clipboard after cursor</li>
106107
<li><kbd>P</kbd> - put (paste) before cursor</li>
107108
<li><kbd>dd</kbd> - delete (cut) a line</li>
108109
<li><kbd>2dd</kbd> - delete (cut) 2 lines</li>
109-
<li><kbd>dw</kbd> - delete (cut) the current word</li>
110-
<li><kbd>D</kbd> - delete (cut) to the end of line</li>
110+
<li><kbd>dw</kbd> - delete (cut) word</li>
111+
<li><kbd>D</kbd> - delete (cut) to the end of the line</li>
111112
<li><kbd>d$</kbd> - delete (cut) to the end of the line</li>
112-
<li><kbd>x</kbd> - delete (cut) current character</li>
113+
<li><kbd>x</kbd> - delete (cut) character</li>
113114
</ul>
114115
<h2>Exiting</h2>
115116
<ul>
116117
<li><kbd>:w</kbd> - write (save) the file, but don't exit</li>
117118
<li><kbd>:wq</kbd> - write (save) and quit</li>
118119
<li><kbd>:x</kbd> - write (save) and quit</li>
119-
<li><kbd>:q</kbd> - quit (fails if anything has changed)</li>
120-
<li><kbd>:q!</kbd> - quit and throw away changes</li>
120+
<li><kbd>:q</kbd> - quit (fails if there are unsaved changes)</li>
121+
<li><kbd>:q!</kbd> - quit and throw away unsaved changes</li>
121122
</ul>
122-
<h2>Search/Replace</h2>
123+
<h2>Search and replace</h2>
123124
<ul>
124125
<li><kbd>/pattern</kbd> - search for pattern</li>
125126
<li><kbd>?pattern</kbd> - search backward for pattern</li>
@@ -135,28 +136,28 @@ <h2>Search/Replace</h2>
135136
<h2>Working with multiple files</h2>
136137
<ul>
137138
<li><kbd>:e</kbd> filename - edit a file in a new buffer</li>
138-
<li><kbd>:bnext</kbd> or <kbd>:bn</kbd> - go to next buffer</li>
139-
<li><kbd>:bprev</kbd> or <kbd>:bp</kbd> - go to previous buffer</li>
139+
<li><kbd>:bnext</kbd> or <kbd>:bn</kbd> - go to the next buffer</li>
140+
<li><kbd>:bprev</kbd> or <kbd>:bp</kbd> - go to the previous buffer</li>
140141
<li><kbd>:bd</kbd> - delete a buffer (close a file)</li>
141142
<li><kbd>:sp</kbd> filename - open a file in a new buffer and split window</li>
142143
<li><kbd>:vsp</kbd> filename - open a file in a new buffer and vertically split window </li>
143-
<li><kbd>Ctrl</kbd> + <kbd>ws</kbd> - split windows</li>
144+
<li><kbd>Ctrl</kbd> + <kbd>ws</kbd> - split window</li>
144145
<li><kbd>Ctrl</kbd> + <kbd>ww</kbd> - switch windows</li>
145146
<li><kbd>Ctrl</kbd> + <kbd>wq</kbd> - quit a window</li>
146-
<li><kbd>Ctrl</kbd> + <kbd>wv</kbd> - split windows vertically</li>
147+
<li><kbd>Ctrl</kbd> + <kbd>wv</kbd> - split window vertically</li>
147148
</ul>
148149
</div>
149150
<div class="col-lg-4">
150151
<h2>Tabs</h2>
151152
<ul>
152-
<li><kbd>:tabnew</kbd> filename or <kbd>:tabn</kbd> filename - open file in a new tab</li>
153-
<li><kbd>Ctrl+W T</kbd> - move current split window into its own tab</li>
154-
<li><kbd>gt</kbd> or <kbd>:tabnext</kbd> or <kbd>:tabn</kbd> - move to next tab</li>
155-
<li><kbd>gT</kbd> or <kbd>:tabprev</kbd> or <kbd>:tabp</kbd> - move to previous tab</li>
153+
<li><kbd>:tabnew</kbd> filename or <kbd>:tabn</kbd> filename - open a file in a new tab</li>
154+
<li><kbd>Ctrl</kbd> + <kbd>wt</kbd> - move the current split window into its own tab</li>
155+
<li><kbd>gt</kbd> or <kbd>:tabnext</kbd> or <kbd>:tabn</kbd> - move to the next tab</li>
156+
<li><kbd>gT</kbd> or <kbd>:tabprev</kbd> or <kbd>:tabp</kbd> - move to the previous tab</li>
156157
<li><kbd>#gt</kbd> - move to tab number #</li>
157158
<li><kbd>:tabmove #</kbd> - move current tab to the #th position (indexed from 0)</li>
158159
<li><kbd>:tabclose</kbd> or <kbd>:tabc</kbd> - close the current tab and all its windows</li>
159-
<li><kbd>:tabonly</kbd> or <kbd>:tabo</kbd> - close all other tabs except for the current one</li>
160+
<li><kbd>:tabonly</kbd> or <kbd>:tabo</kbd> - close all tabs except for the current one</li>
160161
</ul>
161162
</div>
162163
</div> <!-- end row -->

0 commit comments

Comments
 (0)