Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
:set langmap=йq,цw,уe,кr,еt,нy,гu,шi,щo,зp,х[,ї],фa,іs,вd,аf,пg,рh,оj,лk,дl,ж\\;,є',ґ\\,яz,чx,сc,мv,иb,тn,ьm,ю.,./,ЙQ,ЦW,УE,КR,ЕT,НY,НY,ГU,ШI,ЩO,ЗP,Х{,Ї},ФA,ІS,ВD,АF,ПG,РH,ОJ,ЛK,ДL,Ж\\:,Є\\",Ґ<bar>,ЯZ,ЧX,СC,МV,ИB,ТN,ЬM,Б\\<,Ю>,№#
@bebyx

This comment has been minimized.

Copy link
Owner Author

@bebyx bebyx commented Mar 3, 2020

Ukrainian Language Layout for Vim HotKeys

Vim doesn't understand non-Latin letters by default. The recommended way to add a support is to set langmap in your Vim config file.

I've created this gist to help Ukrainians who may want to use Vim navigation with Ukrainian keyboard layout.

To teach Vim to understand main hotkeys on Ukrainian language layout in a moment, execute in your terminal:

curl -w "\n" https://gist.githubusercontent.com/bebyx/09307c0d9bdd381add8e9fd623a827d3/raw >> ~/.vimrc

This adds the gist's content, langmap setting, into the config ~/.vimrc file :

It's as simple as that. No plugins, no bloat.

Official docs on 'langmap'

@Searge

This comment has been minimized.

Copy link

@Searge Searge commented Apr 11, 2020

На жаль ламає vim keybindings, з того, що помітив: b — працює як і, r — робить відступи...

@bebyx

This comment has been minimized.

Copy link
Owner Author

@bebyx bebyx commented Jul 26, 2020

На жаль ламає vim keybindings, з того, що помітив: b — працює як і, r — робить відступи...

Дякую за коментар! Так, сам перевірив, на жаль, ламає ці гарячки в англійській розкладці. Я подумаю, що можна зробити. Тимчасове рішення — прибрати иb та кr з langmap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment