w3m manual for Lynx-like key binding
Dai Sato
satodai@dog.intcul.tohoku.ac.jp
Revised by Akinori Ito
Introduction
w3m is a pager/text-based WWW browser. You can browse local documents and/or
documents on the WWW using a terminal emulator.
Options
Command line usage is
w3m [options] [file|URL]
If you specify filenames/URLs on command line, these documents are displayed.
If you specify nothing, w3m reads a document from standard input and display it.
If no filename and/or URLs are specified and standard input is tty, w3m terminates
without displaying anything.
Options are as follows:
- +<line number>
- Move to the specified line.
- -t width
- Specify tab width. Default is 8.
- -r
- When displaying text/plain document, prohibit emphasis using backspace.
If you don't specify this option,
``A^H_'' is interpreted as underlined character and ``A^HA'' as a bold character.
- -S
- When displaying text/plain document, squeeze blank lines.
- -l number
- Specify line number preserved internally when reading text/plain document
fron standard input. Default is 10000.
- -s
- Display documents with Shift_JIS code.
- -e
- Display documents with EUC_JP code.
- -j
- Display documents with ISO-2022-JP code.
- -T type
- Specify document type. Without this option, document type
is determined from extension of a file. If the determination
fails, the document is regarded as text/plain.
Example:
Read HTML document from standard input and display it
cat hoge.html | w3m -T text/html
Display HTML source
w3m -T text/plain hoge.html
- -m
- Display document with Internet message mode.
With this option, w3m determines document type from header infomation.
It is useful when reading E-mail or NetNews messages.
- -B
- Show the bookmark.
- -M
- Monochrome display mode.
- -F
- Automatically render frame.
- -S
- Sqeeze blank lines.
- -X
- Upon exit, do not display preserved screen.
- -W
- Toggle wrap search mode.
- -cookie
- Process cookies.
- -no-cookie
- Don't process cookies.
- -num
- Show linenumber.
- -dump
- Read document specified by URL and dump formatted text into standard
output. The width of the document become 80. This width can be overridden
with -cols option.
- -cols width
- Specify document width. Used with -dump option.
- -dump_source
- Read document specified by URL and dump the source.
- -no-proxy
- Don't use proxy server.
- -no-mouse
- Don't activate mouse.
Document color
Links and images are displayed as follows.
| | Color mode | Monochrome mode |
| links | blue | underline |
| inline images | green | reverse |
| form input | red | reverse |
These colors can be customized using option setting command "o".
Key binding
After invocation, you can operate w3m by one-character commands from
the keyboard.
Page/Cursor motion
| SPC,C-v | Forward page
|
| b,ESC v | Previous page
|
| l | Cursor right
|
| h | Cursor left
|
| j | Cursor down
|
| k | Cursor up
|
| J | Roll up one line
|
| K | Roll down one line
|
| > | Shift screen right
|
| < | Shift screen left
|
| . | Shift screen one column right
|
| , | Shift screen one column left
|
| G | Go to the specified line
|
| TAB,C-n,Down arrow | Move to next hyperlink
|
| ESC TAB,C-p,Up arrow | Move to previous link
|
Hyperlink operation
| RET, C-f, Right arrow | Follow hyperlink
|
| d, ESC RET | Save link to file
|
| u | Peek link URL
|
| I | View inline image
|
| ESC I | Save inline image to file
|
| : | Mark URL-like strings as anchors
|
| ESC : | Mark Message-ID-like strings as news anchors
|
| c | Peek current URL
|
| = | Display infomation about current document
|
| F | Render frame
|
| M | Browse current document using external browser
(use 2M and 3M to invoke second and third browser)
|
| ESC M | Browse link using external browser
(use 2ESC M and 3ESC M to invoke second and third browser)
|
File/Stream operation
| g,U | Open URL
|
| V | View new file
|
| @ | Execute shell command and load
|
| # | Execute shell command and browse
|
Buffer operation
| B, C-b, Left arrow | Back to the previous buffer
|
| \ | View HTML source
|
| s, C-h | Select buffer
|
| E | Edit buffer source
|
| R, C-r | Reload buffer
|
| S, p | Save buffer
|
| ESC s | Save source
|
| ESC e | Edit buffer image
|
Buffer selection mode
| k, C-p | Select previous buffer
|
| j, C-n | Select next buffer
|
| D | Delect current buffer
|
| RET | Go to the selected buffer
|
Bookmark operation
| v, ESC b | Load bookmark
|
| a, ESC a | Add current to bookmark
|
Search
| / | Search forward
|
| ? | Search backward
|
| n | Search next
|
Mark operation
| C-SPC | Set/unset mark
|
| ESC p | Go to previous mark
|
| ESC n | Go to next mark
|
| " | Mark by regular expression
|
Miscellany
| ! | Execute shell command
|
| H | Help (load this file)
|
| o | Set option
|
| C-c | Stop
|
| C-z | Suspend
|
| q | Quit (with confirmation, if you like)
|
| Q | Quit without confirmation
|
Line-edit mode
| C-f | Move cursor forward
|
| C-b | Move cursor backward
|
| C-h | Delete previous character
|
| C-d | Delete current character
|
| C-k | Kill everything after cursor
|
| C-u | Kill everything before cursor
|
| C-a | Move to the top of line
|
| C-e | Move to the bottom of line
|
| C-p | Fetch the previous string from the history list
|
| C-n | Fetch the next string from the history list
|
| TAB,SPC | Complete filename
|
| RETURN | Accept
|