Skip to content

Closes the completion menu and exits insert mode when escape is pressed in Sublime Text vintage vim mode.

Notifications You must be signed in to change notification settings

tonymagro/VintageEscape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sublime Text plugin that makes vintage mode close the completion menu and enter normal mode when escape is pressed.

Default key bindings:

{ "keys": ["escape"], "command": "exit_auto_complete_and_insert_mode", "context":
	[
		{ "key": "auto_complete_visible", "operator": "equal", "operand": true }
	]
},

{ "keys": ["ctrl+["], "command": "exit_auto_complete_and_insert_mode", "context":
	[
		{ "key": "auto_complete_visible", "operator": "equal", "operand": true }
	]
},

The entire plugin consists of:

import sublime_plugin
class ExitAutoCompleteAndInsertMode(sublime_plugin.TextCommand):
	def run(self, edit):
		self.view.run_command("hide_auto_complete")
		self.view.run_command("exit_insert_mode")

About

Closes the completion menu and exits insert mode when escape is pressed in Sublime Text vintage vim mode.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages