Shougo / neocomplete.vim

Next generation completion framework after neocomplcache
2.74k stars 203 forks source link

Conflict with `terryma/vim-multiple-cursors` #589

Closed MaiLunJiye closed 7 years ago

MaiLunJiye commented 7 years ago

Problems summary

Conflict with terryma/vim-multiple-cursors

Expected

Maybe you can pause the plugin when i m using vim-multiple-cursors

Environment Information

Provide a minimal .vimrc with less than 50 lines (Required!)

" `terryma/vim-multiple-cursors` don't need config

let g:acp_enableAtStartup = 0
let g:neocomplete#enable_at_startup = 1
let g:neocomplete#enable_smart_case = 1
let g:neocomplete#sources#syntax#min_keyword_length = 2
let g:neocomplete#sources#dictionary#dictionaries = {
    \ 'default' : '',
    \ 'vimshell' : $HOME.'/.vimshell_hist',
    \ 'scheme' : $HOME.'/.gosh_completions'
        \ }

if !exists('g:neocomplete#keyword_patterns')
    let g:neocomplete#keyword_patterns = {}
endif
let g:neocomplete#keyword_patterns['default'] = '\h\w*'
autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags
if !exists('g:neocomplete#sources#omni#input_patterns')
  let g:neocomplete#sources#omni#input_patterns = {}
endif
let g:neocomplete#sources#omni#input_patterns.c = '[^.[:digit:] *\t]\%(\.\|->\)'
let g:neocomplete#sources#omni#input_patterns.cpp = '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::'

The reproduce ways from Vim starting (Required!)

  1. Move the cursor to any word (Normal)
  2. Ctrl + n select the word
  3. c change the word
  4. input any word you want

Screen shot (if possible)

p1 p2

p3

if you cant load the picture

// i want change bool to int
// before
    virtual bool insertVertex(const DT& vertex) = 0;
    virtual bool removeEdge(int v1, int v2) = 0;
    virtual bool removeVertex(int v) = 0;

// without neocomplete
    virtual int insertVertex(const DT& vertex) = 0;
    virtual int removeEdge(int v1, int v2) = 0;
    virtual int removeVertex(int v) = 0;

// with neocomplete
    virtual in<Plug>(neocomplete_start_auto_complete) insertVertex(const DT& vertex) = 0;
    virtual in<Plug>(neocomplete_start_auto_complete) removeEdge(int v1, int v2) = 0;
    virtual in<Plug>(neocomplete_start_auto_complete) removeVertex(int v) = 0;

Upload the log messages by :redir and :message

None

Shougo commented 7 years ago

https://github.com/terryma/vim-multiple-cursors/issues/51#issuecomment-32344711