Advertisement
Guest User

Untitled

a guest
Oct 15th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.25 KB | None | 0 0
  1. function! <SID>SpaceExpand() abort
  2.     if <SID>IsCommentOrString(line('.'), col('.')) && neosnippet#expandable()
  3.         return neosnippet#mappings#expand_impl()
  4.     endif
  5.     return "\<Space>"
  6. endfunction
  7.  
  8. imap <silent><expr><Space> <SID>SpaceExpand()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement