Giter VIP home page Giter VIP logo

Comments (8)

Shougo avatar Shougo commented on June 26, 2024

I edited wiki page. Please check this.
http://wiki.github.com/Shougo/neocomplcache/neocomplcache-tips

  1. switch between options with <Tab>
  2. choose option using <CR>
    What kind of meaning is it?

from neocomplcache.vim.

bybor avatar bybor commented on June 26, 2024

by 'options' i mean alternative available variants in popup. So you hit 'tab' and popup appears. if you hit 'tab' when popup is open next line is active. if you hit 'enter' the current variant is completed, popup is closed.
thanks

from neocomplcache.vim.

Shougo avatar Shougo commented on June 26, 2024

Please use this setting.

inoremap pumvisible() ? “” : check_back_space() ? “” : “”
inoremap neocomplcache#smart_close_popup() . “”

from neocomplcache.vim.

bybor avatar bybor commented on June 26, 2024

Have put all your tips to my .vimrc, using version from head.
doesn't work as expected.
closes popup, but ignores selected variant - it substitues the text that you typed before you pressed 'Tab'
If there is nothing to complete - if you type 'aaabbb' and hit the cursor is moved to next line.

from neocomplcache.vim.

Shougo avatar Shougo commented on June 26, 2024

I do not understand it well. Please explain it in detail.
Probably you want to complete it like a shell.

from neocomplcache.vim.

bybor avatar bybor commented on June 26, 2024

Yes, it works good. Thank you very much for your time and effort.
I've found that this mapping

inoremap  neocomplcache#smart_close_popup() . “\”

causes problems in my case.

The only issue i see now, but it's not connected with this setup probably.
if you type some rubbish - that is not in your file and it can't be completed, for example you type 'asdfkjasfljakajdf' and hit after it, popup shows the list of all words in file, may be because of #complete_common_string(). If next thing you do is select one of them and press 'Enter' then selected variant is appended to what you typed, but doesn't replace it.
But it's not a big deal.
Thanks once again. I would never be able to tune it this way.

from neocomplcache.vim.

Shougo avatar Shougo commented on June 26, 2024

Please update neocomplcache and set this settings.

inoremap <expr><TAB> pumvisible() ? "\<Down>" : <SID>check_back_space() ?  "\<TAB>" : "\<C-x>\<C-u>\<C-p>\<Down>"
inoremap <expr><CR> neocomplcache#smart_close_popup() . “\<CR>”
let g:neocomplcache_enable_auto_select = 1
let g:neocomplcache_disable_auto_complete = 1
setlocal completeopt+=longest

from neocomplcache.vim.

bybor avatar bybor commented on June 26, 2024

I like prev variant with common string. Thank you. It does everything i'd want.
Need to test it a little bit

from neocomplcache.vim.

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.