For the popularity that Sublime Text gets, it seems that their plugin documentation has been left by the wayside
Their Plugin Examples page is out of date showing an example for SublimeText 1. I found that out when creating the plugin only to see the following error message in the Sublime Text console (Ctrl+~ in Windows)
ImportError: No module named sublimeplugin
There seems to be a change from camelCase to snake_case for functions thus all the instructions on the plugin page are incorrect.
Links API References: choose appropriate link for Sublime Text version
- https://www.sublimetext.com/docs/api-reference (for Sublime Text 1 I presume)
- https://www.sublimetext.com/docs/2/api_reference.html (for Sublime Text 2)
- https://www.sublimetext.com/docs/3/api_reference.html (for Sublime Text 3)