Adaptations to Sublime text 3. Tested on OS X and Linux.