LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 04-19-2022, 03:11 PM   #1
starkid
Member
 
Registered: Jan 2012
Posts: 91

Rep: Reputation: Disabled
Typing Arabic in Vim with Colemak keyboard mapping


Colemak is my main keyboard layout, so my vim installation is set up to automatically source a Colemak keyboard mapping file system-wide.

When I try to use vim to type in Arabic (via set keymap=arabic_utf-8 or set arabic), I find that the keymapping is off: the letters are Arabic letters, but the keymapping for input still corresponds to Colemak. So the Arabic letters are scrambled in a way that corresponds to how letters in the QWERTY layout are scrambled relative to the Colemak layout.

Is there a way I can change the language AND the keymapping to a standard Arabic layout for input mode while using the Colemak layout for Command mode?
 
Old 04-20-2022, 08:46 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,982

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
Interesting question. I guess it is about two different layers, the Colemak keyboard mapping is a relatively low level access to the keyboard to replace all the events (= reorder the keys).
The arabic font is set on another level, where actually the key events will be translated to chars.
So probably you need to switch of that Colemak mapping (or revert) or find a combined arabic keyset for colemak mappings. Probably it can be generated too.
 
  


Reply

Tags
vim



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot input password with Colemak layout kwakaka Linux - Newbie 2 03-18-2021 05:55 AM
[SOLVED] Fedora shows 'man vim' but when execute 'vim' got "bash: vim: command not found..." ? flash_os Linux - Newbie 19 01-03-2015 11:56 PM
Switching from vim to vim -g from inside vim iDragoon Linux - Software 4 05-15-2009 11:46 AM
Editor comparison: vim VS vim-lite, Cleaning vim Ruler2112 *BSD 4 04-13-2009 04:26 PM
Slackware 12 - Typing in Arabic??? GuyWhoKilledBear Slackware 3 12-05-2007 10:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 12:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration