Friday, April 25, 2014

Re: Completing functions with # in the name


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.
>
> chris@druida: ~ $ vim --version
> VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Mar 24 2014 19:35:25)
> Included patches: 1-214
> Compiled by Arch Linux
>
> regards
>
> Chris
>
> On 24 April 2014 19:31, skeept <skeept@gmail.com> wrote:
> > Hi all,
> >
> > is there a setting that I can use that will allow me to complete a function with # in the name?
> >
> > The current situation is as follows:
> > Suppose I want to call a function called unite#custom#alias()
> > If I type
> >
> > :call unite
> >
> > and hit <tab> multiple times then eventually matching completions will cycle until it matches the function I am looking for.
> >
> > But if I type
> >
> > :call unite#
> >
> > and hit <tab> the completions offered are in my case Agrep_Path AlternateFile, ... which would be the completions offered if I didn't had specified anything.
> >
> >
> > Thanks for any hints.
> > Jorge
> >
> > --
> > --
> > 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.
>
>
>
> --
>  _          o  ,   ,
> /   |  |  |_| / \_/ \_|  |
> \__/ \/ \/  |/ \/  \/  \/|/
>                         (|
>
> --
> --
> 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: