Adding Vim Snippets - mattjmorrison/dotfiles GitHub Wiki

Adding Vim Snippets

The dotfiles are already set up to allow adding your own snippets. Here is an example of adding an example python snippet.

Inside the custom-configs directory create a custom-snips directory and a file named python.snippets

~/dotfiles/custom-snips/python.snippets

snippet fun "Create Dummy Python Function" b
def example():
    print("This is an example")
endsnippet 

Refer to the Ultisnips documentation for snippet file syntax.