Skip to content

Adding Vim Snippets

Jarrod edited this page Mar 1, 2016 · 2 revisions

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.

Clone this wiki locally