this post was submitted on 27 Mar 2024
18 points (100.0% liked)

Neovim

2185 readers
2 users here now

founded 1 year ago
MODERATORS
 

im switching to colemak-dh and i need some advice.

im writing this with colemak-dh, beleive me its hard. whats even harder is the hjkl navigation. so should i remap it to neio? you can consider me a long run guy, so your answers can be based on that.

thanks in advance.

top 9 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 8 months ago (1 children)

Regular colemak user here, I have found the simplest thing to do is use the langmap option to rebind every function of hjkl to neio.

To try it out or add it to your init.vim config, run set langmap=hjklHJKLneioNEIO;neioNEIOhjklHJKL

If you have an init.lua config, add vim.opt.langmap = 'hjklHJKLneioNEIO;neioNEIOhjklHJKL'

It will rebind your motion in all modes and their shortcuts, so you don't have to spend any time mapping everything individually. However, it doesn't remap things in some extensions like which-key which is a huge pain to the point that I have just stopped using the extension entirely instead of trying to figure out all the mappings for a seamless experience.

[–] [email protected] 1 points 8 months ago (1 children)

vim.opt.langmap = 'hjklHJKLneioNEIO;neioNEIOhjklHJKL'

u answered the question without answering it. i dunno if u did that on purpose but im already feeling f-ed after remapping the keys. guess i should withdraw switching to colemak. i never realized vimd do this to me. thanks

btw that langmap was cool

[–] [email protected] 2 points 8 months ago (1 children)

Switching keyboard layouts is really hard it can take a lot of time to adjust. I haven't been using it for very long (only like a year and a half) but there are lots of users who say it is well worth it in the long run. If you're feeling f-ed about your new layout, I recommend trying to learn it as a side project over time, rather than making your whole setup use it. Stick with what you know for important stuff and use something like colemak academy until you are proficient enough to make the switch.

[–] [email protected] 1 points 8 months ago

Yeah, i can see your point. Actually colemak already feels good (yk those rolls) and i like it a lot, but colemak on vim, thats hard.

I recommend trying to learn it as a side project over time, rather than making your whole setup use it

Yeah i went fully in and realized this is impossible for (while learning) so now im qwerty on work and colemak on personal laptops

Btw im using keybr i thinks thats great.

Thanks for ur comment

[–] yagrum 2 points 8 months ago* (last edited 8 months ago) (1 children)

I've been using colemak mod dh without remapping and would recommend that approach. I found it encourages me to use other more efficient motions when possible, and my brain has gotten pretty used to the new locations the times that I need to use hjkl.

[–] [email protected] 1 points 8 months ago (1 children)

thats great. things i can think of is / and ? only. can you share them pls

[–] [email protected] 2 points 8 months ago (2 children)

I use flash.nvim extensively to jump around. There are also %, [[, [(, etc to work with brackets. vim-multicursor-visual helps to find and edit multi occurrences.

And for the rest I have a an easily reachable layer on my programmable keyboard with arrow keys in the home row instead of QWERTY ghjk

[–] [email protected] 1 points 8 months ago

wait! i can use ctrl (capslock) + mnei for navigation. thanks!!

[–] [email protected] 1 points 8 months ago

good for u. slipped away with programmable keyboard.