From 0d093c8f3e74569a8c0f927c5b262af122042c18 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Wed, 4 Nov 2015 21:45:39 -0600 Subject: [PATCH] Add Beginning And End Of Previous Change as a vim til. --- README.md | 1 + vim/beginning-and-end-of-previous-change.md | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 vim/beginning-and-end-of-previous-change.md diff --git a/README.md b/README.md index 51722e2..0c76e34 100644 --- a/README.md +++ b/README.md @@ -231,6 +231,7 @@ smart people at [Hashrocket](http://hashrocket.com/). - [Add Custom Dictionary Words](vim/add-custom-dictionary-words.md) - [Alternate Files With vim-rails](vim/alternate-files-with-vim-rails.md) - [Amend Commits With Fugitive](vim/amend-commits-with-fugitive.md) +- [Beginning And End Of Previous Change](vim/beginning-and-end-of-previous-change.md) - [The Black Hole Register](vim/the-black-hole-register.md) - [Buffer Time Travel](vim/buffer-time-travel.md) - [Case-Aware Substitution With vim-abolish](vim/case-aware-substitution-with-vim-abolish.md) diff --git a/vim/beginning-and-end-of-previous-change.md b/vim/beginning-and-end-of-previous-change.md new file mode 100644 index 0000000..a3cf827 --- /dev/null +++ b/vim/beginning-and-end-of-previous-change.md @@ -0,0 +1,11 @@ +# Beginning And End Of Previous Change + +You can jump to the beginning of the previous change with the `[` mark by +hitting `'[` from normal mode. Similarly, you can jump to the end of the +previous change with the `]` mark by hitting `']`. + +Text that was just pasted is also considered a change. Thus, hitting `'[` +and `']` will jump to the beginning and end, respectively, of the text that +was just pasted into the buffer. + +See `:h '[` and `:h ']` for more details.