Skip to content

How do I get this plugin to not conflict with the inbuilt phpcomplete? #112

@Roy-Orbison

Description

@Roy-Orbison

I have this in my vimrc, and no matter what order I put the two aus in, PHP syntax completion always seems to be overridden by the the default version in /usr/share/vim/....

if exists("+omnifunc")
    autocmd Filetype php
        \   setlocal omnifunc=phpcomplete#CompletePHP
    autocmd Filetype *
        \   if &omnifunc == "" |
        \       setlocal omnifunc=syntaxcomplete#Complete |
        \   endif
endif

The only thing that seems to allow your plugin to work is to comment out the default omnicomplete.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions