5 votes

Is there a way to "move to the beginning of the next text object"?

For the general case, you can try creating new operators, gs and ge: function! GoStart(type) abort normal! `[ endfunction function! GoEnd(type) abort normal! `] endfunction nnoremap <silent&...
Rich's user avatar
  • 31.3k
4 votes

Is there a way to "move to the beginning of the next text object"?

This doesn't answer your more general question about text objects, but you can achieve the behaviour in your specific indentation-based example with folds: setlocal foldmethod=indent setlocal ...
Rich's user avatar
  • 31.3k
3 votes

Is there a way to "move to the beginning of the next text object"?

Plugin vim-ninja-feet by tommcdo Currently, this plugin provides following square bracket mappings (do not overlook the square in the definition): {operator}[{text object} ...
Hotschke's user avatar
  • 4,640
3 votes

textobj-user: must the patterns be different?

This is actually a know issue (see issues #2 and #15 in the plugin bug tracker). The author of the plugin suggested a workaround of the following form: call textobj#user#plugin('handyobjects', { \ ...
statox's user avatar
  • 49.4k

Only top scored, non community-wiki answers of a minimum length are eligible