| Number of watchers on Github | 64 |
| Number of open issues | 1 |
| Average time to close an issue | about 10 hours |
| Main language | VimL |
| Average time to merge a PR | about 2 hours |
| Open pull requests | 0+ |
| Closed pull requests | 0+ |
| Last commit | almost 2 years ago |
| Repo Created | about 5 years ago |
| Repo Last Updated | over 1 year ago |
| Size | 12 KB |
| Organization / Author | junegunn |
| Contributors | 1 |
| Page Updated | 2018-03-23 |
| Do you use vim-after-object? Leave a review! | |
| View vim-after-object activity | |
| View on github | |
| Fresh, new opensource launches 🚀🚀🚀 | |
|
Trendy new open source projects in your inbox!
View examples
|
|
Defines text objects to target text after the designated characters.
Using vim-plug:
Plug 'junegunn/vim-after-object'
vim-after-object does not define any mappings by default. You have to enable mappings you want.
autocmd VimEnter * call after_object#enable('=', ':', '-', '#', ' ')
For each character, a pair of mappings are defined; the default mapping with
a-prefix (mnemonic for after) and the one with aa-prefix for backward
search. The latter is only used when the character appears more than once in
the line.
To use different prefixes, pass an optional list to after_object#enable:
" ]= and [= instead of a= and aa=
autocmd VimEnter * call after_object#enable([']', '['], '=', ':')
# va= visual after =
# ca= change after =
# da= delete after =
# ya= yank after =
apple = 'juice'
When the line contains multiple occurrences of the character, you can move the
visual selection forward by repeating a=, or backward with aa=. Both
mappings can be preceded by a count. Refer to the test cases for the details.