question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] add in a langmap setting

See original GitHub issue
  • Click thumbs-up 👍 on this issue if you want it!
  • Click confused 😕 on this issue if not having it makes VSCodeVim unusable.

The VSCodeVim team prioritizes issues based on reaction count.


This a FEATURE REQUEST:

Environment:

  • VSCode Version: 1.19.1
  • VsCodeVim Version: v0.10.6
  • OS: Linux

What the feature is: Langmaps are a feature which allows you to do a string of simplistic mappings with ease on a single line. For example, as a Dvorak user i have several keys I like to remap in order to improve my ability to navigate and to greatly improve comfort while using vim or vim emulators. This could be achieved with normal mappings of each key (although VSCode Vim doesn’t do this properly - see #2233 and #2234) or using a single langmap.

important differences between langmaps and maps Langmaps are inflexible and only allow mapping one key to one other key, many times. Maps allow mapping a key or key combination to another key, key combination, or action. They allow you to do much more complex things and are more flexible.

Why i feel like this is important: I use a Dvorak keyboard, and Vim was made for use on a QWERTY keyboard. This can make some default commands very very awkward for me, including using w and especially j and k. Langmaps can be very very useful to those who use an alternate keyboard layout, whether it means restoring the ability to go off of muscle memory by using a langmap to recreate a QWERTY layout in normal mode, or moving awkward keys to better locations. I personally feel langmaps do a better job of this specific use case than maps, which, especially in VSCode Vim, bloat the settings file and can draw attention away from or overshadow the more complex and important mappings that may be present and need tweaking, or just to freshen up on what one or more mappings you created but rarely use actually do.

Adding in a langmap at this point could shrink my current settings file to half its current size.

For reference: in Vim it’s set with the syntax <desiredKey><originalKey> OR <desired keys>;<original keys> and separated by commas. Such as set langmap=tj,nk,sl,.>;wW,\\,';nN Although I’d expect only a single backslash would be needed for the escape on the comma.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:52
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
sindexcommented, Oct 13, 2020

This feature is extremely useful when writing in a non-Latin script but maybe a cousin of, basically Greek and Cyrillic. For example, when I’m doing non-programming related work and writing in Greek I would have to constantly change the layout to issue commands, not feasible or use “hacks” to trigger a switch to the system layout. In Vim I just have this setting.

set langmap=ΑA,ΒB,ΨC,ΔD,ΕE,ΦF,ΓG,ΗH,ΙI,ΞJ,ΚK,ΛL,ΜM,ΝN,ΟO,ΠP,QQ,ΡR,ΣS,ΤT,ΘU,ΩV,WW,ΧX,
  \ΥY,ΖZ,αa,βb,ψc,δd,εe,φf,γg,ηh,ιi,ξj,κk,λl,μm,νn,οo,πp,qq,ρr,σs,τt,θu,ωv,ςw,χx,υy,ζz
7reactions
grandsilencecommented, Mar 27, 2021

Any news? I can’t use command mode while Cyrillic layout is activated. So annoying.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[vim] allow KEYMAP with @a (#543) - Google Groups
The 'keymap' option is meant for when typing text in Insert mode. It does not apply to when typing commands, in Normal mode....
Read more >
Toggle between feature request modes - ArcGIS Developers
Use different feature request modes to populate the map from a service feature ... Create an AGSFeatureLayer with the feature table and add...
Read more >
Feature Request Content - Instabug
This page covers the content found in a feature request. Suggest Edits. Users can add new feature requests or comment on existing ones....
Read more >
Scid / Feature Requests - SourceForge
#. Sort A ‑> Z; Sort Z ‑> A Summary▾. Sort A ‑> Z; Sort Z ‑> A Milestone▾. Sort A... 87 Board drawing...
Read more >
How to create a Feature Request - THWACK Documentation
Before planning the next release, our product managers review the list of feature requests for inclusion in the product. Before creating a new...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found