From 485303acb525a5e97c869aeab6bcfa06536bf72b Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Mon, 23 Mar 2015 18:46:42 -0500 Subject: [PATCH] Add Repeat The Previous Change as a vim til. --- README.md | 1 + vim/repeat-the-previous-change.md | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 vim/repeat-the-previous-change.md diff --git a/README.md b/README.md index 15beca6..536dd51 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ smart people at [Hashrocket](http://hashrocket.com/). - [Quick Man Pages](vim/quick-man-pages.md) - [Quick Quickfix List Navigation](vim/quick-quickfix-list-navigation.md) - [Rename Current File](vim/rename-current-file.md) +- [Repeat The Previous Change](vim/repeat-the-previous-change.md) - [Split Different](vim/split-different.md) - [View Commit History of a File](vim/view-commit-history-of-a-file.md) diff --git a/vim/repeat-the-previous-change.md b/vim/repeat-the-previous-change.md new file mode 100644 index 0000000..0a86d17 --- /dev/null +++ b/vim/repeat-the-previous-change.md @@ -0,0 +1,10 @@ +# Repeat The Previous Change + +If you have just performed a change and you realize you want to immediately +do it again, you can hit `.` instead of retyping it. This is a good way to +quickly repeat simple changes. + +For instance, if you are adding indentation to a code block with `>`, you +can estimate the number of indents that need to happen and type `3>` or you +can indent once and then hit `.` for additional indentation until you reach +the right level of indentation.