Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function! <SID>SpaceExpand() abort
- if <SID>IsCommentOrString(line('.'), col('.')) && neosnippet#expandable()
- return neosnippet#mappings#expand_impl()
- endif
- return "\<Space>"
- endfunction
- imap <silent><expr><Space> <SID>SpaceExpand()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement