Skip to content

Support for non-English (non-Lating) keyboard input sources #950

Answered by lippfi
thezvff asked this question in Q&A
Discussion options

You must be logged in to vote

I can see two ways, actually:

  1. The good old map й q
    It is possible to write a small script to do all the necessary mappings according to your layout. Here is the code:
let russianLayout = 'йцукенгшщзхъфывапролджэячсмитьбю.'
let colemakDHLayout = 'qwfpbjluy;[]arstgmneio'xcdvzkh,./'
let i = 0
while i < len(russianLayout)
    let fromKey = russianLayout[i]
    let toKey = colemakDHLayout[i]
    execute 'map ' . fromKey . ' ' . toKey
    let i += 1
endwhile
  1. There is https://plugins.jetbrains.com/plugin/9615-ideavimextension

P.S. The script I wrote should work, but you should be cautious when writing your own scripts—as not all Vim Script language functions are supported in IdeaVim

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lippfi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants