vim-textobj-user icon indicating copy to clipboard operation
vim-textobj-user copied to clipboard

User text-objects reference

Open nkgm opened this issue 8 years ago • 1 comments

I'm already using a bunch of plugins making use of vim-textobj-user and sometimes it's hard to remember what text-objects are contributed by which plugin, or what's available for the current filetype. Is there a way to list them or how hard would that be?

nkgm avatar Feb 23 '17 22:02 nkgm

That's hard to achieve perfectly. Because vim-textobj-user doesn't track such information. But you can use :vmap a to list all of available text objects, and :vmap <buffer>a to list text objects defined only for the current buffer (= filetype).

Unfortunately, :verbose vmap a doesn't work as expected. This command lists all text objects with plugin names which defined them. But all text objects are defined via vim-textobj-user, so that the command lists vim-textobj-user repeatedly.

kana avatar Feb 25 '17 09:02 kana