1. Takeshi NISHIDA
  2. vim-autocomplpop
Issue #5 resolved

autocomplete give unsuitable words

Anonymous created an issue

e.g.: Here are two words in file: right ricky

If i want to type a new word risk, autocomplpop will change the word under cursor automaticlly, the result is wrong: rickysk

I have to move cursor back to change the wrong completed word. How to close complete directly under cursor and just give user a list to chose.

The previous version didn't have this probelm.

Thanks!

Comments (10)

  1. Anonymous

    I also have this problem. but It was a bit hard to reproduce the bug. $ cat test.cpp

    using aaaaspx aaaaspx public: void aaaasp(); void aaaaspx(); void aaaaspxy(); void aaaaspxyz(); private: }; aaaasp

    then if you insert aaaasp, it'll expand to aaaaspx automaticly

    my acp configurations: let g:acp_enableAtStartup = 1 let g:acp_mappingDriven = 1 let g:acp_completeoptPreview = 1 let g:acp_completeOption = '.,w,b,t,i,k' let g:acp_behaviorKeywordLength = 5 let g:acp_behaviorKeywordCommand = "\<C-n>"

  2. Anonymous
    I also have this problem. but It was a bit hard to reproduce the bug.
    
    $ cat test.cpp
    using aaaaspx
    aaaaspx
    public:
    	void aaaasp();
    	void aaaaspx();
    	void aaaaspxy();
    	void aaaaspxyz();
    private:
    };
    aaaasp
    
    then if you insert aaaasp, it'll expand to aaaaspx automaticly
    
    my acp configurations: 
    let g:acp_enableAtStartup = 1
    let g:acp_mappingDriven = 1
    let g:acp_completeoptPreview = 1
    let g:acp_completeOption = '.,w,b,t,i,k'
    let g:acp_behaviorKeywordLength = 5
    

    post again, sorry for the wrong content format

  3. Anonymous

    those information may be helpful

    :imap s i s' *s' i s * s<C-R>=<SNR>25_feedPopup()<CR>

    :imap n i n't *Ned Jackson Lovely't i n * n<C-R>=<SNR>25_feedPopup()<CR>

    words like xxxxs..., xxxxn... doesn't work

  4. Anonymous

    those information may be helpful

    :imap s

    i s' *s'

    i s * s<C-R>=<SNR>25_feedPopup()<CR>

    :imap n

    i n't *Ned Jackson Lovely't

    i n * n<C-R>=<SNR>25_feedPopup()<CR>

    words like xxxxs..., xxxxn... doesn't work

  5. Log in to comment