garbas/vim-snipmate

Tab deletes the trigger word

ImCruel opened this issue · 2 comments

Dear community,
I am experiencing very strange behaviour from snipmate.

When I am using an existing snip library (like the default snips), the auto completion works just fine.
This is also the case when I manually change the content of the definition.

If, however, I write a new snippet from the ground up, pressing the TAB key simply removes the trigger word. Even when my new definition is in the same file as working ones, the TAB key doesn't complete it. This happens even with very simple triggers, e.g.

snippet test
This is a test

The only file in my ~/.vim/snippets folder is the _.snippets file.
I would be happy for every piece of advice, since I have tried to figure this out on my own for the past 3 days.

@ImCruel Is there a hard tab in your snippet before This? SnipMate currently requires hard tabs to accurately delineate what is and is not a part of the snippet.

Closing due to inactivity. Please reopen if you're still having issues.