junegunn / vim-emoji

:smiley: Emoji in Vim
604 stars 30 forks source link

Complete only works when I edit my vimrc #24

Open CaptainQuirk opened 7 years ago

CaptainQuirk commented 7 years ago

Hi,

Thanks for this plugin, this is so great.

I've created a dedicated configuration file and set of plugins (Goyo, Limelight and vim-emoji) to write documentation.

Weird thing happens : when I edit my vimrc, I get emoji completion with Ctrl X + O.

However, when I try to edit any other file, I get a Pattern not found when trying to complete. What have I done wrong ?

Thanks in advance !

junegunn commented 7 years ago

Is &omnifunc (or &completefunc) correctly set? i.e. :echo &omnifunc.

CaptainQuirk commented 7 years ago

With completefunc=emoji#complete in my vimrc, I get:

:echo &completefunc
emoji#complete
:echo &omnifunc
htmlcomplete#CompleteTags

With omnifunc=emoji#complete in my vimrcr, I get:

:echo &completefunc
<nothing>
:echo &omnifunc
htmlcomplete#CompleteTags