Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.92 KB

README.md

File metadata and controls

37 lines (23 loc) · 1.92 KB

colemak.nvim

This set of remappings adjusts Neovim to work with the Colemak keyboard layout.

This repo is a continuation of my colemak.vim repo, with the main purpose being transitioning to using the Neovim Lua API.

It started out as a copy of Shai Coleman's colemak.vim but quickly changed when I realized that while some of his ideas were interesting, others I didn't like at all.

The mappings have changed over the years to suit me and my needs/preferences; changes are still introduced from time to time. This means that it most likely isn't suitable for someone who's looking for a "faithful translation of QWERTY Neovim", since it's not an attempt to do that.

Main changes

unei (ijkl on QWERTY) replaces hjkl. A lot of movement mappings are centered around this formation of keys:

  • ly for word back and forward.
  • ^L^Y for WORD back and forward.
  • LY for ^ and $.
  • NI for end of word back and forward.
  • jh for page up and down.

There are other ones in that region of the keyboard, but those are the ones I use the most.

Undo, copy and paste are placed on the z, c and v, resembling the Ctrl+zxcv counterparts in other applications. This is a remnant of Shai's colemak.vim. Back then I didn't feel like making up something which breaks less bindings, these days I'm just too used to it.

There are other changes, but you can look those up in the actual mapping file.

Other stuff

Apart from the file with the mappings a file with unmappings was added. Together, these two files provide you with the commands :ColemakEnable and :ColemakDisable, of which the first one is run automatically when starting Vim.

Also, a word of warning: if you decide to use this, it's likely you'll have to change the mappings for a bunch of your currently installed plugins.