Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 97 lines (73 sloc) 3.678 kb
01f64bda » georgebrock
2012-12-05 README
1 # Vimulator
2
48716188 » georgebrock
2012-12-07 List commands in the README file.
3 Vimulator is a Vim simulator for teaching and demonstrating Vim. It has a
4 subset of normal mode commands, and an insert mode.
5
5bdc2920 » georgebrock
2012-12-11 Link to demo & tests in README.
6 [Try it out](http://thoughtbot.github.com/vimulator/) and
7 [run the tests](http://thoughtbot.github.com/vimulator/test.html) online.
8
48716188 » georgebrock
2012-12-07 List commands in the README file.
9 ## Supported commands
10
11 ### Motions
12
13 * <kbd>h</kbd>: Move left
14 * <kbd>j</kbd>: Move down
15 * <kbd>k</kbd>: Move up
16 * <kbd>l</kbd>: Move right
17 * <kbd>0</kbd>: Move to the start of the line (before leading whitespace)
18 * <kbd>^</kbd>: Move to the start of the line (after leading whitespace)
19 * <kbd>$</kbd>: Move to the end of the line
20 * <kbd>w</kbd>: Move to the next word
21 * <kbd>W</kbd>: Move to the next WORD
22 * <kbd>e</kbd>: Move to the next word ending
23 * <kbd>E</kbd>: Move to the next WORD ending
24 * <kbd>b</kbd>: Move back to the previous word
25 * <kbd>B</kbd>: Move back to the previous WORD
26 * <kbd>g</kbd><kbd>g</kbd>: Move to the first line of the file (or a specific line, if a count is given)
27 * <kbd>G</kbd>: Move to the last line of the file (or a specific line, if a count is given)
28 * <kbd>+</kbd> or <kbd>Return</kbd>: Move to the start of the next line (after leading whitespace)
29 * <kbd>-</kbd>: Move to the start of the previous line (after leading whitespace)
30
6556762a » georgebrock
2013-02-03 Use search commands as motions.
31 ### Document search
32
33 * <kbd>/</kbd>: Search forwards
34 * <kbd>?</kbd>: Search backwards
35 * <kbd>n</kbd>: Go to the next match for the latest search
36 * <kbd>N</kbd>: Go to the previous match for the latest search
37
661f4e4e » georgebrock
2012-12-10 Add marks.
38 ### Marks
39
40 * <kbd>m</kbd>: Create a mark
41 * <kbd>\`</kbd>: Move to a given mark
42 * <kbd>'</kbd>: Move to the line containing a given mark
43
48716188 » georgebrock
2012-12-07 List commands in the README file.
44 ### Insertion
45
46 * <kbd>a</kbd>: Append text after the cursor
47 * <kbd>A</kbd>: Append text at the end of the line
48 * <kbd>i</kbd>: Insert text before the cursor
49 * <kbd>I</kbd>: Insert text at the start of the line (after leading whitespace)
50 * <kbd>g</kbd><kbd>I</kbd>: Insert text at the start of the line (before leading whitespace)
51 * <kbd>o</kbd>: Open the next line
52 * <kbd>O</kbd>: Open the previous line
53 * <kbd>s</kbd>: Substitute characters under the cursor
54 * <kbd>S</kbd>: Substitute to the end of the line
55
56 ### Operators
57
58 * <kbd>c</kbd>, <kbd>c</kbd><kbd>c</kbd> and <kbd>C</kbd>: Change text
59 * <kbd>d</kbd>, <kbd>d</kbd><kbd>d</kbd> and <kbd>D</kbd>: Delete text
60
6556762a » georgebrock
2013-02-03 Use search commands as motions.
61 Operators work with all of the motions and document search commands listed
62 above, and the following text objects:
48716188 » georgebrock
2012-12-07 List commands in the README file.
63
c210de32 » georgebrock
2013-02-03 Update README with more text objects.
64 * <kbd>i</kbd> or <kbd>a</kbd> followed by <kbd>b</kbd>, <kbd>(</kbd> or
65 <kbd>)</kbd>: Inside or around parenthesis
66 * <kbd>i</kbd> or <kbd>a</kbd> followed by <kbd>B</kbd>, <kbd>{</kbd> or
67 <kbd>}</kbd>: Inside or around braces
68 * <kbd>i</kbd> or <kbd>a</kbd> followed by <kbd>[</kbd> or <kbd>]</kbd>: Inside
69 or around square brackets
48716188 » georgebrock
2012-12-07 List commands in the README file.
70
71 ### Line search
72
b0e2d188 » georgebrock
2012-12-07 Typos.
73 * <kbd>f</kbd>: Find the next occurrence of a character
74 * <kbd>F</kbd>: Find the previous occurrence of a character
48716188 » georgebrock
2012-12-07 List commands in the README file.
75 * <kbd>t</kbd>: Find the character before the next occurrence of a character
b0e2d188 » georgebrock
2012-12-07 Typos.
76 * <kbd>T</kbd>: Find the character after the previous ocurrence of a character
48716188 » georgebrock
2012-12-07 List commands in the README file.
77 * <kbd>;</kbd>: Repeat the last line search
78 * <kbd>,</kbd>: Repeat the last line search, reversing the direction
79
80 ### Edits
81
82 * <kbd>r</kbd>: Replace the character under the cursor
83 * <kbd>x</kbd>: Delete the character under the cursor
84 * <kbd>X</kbd>: Delete the character before the cursor
34e748aa » georgebrock
2013-02-03 README tweaks.
85 * <kbd>.</kbd>: Repeat the last edit or operator
01f64bda » georgebrock
2012-12-05 README
86
e265915a » georgebrock
2013-10-02 Add yank and put to README
87 ### Yank and put
88
89 * <kbd>y</kbd><kbd>y</kbd> or <kbd>Y</kbd>: Yank the current line
90 * <kbd>p</kbd>: Put the most recently yanked line after the current line
91 * <kbd>P</kbd>: Put the most recently yanked line before the current line
92
01f64bda » georgebrock
2012-12-05 README
93 ## License
94
95 Vimulator is licensed under the [MIT license][mit].
96
97 [mit]: http://opensource.org/licenses/MIT
Something went wrong with that request. Please try again.