5. `<ctrl-j>` to move to inputs of the `__init__` function (typing a new input name automatically adds `self._varname = varname`)
5. `<ctrl-j>` to move to inputs of the `__init__` function (typing a new input name automatically adds `self._varname = varname`)
### Adding/Editing Custom Snippets
You can edit the snippets for the current filetype that's open by using `:UltiSnipsEdit`
**Important Note**: If using chezmoi, make sure to copy the snippet to the chezmoi repo so it isn't overwritten during next `chezmoi apply`
### Common Snippet Examples
### Common Snippet Examples
These are taken from [this article](https://bhupesh-v.github.io/learn-how-to-use-code-snippets-vim-cowboy/).
These are taken from [this article](https://bhupesh-v.github.io/learn-how-to-use-code-snippets-vim-cowboy/).
#### Go Snippets
#### Go Snippets
[All Go snippets](https://github.com/honza/vim-snippets/blob/master/snippets/go.snippets). Also, see Ultisnips specific [snippets](https://github.com/honza/vim-snippets/blob/master/UltiSnips/go.snippets)
[All Go snippets](https://github.com/honza/vim-snippets/blob/master/snippets/go.snippets). Also, see Ultisnips specific [snippets](https://github.com/honza/vim-snippets/blob/master/UltiSnips/go.snippets)
@ -188,6 +197,7 @@ These are taken from [this article](https://bhupesh-v.github.io/learn-how-to-use
| `if` | Python basic if statement |
| `if` | Python basic if statement |
| `el` | Python basic else statement |
| `el` | Python basic else statement |
| `for` | Range based for loop |
| `for` | Range based for loop |
| `forkey` | Enumerate using key value of an interable (**Custom**) |