mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 12:50:04 +08:00
Fix multiple cursor
This commit is contained in:
parent
24fce8f3d5
commit
ed142f7530
@ -8,7 +8,7 @@ function! SpaceVim#layers#edit#plugins() abort
|
||||
\ ['tpope/vim-surround'],
|
||||
\ ['tpope/vim-repeat'],
|
||||
\ ['junegunn/vim-emoji'],
|
||||
\ ['terryma/vim-multiple-cursors'],
|
||||
\ ['terryma/vim-multiple-cursors', { 'loadconf' : 1}],
|
||||
\ ['terryma/vim-expand-region', { 'loadconf' : 1}],
|
||||
\ ['kana/vim-textobj-user'],
|
||||
\ ['kana/vim-textobj-indent'],
|
||||
|
@ -68,14 +68,3 @@ 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()
|
||||
|
||||
" Called once right before you start selecting multiple cursors
|
||||
function! Multiple_cursors_before()
|
||||
NeoCompleteLock
|
||||
endfunction
|
||||
|
||||
" Called once only when the multiple selection is canceled (default <Esc>)
|
||||
function! Multiple_cursors_after()
|
||||
NeoCompleteUnlock
|
||||
endfunction
|
||||
" vim:set et sw=2 cc=80:
|
||||
|
39
config/plugins/vim-multiple-cursors.vim
Normal file
39
config/plugins/vim-multiple-cursors.vim
Normal file
@ -0,0 +1,39 @@
|
||||
if g:spacevim_autocomplete_method ==# 'ycm'
|
||||
function! s:disable_autocomplete() abort
|
||||
|
||||
endfunction
|
||||
function! s:enable_autocomplete() abort
|
||||
|
||||
endfunction
|
||||
elseif g:spacevim_autocomplete_method ==# 'neocomplete'
|
||||
function! s:disable_autocomplete() abort
|
||||
NeoCompleteLock
|
||||
endfunction
|
||||
function! s:enable_autocomplete() abort
|
||||
NeoCompleteUnlock
|
||||
endfunction
|
||||
elseif g:spacevim_autocomplete_method ==# 'neocomplcache' "{{{
|
||||
function! s:disable_autocomplete() abort
|
||||
|
||||
endfunction
|
||||
function! s:enable_autocomplete() abort
|
||||
|
||||
endfunction
|
||||
elseif g:spacevim_autocomplete_method ==# 'deoplete'
|
||||
function! s:disable_autocomplete() abort
|
||||
call deoplete#disable()
|
||||
endfunction
|
||||
function! s:enable_autocomplete() abort
|
||||
call deoplete#enable()
|
||||
endfunction
|
||||
endif
|
||||
" Called once right before you start selecting multiple cursors
|
||||
function! Multiple_cursors_before()
|
||||
call s:disable_autocomplete()
|
||||
endfunction
|
||||
|
||||
" Called once only when the multiple selection is canceled (default <Esc>)
|
||||
function! Multiple_cursors_after()
|
||||
call s:enable_autocomplete()
|
||||
endfunction
|
||||
" vim:set et sw=2 cc=80:
|
Loading…
Reference in New Issue
Block a user