justinj/vim-react-snippets — pull request #1 by alexanderjeurissen (2014-10-14 05:33:09+00:00)
Title: Port original snippets to UltiSnips format including some minor tweaks

# Pullrequest description

This Pullrequest implements [Ultisnips](https://github.com/SirVer/ultisnips) support by porting the original snippets to the UltiSnips format.
I also made a few minor tweaks:

- make it possible to expand some snippets midsentence. This comes in handy in the following usecase:
```

{state``` Previously state wouldnt expand to `this.state` because of the `{`
- Allow the user to skip over some parts of the `React.CreateClass` snippet by changing the `jsx dom defenition`, `requirejs` and `module.exports` parts to separate snippet tabstops that can be removed or overridden. This gives the user more flexibility in reusing the createClass snippet multiple times inside the document without introducing a new snippet.
- Add `$0` to all component functions like `render`, `componentWillMount` etc. This allows the user to skip to the end when they implemented the method and thus chain methods more easily.
- Append `this` to some snippets because it's the most common usecase. For example: `this.setState()` instead of `setState()`

# IMPORTANT: merging / implementation Notes

As to the merging strategy, I think it's best to have a separate branch at all times for the UltiSnips This allows vim-snipmate users to use the `master` branch and allows UltiSnips users to take advantage of some of the features that UltiSnips provides.

If you combine this branch with master, then UltiSnips users will have conflicting snippets because it supports snipmate aswell.

One thing to keep in mind is that we should also update the documentation to let UltiSnips users know they can just checkout the UltiSnips branch, this is possible with most Vim plugin managers.

Also all future UltiSnips functionality should be created by making a featureBranch based on the UltiSnips branch.

I suggest you create a branch on your repository called `UltiSnippets` and base it off master then close this PR, that will be a sign for me that i can rebase my featureBranch on the new UltiSnippets branch and re-create the pullrequest.