GithubHelp home page GithubHelp logo

Comments (2)

ervandew avatar ervandew commented on August 26, 2024

There are a couple of issues here:

  1. Both the supertab mapping and your neocomplcache mapping are attempting to do the same thing, insert the highlighted completion and exit completion mode. Since the neocomplcache version is clearing some internal variables I'd suggest turning off supertab's version and using the neocomplcache version.
  2. You're attempting to tack on a trailing to an expression mapping which is what is causing other plugins which have mapped and who support attempting to chain those mappings (supertab and endwise are the only two I can think of that do this) to attempt to tack the expression mapping rhs onto their mapping. The problem is that not until the past few months did vim start exposing this info regarding a mapping, so supertab and endwise are not built to handle expression mappings. You can work around this issue by turning that expression mapping into a regular mapping as shown below.

Note: I did write the following function to be somewhat compatible with supertab, but since supertab puts itself at the head of the mapping when chaining, I don't think neocomplcache#close_popup would actually ever be called. But this function/mapping do play nice with endwise.

function s:Wrap()
  if pumvisible()
    return neocomplcache#close_popup()
  endif
  return exists('b:supertab_pumwasvisible') ? '' : "\<cr>"
endfunction
imap <cr> <c-r>=<SID>Wrap()<cr>

from supertab.

zhuangya avatar zhuangya commented on August 26, 2024

please read: Shougo/neocomplcache.vim#88 (comment)

from supertab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.