1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 20:30:05 +08:00

Fix bs in insert mode (#3089)

close #2360
This commit is contained in:
Wang Shidong 2019-09-25 20:33:45 +08:00 committed by GitHub
parent 3953214b6d
commit 906d76d11f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,8 +126,13 @@ call deoplete#custom#option('sources', {'cs': ['omnisharp']})
call deoplete#custom#source('_', 'matchers', ['matcher_full_fuzzy'])
call deoplete#custom#source('file/include', 'matchers', ['matcher_head'])
inoremap <expr><C-h> deoplete#smart_close_popup()."\<C-h>"
inoremap <expr><BS> deoplete#smart_close_popup()."\<C-h>"
if g:spacevim_autocomplete_parens && exists("g:loaded_delimitMate")
imap <expr><C-h> deoplete#smart_close_popup()."<Plug>delimitMateBS"
imap <expr><BS> deoplete#smart_close_popup()."<Plug>delimitMateBS"
else
inoremap <expr><C-h> deoplete#smart_close_popup()."\<C-h>"
inoremap <expr><BS> deoplete#smart_close_popup()."\<C-h>"
endif
set isfname-==
" vim:set et sw=2: