1.preferences->settings-user Add the following:
"Ignored_packages": [],
"Vintage_start_in_command_mode": true, //When opening a file for command mode
"Vintage_ctrl_keys": True //Replace Windows with Vim's CTRL shortcut key
The simple operation of Vim can be modified and the 2nd step is required to use VIM's command mode.
2. Install Vintageex
Download the right side of the page after decompression, put the Packages directory preferences (%%\appdata\roaming\sublime Text 2\packages), can also be Preferences->browse Packages ... Open the directory.
A simple command of vim can be used once the reboot is restarted.
3. Custom shortcut keys
Map the ESC key to a different key and modify the Vintage/default.sublime-keymap file in the packages directory above to add content:
{"Keys": ["Shift+space"], "command": "Exit_insert_mode",
"context":
[
{key]: "Setting.command_mode", " Operand ": false},
{" key ":" Setting.is_widget "," operand ": false}
]
},
{" Keys ": [" Shift+space "]," Command ":" Hide_auto_complete "," context ":
[
{" Key ":" Auto_complete_visible "," operator ":" Equal "," operand " : true}
]
},
{"Keys": ["Shift+space"], "command": "Vi_cancel_current_action", "context":
[
{"Key": "Setting.command_mode"},
{"Key": "Selection_empty", "operator": "Equal", "operand": true, "Match_all": false},
{"key": "Vi_has_input_state " }
]
}
The shift+space is mapped to ESC.