let g:deoplete#enable_at_startup = 1 if !exists('g:deoplete#omni#input_patterns') let g:deoplete#omni#input_patterns = {} endif " , : close popup and delete backword char. inoremap deoplete#smart_close_popup()."\" inoremap deoplete#smart_close_popup()."\" " : close popup and save indent. inoremap =my_cr_function() function! s:my_cr_function() abort return deoplete#close_popup() . "\" endfunction inoremap \ pumvisible() ? "\" : \ check_back_space() ? "\" : \ "\" function! s:check_back_space() let col = col('.') - 1 return !col || getline('.')[col - 1] =~ '\s' endfunction