What does this do?
This plugin adds a list of so-called snippets to vim.
A snippet is a specific string of text that you can expand to something more elaborate by hitting the
For example, typing
np followed by
<tab> will insert the
But that’s not all. Repeatedly hitting
<tab> will move your cursor to the different arguments for the method.
In other words, you can tab through the relevant parts of the code. Futhermore, the plugin will also suggest what needs to go in as an argument, which means it takes the guesswork out of the core API.
We’ve also updated our cheatsheet
We have updated our cheatsheet for pattern designers to also include the snippet codes.
But I don’t use vim
If you use a different editor whith snippet support, feel free to get in touch and we’ll look into porting this functionality to the editor of your choice.
Or, you can do it yourself, the source code is right here.