I use snipMate in Vim, and try to use certain snippets in any type of file. But I could only find ways of relating snippets to specific filetypes. Is there a way to set 'global' snippets?
A snippet is a piece of often-typed text that you can insert into your document using a trigger word followed by a <tab>. For instance, in a C file using the default installation of snipMate.vim, if you type "for<tab>" in insert mode, it will expand a typical for loop in C: for (i = 0; i < count; i++) {
Define a _.snippets file in your snippets directory and puts there your global snippets
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With