Replies: 10 comments 5 replies
-
You should configure
English, because not only Russian use |
Beta Was this translation helpful? Give feedback.
-
Yeah, I only managed to map vim.opt.langmap:append(vim.fn.join({"ёЁ;`~"}, ",")) But I don't know what to do with the points 2. and 3. since langmap from one special character to another special character is logically wrong. Also, how do you deal with not having And in case none of that is possible, would you recommend using something like |
Beta Was this translation helpful? Give feedback.
-
This is solved by adding the necessary character mappings to
I'm not sure what you're trying to achieve. The
I have never used this plugin and can't recommend it. If it solves your problems, try it |
Beta Was this translation helpful? Give feedback.
-
Almost works default_layout = [[ABCDEFGHIJKLMNOPQRSTUVWXYZ<>?:"{}~@#$^&abcdefghijklmnopqrstuvwxyz,./;'[]`]],
layouts = {
ru = {
id = "ru",
layout = [[ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯБЮ,ЖЭХЪË"№;:?фисвуапршолдьтщзйкыегмцчнябю.жэхъё]],
},
},
os = {
Linux = {
get_current_layout_id = function()
local cmd = "xkb-switch"
if vim.fn.executable(cmd) then
local output = vim.split(vim.trim(vim.fn.system(cmd)), "\n")
return output[#output]
end
end,
},
}, But now while using the russian layout I have overriden the same keys as the english P.S. And I guess the step 3 isn't something that I necessarily need. I can just alter my |
Beta Was this translation helpful? Give feedback.
-
Is this a bug, or I am doing something wrong? If it is, should I make a bug report? |
Beta Was this translation helpful? Give feedback.
-
If I understand you correctly, you are describing the expected behaviour, because when you are in the Russian layout and press |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Well, I can do this: default_layout = [[/?@#$^&]],
layouts = {
ru = {
id = "ru",
layout = [[.,"№;:?]],
},
}, The special characters now work, but any Ctrl keybinds don't |
Beta Was this translation helpful? Give feedback.
-
So, it seems like (at least on my system) if I remove the last require("langmapper").automapping({ global = true, buffer = true }) Then this functionality works as intended. P.S. This is a personal log at this point, I don't want to waste others time, so no problem if you don't respond |
Beta Was this translation helpful? Give feedback.
-
Now (without the automapping) having: default_layout = [[@#$^&ABCDEFGHIJKLMNOPQRSTUVWXYZ<>:"{}~?abcdefghijklmnopqrstuvwxyz,.;'[]`/]],
layouts.ru.layout = [["№;:?ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯБЮЖЭХЪË,фисвуапршолдьтщзйкыегмцчнябюжэхъё.]], I can access symbols from the russian layout, but it works only in the normal mode. In the visual mode, for example |
Beta Was this translation helpful? Give feedback.
-
When I'm using russian, most special characters are shifted or don't exist. Thus I want to achieve the next thing:
While using russian keyboard layout in non-insert mode:
ёЁ
to`~
so I can use marks and uppercase action."№;%:?
to@#$%^&
so that I have access to^$%
horizontal motions,@
macros, etc.бю.жэхъ
andБЮ,ЖЭХЪ
to,./;'[]
and<>?:"{}
, so that I have access tof
finding special characters at the expense of not being able to find those 6 russian letters.Can I achieve that, and how?
P.S. Not sure if this discussion should be in Russian or English
Beta Was this translation helpful? Give feedback.
All reactions