D
D
Denis2014-10-22 19:20:14
Sublime Text
Denis, 2014-10-22 19:20:14

Sublime Text Vintage Mode - how to set up on the Russian layout?

I would really like the vintage mode hotkeys to work with the selected Russian layout. It really kills when you get distracted to write a message to someone, and when you go back to the editor you spend time realizing the problem, what's what.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
cyberXndr, 2015-10-10
@cyberXndr

https://github.com/cyberxndr/sublime-vintage-cyrillic

D
Dmitry Surin, 2014-10-23
@BedwaRe

VIM does not work with Cyrillic hotkeys out of the box, even on Linux. So, this behavior in Sublime was not unexpected for me. I must say right away that I did not find a ready-made solution. You will have to do everything yourself with pens (or maybe share it later). It is necessary to supplement the User Keymap with hotkeys for the Russian language. If this is critical for you and it is really worth it, then read on...
For example, try adding the following code to your User Keymap:

[
    { "keys": ["ш"], "command": "enter_insert_mode",
      "context":
      [
            {"key": "setting.command_mode"},
            {"key": "selection_empty"}
      ]
    }
]

This way you will be able to enter INSERT MODE on both layouts. This is an example of just one command, but there are many more =) You can see them here:
Sublime Text 3\Packages\Vintage.sublime-package\Default.sublime-
keymap Vintage's keymap file is about 1000 lines long.
PS If you have any questions - write in the comment.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question