From 86c74b15fb2bc42aef41ae7651bd97a2afea1c53 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Mon, 26 Oct 2026 09:53:34 +0100 Subject: tweak(user): remap vi navigation for Colemak-DH Oof, this feels good. Should've done this sooner. --- user/ideavim/ideavimrc | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'user/ideavim/ideavimrc') diff --git a/user/ideavim/ideavimrc b/user/ideavim/ideavimrc index 81dc523..fed7bc9 100644 --- a/user/ideavim/ideavimrc +++ b/user/ideavim/ideavimrc @@ -1,4 +1,45 @@ set clipboard+=unnamed +" Put Vim's directional keys on the Colemak-DH home-row positions. +noremap k h +noremap K H +noremap n j +noremap N J +noremap e k +noremap E K +noremap i l +noremap I L + +" Move the displaced commands onto the old directional keys. Use `o` for +" insert/inner text objects and `l` for open-line/switch-selection-end. +noremap h e +noremap H E +noremap o i +noremap O I +noremap l o +noremap L O + +" Navigate search results. +noremap n +noremap N + +" Remap g-prefixed commands. +noremap gn gj +noremap ge gk +noremap g gn +noremap g gN +noremap gh ge +noremap gk gh + +" Focus a window in the given direction. +noremap k h +noremap h +noremap n j +noremap j +noremap e k +noremap k +noremap i l +noremap l + " Disable annoying bell sound. Note that visual bell isn't implemented so nothing will be heard or seen. set visualbell -- cgit v1.3.1