garbas / vim-snipmate

snipMate.vim aims to be a concise vim script that implements some of TextMate's snippets features in Vim.
www.vim.org/scripts/script.php?script_id=2540
2.01k stars 181 forks source link

How do I write a snippet file which applies for all filetypes? #288

Closed justrajdeep closed 2 years ago

justrajdeep commented 2 years ago

Hi

I understand that we can create snippet files with <filetype>.snippet syntax. But how do I write a snippet that apples to all file types?

Thanks in advance :)

ajzafar commented 2 years ago

@justrajdeep Any snippets in the _ scope will be loaded for all filetypes. For example, snippets placed in a file named _.snippets.

Apparently this is not documented anywhere, so I'll add that. Thanks for pointing that out indirectly!

justrajdeep commented 2 years ago

Thanks