Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

vim-after-object

:point_right: Target text *after* the designated characters

Subscribe to updates I use vim-after-object


Statistics on vim-after-object

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 / Authorjunegunn
Contributors1
Page Updated
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

Subscribe to our mailing list

Evaluating vim-after-object for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

vim-after-object travis-ci

Defines text objects to target text after the designated characters.

Installation

Using vim-plug:

Plug 'junegunn/vim-after-object'

Setting up

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([']', '['], '=', ':')

Usage

# 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.

vim-after-object open issues Ask a question     (View All Issues)
  • over 4 years present as missing feature in Vim regarding f and t
vim-after-object list of languages used
  • Vim script
Other projects in VimL