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&...
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 ...
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}
...
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', {
\ ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
custom-text-object × 3plugin-textobj-user × 3
cursor-motions × 2
visual-mode × 1
map-operator × 1
object-motions × 1