Skip to content

Instantly share code, notes, and snippets.

@andersonfreitas
Created October 2, 2012 12:12
Show Gist options
  • Save andersonfreitas/3818550 to your computer and use it in GitHub Desktop.
Save andersonfreitas/3818550 to your computer and use it in GitHub Desktop.
import sublime, sublime_plugin
class ReturnToVintageCommandModeListener(sublime_plugin.EventListener):
def on_activated(self, view):
if view.settings().get("is_widget") is None:
view.run_command('exit_insert_mode')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment