]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - lesskey
setup.sh: Don't use Git features of screen as root.
[config/dotfiles.git] / lesskey
diff --git a/lesskey b/lesskey
index c1a4a72422c38595add587fe4d88e2945b1cca25..dceb3129061df3a07524d6029407864f2c950822 100644 (file)
--- a/lesskey
+++ b/lesskey
@@ -5,10 +5,29 @@
 
 # Map "-" to go up one screen like in mutt.
 - back-screen
+# Map h and l to work like in Vim (go left/right).
+h left-scroll
+l right-scroll
+
+
+#line-edit
+
+# Vim-like up/down to replace the arrow keys.
+^P up
+^N down
+
 
 #env
 
-# Set options for less. If the command output fits on the current terminal
-# page less automatically quits. Also allows the use with colordiff. When
-# searching ignore case if no uppercase letter is used.
+# Set options for less.
+#
+# no-init: Disable initialization termcap as it sometimes causes the screen to
+#          get cleared.
+# search-skip-screen: Start searching at the bottom of the screen.
+# quit-if-one-screen: If the output fits on the current screen quit less.
+# RAW-CONTROL-CHARS: Display ANSI "color" escape sequences to allow colored
+#                    output. Other escape sequences are drawn in caret
+#                    notation.
+# ignore-case: Ignore case if the search string doesn't contain any uppercase
+#              letters.
 LESS = --no-init --search-skip-screen --quit-if-one-screen --RAW-CONTROL-CHARS --ignore-case