On Mon, 10 Oct 2011, mattn wrote:
Thanks for all in this thread.
I still don't assent that vim show <SNR> functions in complete candidates.
And I wonder why they use ":echo <tab>" to get candidate from completion.
I'm thinking who want to know SID are very minorities. And as Ingo
Karkat says, <SNR> is the cryptic names look intimidating.
As you know it, SID is not constant value. if you install scripts in
your runtime path, followers in alphabetical get a different SID value
with restarted.
AFAIK, who want to know SID are developer. And they should know how to
see SID of the script.
It's often useful to see or use script-local functions from a script
without using scriptnames. Some scripts have many functions they define
as script-local, some of which, especially when developing, you may want
to call. It's easier to Tab-complete them than to look up the number
followed by having to type the full function.
1. :scriptnames
and find your script file.
2. :command Foo
to find definition of the command which is defined in your script.
3. define function s:SID()
see :help <SID>
I want to prior normal users.
My vote is for <SNR> functions to sort to the end. It keeps them
tab-completable, but also prioritizes for normal users (if there is such
a thing as a "normal" Vim user).
--
Best,
Ben
--
You received this message from the "vim_dev" 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