From 20a0eefb0999cac44606f386ee57b2cf077d38c2 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Wed, 16 Sep 2015 21:39:03 -0500 Subject: [PATCH] Add Repeating Characters as a vim til. --- README.md | 1 + vim/repeating-characters.md | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 vim/repeating-characters.md diff --git a/README.md b/README.md index e641ecd..bd8b525 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/vim/repeating-characters.md b/vim/repeating-characters.md new file mode 100644 index 0000000..a05ab38 --- /dev/null +++ b/vim/repeating-characters.md @@ -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 +``` + +or for 80 dashes, hit: + +``` +80i- +```