Hi,

On Sun, Oct 24, 2021 at 10:52 AM Magnus Groß <[email protected]>
wrote:

> Could you make it into a separate plugin, so we have issue tracker, pull
> requests, etc., please?
>
> I am not sure if this little snippet is worth it to create an extra repo
> for it. But I do see that in f4d8b76
> <https://github.com/vim/vim/commit/f4d8b76d304dabc39c06d2344cd4c7b28484811b>
> this snippet was added to the official vim help, so maybe Bram could update
> it there.
> The diff would be (it also includes a small optimization):
>
> diff --git a/runtime/doc/insert.txt b/runtime/doc/insert.txt
> index 7d218930d..7941ec5a1 100644--- a/runtime/doc/insert.txt+++ 
> b/runtime/doc/insert.txt@@ -884,18 +884,18 @@ Groß): >
>               let h = ''
>               for l in split(system('aiksaurus '.shellescape(a:base)), '\n')
>                   if l[:3] == '=== '-                 let h = 
> substitute(l[4:], ' =*$', '', '')-                  elseif l[0] =~ '\a'-      
>                   call extend(res, map(split(l, ', '), {_, val -> {'word': 
> val, 'menu': '('.h.')'}}))+                    let h = '('.substitute(l[4:], 
> ' =*$', ')', '')+             elseif l ==# 'Alphabetically similar known 
> words are: '+                    let h = '🔮'
>
>
As some terminals may not be able to display the crystal ball character, it
might be better to use

          let h = "\U0001f52e"

The below if condition can also be updated to use this.

Regards,
Yegappan

+                   elseif l[0] =~ '\a' || (h ==# '🔮' && l[0] ==# "\t")+        
        
call extend(res, map(split(substitute(l, '^\t', '', ''), ', '), {_,
val -> {'word': val, 'menu': h}}))
>                   endif
>               endfor
>               return res
>           endif
>       endfunc
> -     if exists('+thesaurusfunc')-        set thesaurusfunc=Thesaur-  
> endif+set thesaurusfunc=Thesaur
>
>  Completing keywords in the current and included files        *compl-keyword*
>
>

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAAW7x7muCcXrXA3S3JkCf60XDCoYZM3z8WoJ8HSH%2BAySjNSLiQ%40mail.gmail.com.

Raspunde prin e-mail lui