Git Product home page Git Product logo

Comments (15)

lookforit avatar lookforit commented on August 21, 2024

didn't have any chance to select by hand?

from neocomplete.vim.

UncleBill avatar UncleBill commented on August 21, 2024

Yes, that's what I meant

from neocomplete.vim.

Shougo avatar Shougo commented on August 21, 2024

I can't get it.
You must show the screenshot to me.

And neosnippet and neocomplete are latest revision?

from neocomplete.vim.

UncleBill avatar UncleBill commented on August 21, 2024

And neosnippet and neocomplete are latest revision?

yes, they are

It works like vim's abbreviate behaviour:

you add an abbreviate

:abbr dd date_day

and type dd<space>, it expands date_day

in case of neocomplete:

you type dd and get date_day immediately.

from neocomplete.vim.

Shougo avatar Shougo commented on August 21, 2024

OK. You must show minimal .vimrc(nothing other plugins). I will test it.

from neocomplete.vim.

UncleBill avatar UncleBill commented on August 21, 2024

I recorded a gif
Imgur

from neocomplete.vim.

osyo-manga avatar osyo-manga commented on August 21, 2024

I'm sorry, I was misunderstood.

from neocomplete.vim.

Shougo avatar Shougo commented on August 21, 2024

@osyo-manga:

It is Vim's feature. Not the issue.

@UncleBill

OK. I get it.
But you must show minimal .vimrc to me.
I cannot reproduce it.

from neocomplete.vim.

UncleBill avatar UncleBill commented on August 21, 2024

@Shougo ok, I will give it to you later

from neocomplete.vim.

UncleBill avatar UncleBill commented on August 21, 2024

I minus it:

if !exists('g:neocomplete#sources#omni#input_patterns')
  let g:neocomplete#sources#omni#input_patterns = {}
endif
let g:neocomplete#sources#omni#input_patterns.php = '[^. \t]->\h\w*\|\h\w*::'
let g:neocomplete#sources#omni#input_patterns.c = '[^.[:digit:] *\t]\%(\.\|->\)'
let g:neocomplete#sources#omni#input_patterns.cpp = '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::'
let g:acp_enableAtStartup = 0
" Use neocomplete.
let g:neocomplete#enable_at_startup = 1
" Use smartcase.
let g:neocomplete#enable_smart_case = 1
" Set minimum syntax keyword length.
let g:neocomplete#sources#syntax#min_keyword_length = 3
let g:neocomplete#lock_buffer_name_pattern = '\*ku\*'
" Neocomplete.vim Plugin key-mappings.
inoremap <expr><C-g>     neocomplete#undo_completion()
inoremap <expr><C-l>     neocomplete#complete_common_string()

" Recommended key-mappings.
" <CR>: close popup and save indent.
inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR>
function! s:my_cr_function()
  return neocomplete#smart_close_popup() . "\<CR>"
  " For no inserting <CR> key.
  "return pumvisible() ? neocomplete#close_popup() : "\<CR>"
endfunction
" <TAB>: completion.
inoremap <expr><TAB>  pumvisible() ? "\<C-n>" : "\<TAB>"
" <C-h>, <BS>: close popup and delete backword char.
inoremap <expr><C-h> neocomplete#smart_close_popup()."\<C-h>"
inoremap <expr><BS> neocomplete#smart_close_popup()."\<C-h>"
inoremap <expr><C-y>  neocomplete#close_popup()
inoremap <expr><C-e>  neocomplete#cancel_popup()

from neocomplete.vim.

Shougo avatar Shougo commented on August 21, 2024

No. You must show full .vimrc. I cannot try it!

from neocomplete.vim.

UncleBill avatar UncleBill commented on August 21, 2024

please check out this file
https://github.com/UncleBill/config-files/blob/clean/myvimrc.vim

from neocomplete.vim.

UncleBill avatar UncleBill commented on August 21, 2024

It's a clean version of my config files
typed dd won't be expanded date_day the first time
but it will happen again after that

from neocomplete.vim.

Shougo avatar Shougo commented on August 21, 2024

I fixed it. Please update neocomplete.vim.

from neocomplete.vim.

UncleBill avatar UncleBill commented on August 21, 2024

It OK 👍

from neocomplete.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.