Professional Documents
Culture Documents
Summary of Less Commands
Summary of Less Commands
q :q Q :Q ZZ Exit.
---------------------------------------------------------------------------
MOVING
r ^R ^L Repaint screen.
---------------------------------------------------
---------------------------------------------------------------------------
SEARCHING
---------------------------------------------------
---------------------------------------------------------------------------
...skipping...
---------------------------------------------------
---------------------------------------------------------------------------
SEARCHING
---------------------------------------------------
A search pattern may begin with one or more of:
---------------------------------------------------------------------------
JUMPING
---------------------------------------------------
Each "find close bracket" command goes forward to the close bracket
Each "find open bracket" command goes backward to the open bracket
matching the (N-th) close bracket in the bottom line.
---------------------------------------------------
---------------------------------------------------------------------------
CHANGING FILES
:x * Examine the first (or N-th) file from the command line.
---------------------------------------------------------------------------
MISCELLANEOUS COMMANDS
+cmd Execute the less cmd each time a new file is examined.
|Xcommand Pipe file between current pos & mark X to shell command.
---------------------------------------------------------------------------
OPTIONS
-? ........ --help
Display help (from command line).
-a ........ --search-skip-screen
-A ........ --SEARCH-SKIP-SCREEN
Number of buffers.
-B ........ --auto-buffers
-c ........ --clear-screen
-d ........ --dumb
Dumb terminal.
-D xcolor . --color=xcolor
-f ........ --force
-F ........ --quit-if-one-screen
-g ........ --hilite-search
-G ........ --HILITE-SEARCH
-i ........ --ignore-case
-I ........ --IGNORE-CASE
-J ........ --status-column
-k [file] . --lesskey-file=[file]
-K ........ --quit-on-intr
-L ........ --no-lessopen
-n ......... --line-numbers
-N ......... --LINE-NUMBERS
-o [file] . --log-file=[file]
-O [file] . --LOG-FILE=[file]
Copy to log file (unconditionally overwrite).
-p [pattern] --pattern=[pattern]
-P [prompt] --prompt=[prompt]
-s ........ --squeeze-blank-lines
-S ........ --chop-long-lines
-t [tag] .. --tag=[tag]
Find a tag.
-T [tagsfile] --tag-file=[tagsfile]
-V ........ --version
-w ........ --hilite-unread
-W ........ --HILITE-UNREAD
-X ........ --no-init
-~ ........ --tilde
--exit-follow-on-close
--file-size
--follow-name
--header=[N[,M]]
--incsearch
--intr=C
Use C instead of ^X to interrupt a read.
--line-num-width=N
--modelines=N
Read N lines from the input file and look for vim modelines.
--mouse
--no-keypad
--no-histdups
--no-number-headers
--no-search-headers
--no-vbell
--redraw-on-quit
--rscroll=C
--save-marks
--search-options=[EFKNRW-]
--proc-backspace
--SPECIAL-BACKSPACE
--proc-return
--SPECIAL-RETURN
--proc-tab
--SPECIAL-TAB
--status-col-width=N
--status-line
--use-backslash
--use-color
--wheel-lines=N
--wordwrap
Wrap lines at spaces.
---------------------------------------------------------------------------
LINE EDITING
ctrl-DELETE .... ESC-DELETE .... ESC-X ... Delete word under cursor.