code snippets - Vim-snipMate doesn't expand insted removes the trigger -


i using snimpmate vim-snippets plugin, , fine. until tried remove vim-snippets , use custom , snippets 'ruby.snippets' on '.vim/snippets'. think snippets being loaded when fire tab or whatever trigger removes text... , leave blank space.

def hello   if |tab|  end 

results in

def hello  end 

is same problem here

you provide little information troubleshooting. here's 1 function (from snippetcompletesnipmate plugin) lets access defined snippets:

to able access snippets, snipmate must patched. open ~/.vim/plugin/snipmate.vim , insert following function @ bottom:

fun! getsnipsincurrentscope()     let snips = {}     scope in [bufnr('%')] + split(&ft, '\.') + ['_']         call extend(snips, get(s:snippets, scope, {}), 'keep')         call extend(snips, get(s:multi_snips, scope, {}), 'keep')     endfor     return snips endf 

you can check snippets defined current buffer via

:echo keys(getsnipsincurrentscope()) 

Comments

Popular posts from this blog

jQuery Mobile app not scrolling in Firefox -

c++ - How to add Crypto++ library to Qt project -

php array slice every 2th rule -