mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 07:08:01 +00:00
Add Repeat The Previous Change as a vim til.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
10
vim/repeat-the-previous-change.md
Normal file
10
vim/repeat-the-previous-change.md
Normal file
@@ -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.
|
||||
Reference in New Issue
Block a user