As a windows user my .snippets-files are located at $HOME\vimfiles\Ultisnips.
I created some snippets to use in .txt-files and stored them in a file named txt.snippets.
When i created a new .txt-file they weren't available. So for testing if they worked at all I renamed the file to all.snippets, as this file didn't exist before, and they suddenly worked as intended.
Is there another way to make .txt-snippets work besides adding them to all.snippets?
txt.snippets-file not loaded
148 Views Asked by GscheadaHamme At
1
The
fooinfoo.snippetsdoesn't refer to the.fooextension, but to thefoofiletype, that Vim may or may not derive from the.fooextension.In this case, Vim assigns the
textfiletype to files with the.txtextension so your snippets, which depend on thetxtfiletype, are not active.Renaming your snippet file to
text.snippetsshould solve your problem.