1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add Repeating Characters as a vim til.

This commit is contained in:
jbranchaud
2015-09-16 21:39:03 -05:00
parent 50fa16057d
commit 20a0eefb09
2 changed files with 19 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,18 @@
# Repeating Characters
It's not common to need to type 39 space characters in a row, but when the
moment arises, you don't want to be caught hitting the space bar 39 times.
Vim makes it easy. From normal mode, type the number, then `i`, and then the
character to be repeated followed by an escape.
For instance, for 39 spaces, hit:
```
39i <esc>
```
or for 80 dashes, hit:
```
80i-<esc>
```