# Useful `lesskey' definitions (mostly dealing with cursor keys). # Author: LeRoy N. Eide # University of Utah Computer Center # Warranty: None -- you get what you pay for! # ### # # Some "less" terminology: Sample commands # # repeat- (used with -search[-all]) n \en # reverse- (used with -search[-all]) N \eN # set- (used with -mark) # toggle- (used with -option) # display- (used with -option) # left- leftward movement (used with -scroll) \e[ # right- rightward movement (used with -scroll) \e] # forw- forward movement # back- backward movement # goto- direct movement # next- next movement (usually -file) # prev- previous movement (usually -file) # -line[-force] move (forward or backward) line(s) [#]j [#]k # -scroll move (and define) half-window size [#]d [#]u # -window move (and define) full-window size [#]z [#]w # -screen[-force] move (# of lines or) full-window [#]f [#]b # -end move to EOF G # -forever move to EOF and act like `tail -f' F # -bracket move to specified matching "bracket" \e^F \e^B # -file move to next or previous file :n, :p # -search[-all] move to target-string [in any file] / ? # -mark set or move to specified mark m ' # -option display or toggle specified option _ - # # Note: Not all combinations of the above are actually valid -- and there are # are many other functions not mentioned! [See lesskey(1)] # Note: Default window size is initial screen size or value of -[z]# option. # Default commands to eliminate: # Emacs-ish commands: ^R back-search ^S forw-search # VT{52|100|200} normal (numeric) cursors: \033A back-line \033[A back-line \233A back-line \033B forw-line \033[B forw-line \233B forw-line \033C forw-window \033[C forw-window \233C forw-window \033D back-window \033[D back-window \233D back-window # VT{100|200} application cursors: \033OA back-line \217A back-line \033OB forw-line \217B forw-line \033OC forw-window \217C forw-window \033OD back-window \217D back-window # VT{52|100|200} "meta" cursors: \033\033A back-scroll \033\033[A back-scroll \033\033OA back-scroll \033\233A back-scroll \033\217A back-scroll \033\033B forw-scroll \033\033[B forw-scroll \033\033OB forw-scroll \033\233B forw-scroll \033\217B forw-scroll \033\033C next-file \033\033[C next-file \033\033OC next-file \033\233C next-file \033\217C next-file \033\033D prev-file \033\033[D prev-file \033\033OD prev-file \033\233D prev-file \033\217D prev-file