vim-longlines icon indicating copy to clipboard operation
vim-longlines copied to clipboard

Problem with Cyrillic layout

Open glow12121 opened this issue 2 years ago • 2 comments

I have two layout and to make all hotkeys work in both, I added this lines in the config:

set langmap+=ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯ;ABCDEFGHIJKLMNOPQRSTUVWXYZ " Cyrillic layout in normal mode
set langmap+=фисвуапршолдьтщзйкыегмцчня;abcdefghijklmnopqrstuvwxyz " Cyrillic layout in normal mode
set langmap+=ЖжЭэХхЪъ;\:\;\"\'{[}]                                 " Cyrillic layout in normal mode

With the Long-lines plugin on, however, there's a problem: J and K work fine with the Latin layour but they work weird with the Cyrillic one. The cursor is placed either somewhere in the middle of lines or at their ends.

H and L seem to work fine in both layouts.

All other hotkeys in Neovim seem to work fine in both layouts.

glow12121 avatar Mar 16 '23 17:03 glow12121

I've only tested the plugin using the Latin layout. However, could you try disabling the plugin and using gj and gk instead of j and k? If gj and gk are also giving you trouble, then it's a problem that cannot be fixed within the plugin.

manu-mannattil avatar Mar 17 '23 04:03 manu-mannattil

@manu-mannattil Thanks for the reply. It seems that, yes, with the plugin off gj and gk malfunction with the Cyrillic layout.

glow12121 avatar Mar 22 '23 11:03 glow12121