Monday, April 28, 2014

Re: Completing functions with # in the name


On Apr 29, 2014 7:13 AM, "Vlad Irnov" <vlad.irnov@gmail.com> wrote:
>
> On 4/25/14, Nikolay Pavlov <zyx.vim@gmail.com> wrote:
> > On Apr 25, 2014 11:21 AM, "Chris Allison" <chris.charles.allison@gmail.com>
> > wrote:
> >>
> >> Hi skeept,
> >>
> >> what version are you using, as with my version it works as expected
> >
> > Try doing
> >
> >     :set iskeyword&vim isident&vim
> > before completing (this will reset iskeyword and isident options to the
> > default for vim).
> >
> >>
> >> :call unite# <TAB> will complete with functions that start unite# and
> >> not at the beginning of the list as in your case.
> >>
>
> I always had this problem. I assumed it was a bug. It can be annoying
> when developing autoload functions.
>
> Doing
>     :set iskeyword&vim isident&vim
> does not help.

Check out what I replied to: it should not *help* it should make completion *no longer work* for a person who says it does work.

>
> This can be tested with any autoload plugin, such as netrw. First
> activate it with :Exp or :Sexp.
> When I do
>     :call netrw<TAB>
> I get a bunch of functions as expected, first one is netrw#ErrorMsg().
> But completion fails afer typing #. This finds nothing:
>     :call netrw#E<TAB>
>
> Currently using Vim 7.4.179, Windows.
>
> Possibly related issue on the todo list:
> If the variable "g:x#y#z" exists completion after ":echo g:x#" doesn't work.
>
> Best regards,
> Vlad
>
> --
> --
> 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