man less
memberi tahu kami hal berikut:
You may define your own less commands by using the program lesskey
(1) to create a lesskey file. This file specifies a set of command
keys and an action associated with each key. You may also use
lesskey to change the line-editing keys (see LINE EDITING), and to
set environment variables. If the environment variable LESSKEY is
set, less uses that as the name of the lesskey file. Otherwise,
less looks in a standard place for the lesskey file: On Unix
systems, less looks for a lesskey file called "$HOME/.less".
Ini memberitahu kita untuk menggunakan lesskey
untuk menghasilkan file lesskey membaca man lesskey
mengisi rincian. Anda dapat memasukkan yang berikut ini di file input lesskey ( ~/.lesskey
secara default)
h left-scroll
l right-scroll
Kemudian jalankan lesskey
, dan itu akan menghasilkan file output ( ~/.less
secara default) untuk Anda.
Sejauh yang saya tahu, Anda tidak dapat melakukan pengguliran horizontal karakter per karakter.
man lesskey