2013-02-02 3 views
3

OSX를 사용 중입니다. 빈티지 모드가 활성화되어 있습니다 (상태 표시 줄에 INSERT MODE가 표시됨). 그러나 COMMAND 모드로 들어갈 수는 없습니다. 어떻게해야합니까? 일부 자습서에서 보았 듯이 이스케이프 키가 작동하지 않습니다. 감사! 다음숭고한 텍스트에 빈티지 명령 모드를 입력하는 방법

Vintage starts in insert mode by default. This can be changed by adding: 

"vintage_start_in_command_mode": true 

to your User Settings. 

와 - - documentation에서

답변

10

if you'd like to bind "jj" to exit insert mode, you can add this key binding: 

{ "keys": ["j", "j"], "command": "exit_insert_mode", 
    "context": 
    [ 
     { "key": "setting.command_mode", "operand": false }, 
     { "key": "setting.is_widget", "operand": false } 
    ] 
} 
1

나는 그것이 또한 비주얼 모드를 종료 이후 다음 Preferences -> Key Bindings - User에서 편리 찾을 수 있습니다. 비주얼 모드에서 당신은 j와 k를 사용하여 움직이기를 원할 것이기 때문에 대문자 J와 K를 주목하십시오.

{ "keys": ["J", "K"], "command": "exit_insert_mode", 
    "context": 
    [ 
     { "key": "setting.command_mode", "operand": false }, 
     { "key": "setting.is_widget", "operand": false }, 
     { "key": "setting.vintage_ctrl_keys" } 
    ] 
    }, 
    { "keys": ["J", "K"], "command": "exit_visual_mode", 
     "context": 
     [ 
      { "key": "setting.command_mode"}, 
      { "key": "num_selections", "operand": 1}, 
      { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": false }, 
      { "key": "setting.vintage_ctrl_keys" } 
     ] 
    }, 
관련 문제