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:
@@ -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)
|
||||
|
||||
18
vim/repeating-characters.md
Normal file
18
vim/repeating-characters.md
Normal 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>
|
||||
```
|
||||
Reference in New Issue
Block a user