mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
23 lines
656 B
Text
23 lines
656 B
Text
# $DOTFILES/common/lesskey
|
|
# Date: 2024-12-22
|
|
# Author: js0ny
|
|
# Less the pager.
|
|
|
|
# Location:
|
|
# $XDG_CONFIG_HOME/lesskey
|
|
# Or specified by the environment variable $LESSKEYIN
|
|
# Linking:
|
|
# ln -sf $DOTFILES/common/lesskey ~/.config/lesskey
|
|
# ===========================================================
|
|
# work for less -V > 582, for mac, use brew install less to override the system less
|
|
# In Windows (current version), the default pager is `more`, should be specifed to `less` by `$Env:Pager = less`
|
|
|
|
# Format: key action
|
|
|
|
# Arrow Remap (hnei -> hjkl)
|
|
n forw-line
|
|
e back-line
|
|
|
|
# search with k : ne[k]st
|
|
k repeat-search
|
|
K reverse-search
|