Friday, November 22, 2013

Re: Completion support for known language tokens


On Nov 22, 2013 9:40 PM, "Gabriele Lana" <gabriele.lana@gmail.com> wrote:
>
> Hi all,
>
>  I'm developing a plugin (https://github.com/gabrielelana/vim-markdown) to support, as much as I can, the github flavoured markdown
>
> Next step (easy) is to highlight all the supported emoticons
>
> The problem is that there are tons of emoticons supported (http://www.emoji-cheat-sheet.com/) it would be nice to give my users some kind of help on that
>
> I thought to at least add some form of completion, and here is the question: What is appropriate thing to do in this case? Have a dictionary and complete on that? Use the omnifunc? Something else?

Dictionary will require tweaking 'isk' to include colon, will not it? I would be against it as this makes vim and my notion of what the "word" is be different.

>
> The main concern about the omnifunc is that it cannot be used with CTRL-N and CTRL-P

It can. :imap decides. There are also plugins which automatically choose completion method based on the input already present before the cursor and ones that start completion menu automatically once specific key (e.g. colon) is typed.

> Thanks for your help!
>
> --
> Gabriele Lana
> contact me at gabrielelana at cleancode dot it
> http://www.cleancode.it - what we do and what we believe in
> http://www.gabrielelana.it - agile methodologies and programming
>
> --
> --
> 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/groups/opt_out.

--
--
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/groups/opt_out.

No comments: