Sublime Forum

VintageEx Keybindings and Disabling Replace

#1

I have added the following to my VintageEx configuration (Default.sublime-keymap):

[code] { “keys”: “insert”], “command”: “enter_insert_mode”,
“context”:

		{"key": "setting.command_mode"},
		{"key": "selection_empty"}
  ]
},

[/code]

This allows me to use the INSERT key to enable INSERT MODE (as this is what I’m used to within vim itself). I have tried adding different keymaps to try to access ‘REPLACE MODE’, but it seems VintageEx does not support/have REPLACE MODE.

I am not really worried about REPLACE MODE (outside the scope of this forum), but I am still interested in solving a problem I am having: I would like to disable the normal behavior of the insert key, and prevent the insert key from toggling between INSERT and REPLACE mode within Sublime Text 2. Another words, I would like to determine what the INSERT key does specifically.

I’ve noticed this line within the Global Default keymapping:

{ "keys": "insert"], "command": "toggle_overwrite" },

I believe commenting out this line will solve my issue, however, I’m reading that I should be making adjustments to my User keymapping. What should I do to override this setting within my User keymapping?

0 Likes

#2

You likely already figured this out, but hopefully this answer helps somebody else.

I just added this line to my User Key Mappings file so the insert key puts me in insert mode like i’m used to in Vim.

	{ "keys": "insert"], "command": "enter_insert_mode" }
0 Likes