about summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-11-03 11:31:59 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-11-03 11:31:59 +0100
commit301211e461a172abb9143ba4c3b31f0504af84e0 (patch)
tree370c25f3836615ae1aacbbd43597ef0e3dc48491 /modules
parentfix(modules/legacy/conf/nvim/plgs/femacro): Add additional config function (diff)
downloadnixos-config-301211e461a172abb9143ba4c3b31f0504af84e0.tar.gz
nixos-config-301211e461a172abb9143ba4c3b31f0504af84e0.zip
fix(modules/less/command.less): Improve keymappings
This removes some unneeded ones and adds the ARROW UP mapping to ensure
symmetry to the ARROW DOWN mapping.
Diffstat (limited to '')
-rw-r--r--modules/by-name/le/less/command.less36
1 files changed, 22 insertions, 14 deletions
diff --git a/modules/by-name/le/less/command.less b/modules/by-name/le/less/command.less
index 5365686b..a29395e8 100644
--- a/modules/by-name/le/less/command.less
+++ b/modules/by-name/le/less/command.less
@@ -1,35 +1,43 @@
 #command
-\r         forw-line
-\n         forw-line
-e          forw-line
+# Vim keys
 t          forw-line
+n          back-line
+T          forw-line-force
+N          back-line-force
+
+# Arrow movement (down and up)
 \kd        forw-line
+\ku        back-line
+
 ˆE         forw-line
 ˆN         forw-line
-n          back-line
-y          back-line
 ˆY         back-line
 ˆK         back-line
 ˆP         back-line
-T          forw-line-force
-N          back-line-force
-Y          back-line-force
+
+
 d          forw-scroll
 ˆD         forw-scroll
 u          back-scroll
 ˆU         back-scroll
+
+# Space
 \40        forw-screen
+\e\40      forw-screen-force
 f          forw-screen
-ˆF         forw-screen
-ˆV         forw-screen
-\kD        forw-screen
 b          back-screen
-ˆB         back-screen
-\ev        back-screen
+# Page Down and Up
+\kD        forw-screen
 \kU        back-screen
+
+\ev        back-screen
+ˆB         back-screen
+ˆF         forw-screen
+ˆV         forw-screen
+
 z          forw-window
 w          back-window
-\e\40      forw-screen-force
+
 F          forw-forever
 \eF        forw-until-hilite
 R          repaint-flush