Simple editor for X: Users' Guide - chapter 4
Command summary
This chapter lists all commands you can give with the mouse
or with the keyboard. Some of the key bindings may require a
Finnish keyboard layout to work properly, due to stupidities with
the X event binding scheme.
- Left mouse button
- Click: select empty string at click. Further clicks without moving
the mouse select the word or line at click. Press-move-release:
select text between press and release.
- Shift-left mouse button
- Press-move-release: select text between press and release in
columnar mode.
- Middle mouse button
- Click inside selection: cut selection. Outside: paste selection
at click (from same window or from any window that supports
normal X copy and paste).
- Shift-middle mouse button
- Copy selection to kill ring.
- Right mouse button
- Extend selection to click.
- Arrow key
- Select empty string on next or previous line, or in next or previous
column.
- Control + left or right arrow
- Select empty string at beginning of previous or end of next word.
- Page Up, Page Down, Home, End
- Select empty string one windowful upward or downward, or at the
beginning or end of the line.
- Control-Page Up, Control-Page Down, Control-Home, Control-End
- Select empty string at beginning or end of file or window.
- Shift or Control-Shift and arrow key, Page Up, Page Down, Home, or End
- Extend one end of selection in the direction implied by the key.
- Insert, Control-Insert
- Replace selection with first or next entry from kill ring.
- Shift-Insert, Control-Shift-Insert
- Replace selection with first (next) kill ring entry in columnar mode.
- Delete, Backspace
- If selection is empty, cut character after (before) selection.
Otherwise, cut the selection.
- Control-Delete, Control-Backspace
- Like plain Delete (Backspace), but cut word after (before) selection,
if empty.
- Control-Tab, Shift-Control-Tab
- Indent (un-indent) all lines that contain selection.
- Meta (Alt) and digit (0-9)
- Go to mark numbered by the digit.
- Shift-Meta (Shift-Alt) and digit (0-9).
- Set mark numbered by the digit.
- Control-Meta (Control-Alt) and digit (0-9).
- Extend selection to mark numbered by the digit.
- Escape and [ or ]
- Select empty string at beginning of previous or end of next paragraph.
- Escape and P or N
- Extend selection to beginning of previous or end of next paragraph.
- Escape and ~
- Forget that file has been modified. Same as File:Mark unmodified.
- Escape and C or Meta-C (Alt-C)
- Toggle columnar mode for selection.
- Escape and Q, or Meta-Q (Alt-Q)
- Pipe selection through formatting command. If selection is empty,
first select the current paragraph.
- Escape and S, or Meta-S (Alt-S)
- Popup search and replace dialog.
- Control-S
- Search for next match using the current search string.
- Escape and Z, or Meta-Z (Alt-Z)
- Save everything and quit.
- Shift-space or Control-Shift-space
- Indent (or un-unindent) selected lines by one space.
- Meta-N (Alt-N) or Meta-P (Alt-P)
- Go to next or previous file.
- Meta-L (Alt-L)
- Select current paragraph.
- Control and 0, 1, 2, or 3
- Close this window (0), all other windows (1), or clone this window (2)
or open a new window for each file that doesn't have one already (3).
- Control-X and Control-K
- Forget about the current file.
- Control-X and I or Control-I
- Insert file (replace selection with other file).
- Control-X and Control-S or Control-D
- Save current file.
- Control-X and Control-C
- Quit. If there are any unsaved changes, ask what to do.
- Control-X and Control-F
- Load a new file.
The following Emacs key bindings work mostly like in Emacs:
- Control and A, B, D, E, F, K, L, N, O, P, V, W, Y.
- ESC or Meta (Alt) and <, >, B, D, F, Q, W.
- Control-X followed by 0, 1, 2, or Control and C, F, I, S.
The emulation of these commands may not be exact, and most
interesting Emacs commands are missing.
Simple editor for X: Users' Guide
- Copyright © 1996, 1997 Lars Wirzenius.
Contents; abstract; next; back.
Version 0.12
Lars Wirzenius liw@iki.fi