mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 23:28:02 +00:00
Add Repeating Characters as a vim til.
This commit is contained in:
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