Skip to content

Commit 20a0eef

Browse files
committed
Add Repeating Characters as a vim til.
1 parent 50fa160 commit 20a0eef

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
191191
- [Re-indenting Your Code](vim/reindenting-your-code.md)
192192
- [Rename Current File](vim/rename-current-file.md)
193193
- [Repeat The Previous Change](vim/repeat-the-previous-change.md)
194+
- [Repeating Characters](vim/repeating-characters.md)
194195
- [Replace A Character](vim/replace-a-character.md)
195196
- [Scrolling Relative to the Window](vim/scrolling-relative-to-the-window.md)
196197
- [Set End Of Line Markers](vim/set-end-of-line-markers.md)

vim/repeating-characters.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Repeating Characters
2+
3+
It's not common to need to type 39 space characters in a row, but when the
4+
moment arises, you don't want to be caught hitting the space bar 39 times.
5+
Vim makes it easy. From normal mode, type the number, then `i`, and then the
6+
character to be repeated followed by an escape.
7+
8+
For instance, for 39 spaces, hit:
9+
10+
```
11+
39i <esc>
12+
```
13+
14+
or for 80 dashes, hit:
15+
16+
```
17+
80i-<esc>
18+
```

0 commit comments

Comments
 (0)