Snippets collection for a set of different programming languages for faster development.
The only goal is to have one community driven repository for all kinds of snippets in all programming languages, this way you can have it all in one place.
First make sure that the snippets don't already exist, so we don't have duplicates.
This collection of snippets should work with any plugin that supports loading vscode snippets. Like for example:
There's extra snippets included in this repo but they are not added default,
since it would be irrelevant for people not using those frameworks. See
For example: if you want to add rails snippets to ruby.
This method is going to work globally on all open buffers with
Alternatively you can do
set filetype=ruby.rails so it only works on a
specific buffer, but this is going to mess up with syntax highlighting.
let g:vsnip_filetypes.rails = ['ruby']
For more info related to this change see #88
Use your plugin manager of choice, e.g.
-- Packer use "rafamadriz/friendly-snippets" -- Plug Plug 'rafamadriz/friendly-snippets' -- If you're using coc.nvim, you can use: CocInstall https://github.com/rafamadriz/friendly-snippets@main
A good portion of the snippets have been forked from the following repositories: