qmk / qmk_firmware

Open-source keyboard firmware for Atmel AVR and Arm USB families
https://qmk.fm
GNU General Public License v2.0
17.45k stars 37.65k forks source link

Vim mode #23819

Open juliekoubova opened 1 month ago

juliekoubova commented 1 month ago

Feature Request Type

Description

Hello, I've written a little Vim feature. It supports Vim commands and movements that can be implemented using standard Windows and Apple shortcuts (e.g. dw (delete word) sends Ctrl+Shift+Left, Ctrl+X on Windows, v0 sends Shift+Home, and so on).

It introduces a new keycode (QK_VIM), which can be tapped to enter the command mode, where you can use regular Vim commands like a or i to return to regular insert mode, or you can tap the QK_VIM again to return. It can also be held down and used as a modifier; in that case, the keyboard returns to regular insert mode after releasing the QK_VIM key.

It is currently in my userspace. There's also a keymap. I've been using it for over a year on my 60% keyboard. I was wondering if there would be any interest in including it in QMK itself. If yes, I can write some docs and maybe tests, move it into the main directory and send a PR :)

juliekoubova commented 1 month ago

I moved it over to https://github.com/juliekoubova/qmk_userspace/tree/main