set rtp+=~/.cache/vimfiles/repos/github.com/Shougo/neosnippet.vim
set rtp+=~/.cache/vimfiles/repos/github.com/Shougo/neosnippet-snippets
set rtp+=~/.cache/vimfiles/repos/github.com/Shougo/deoplete.nvim
set rtp+=~/.cache/vimfiles/repos/github.com/tweekmonster/deoplete-clang2
let g:deoplete#enable_at_startup = get(g:, 'deoplete#enable_at_startup', 1)
imap <expr><Tab>
\ neosnippet#expandable_or_jumpable() ?
\ "\<Plug>(neosnippet_expand_or_jump)" : "\<Tab>"
reproduce step:
open vim via vim -u test.vim
:e test.c
type i to insert mode, then type into main<tab>
you will see
main<Plug>(neosnippet_expand_or_jump)
but I think it should be
int main(int argc, char const* argv[])
{
return 0;
}
mini vimrc
reproduce step:
main<tab>
you will see
but I think it should be
ref : https://github.com/SpaceVim/SpaceVim/issues/356