I think I was misunderstood...
What I mean is: I have already installed a bunch of plugins that provide new text objects. I have a 'custom cheat sheet' with all those text objects, but I dont have it with me now.
I need a way to find you if a text object (not a native one!) is alreadly defined (by a plugin or in my vimrc for instance). Is there such a way?
On Sun, Aug 3, 2014 at 2:16 PM, Tony Mechelynck <antoine.mechelynck@gmail.com> wrote:
No need for a custom external cheat sheet, there is the built-in help.On 03/08/14 10:52, jmlucjav wrote:
hi
I am considering adding some mapping to define a new text object (for
numbers) as iN, aN etc. The thing is I already have a number of plugins
for text objects. I don't have my custom cheatsheat here, so I cannot
verify iN is available.
What would be the way to list all text objects defined from inside vim,
or at least check iN is available?
thanks
:help iN
:help aN
send back to :in[sert] and :an[oremenu] so these two "moves" are not yet defined in Normal or Operator-pending mode. Similarly there is no help for v_iN or v_aN so they aren't taken (yet) in Visual mode either.
Near the top of
:help quickref.txt
you can see a two-column list with among others
|Q_tm| motion: Text object
|Q_to| Text objects
so double-clicking either of these green helptags (or hitting Ctrl-] on them) will bring you to the corresponding help. Or you could use just
:help Q_tm
:help Q_to
for the same purpose. That's a built-in cheat sheet for you.
Best regards,
Tony.
--
Whatever it is, I fear Greeks even when they bring gifts.
-- Publius Vergilius Maro (Virgil)
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
--- You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment