1
Table of Contents
NAME
SYNOPSIS
Conventions
Pop-down Menus
Menu hot-keys
Cursor motion
Inserting and deleting
Cutting and pasting
Miscellaneous
NAME
APE - Another Programmer's Editor
SYNOPSIS
ape -h[elp] ape [file1] [file2] ... [fileN] xape [-m] [file1] [file2] ... [fileN]
Conventions
<key1>-<key2> means press and release key1, then press and release key2.
<key1>+<key2> means press key2 while holding down key1.
Pop-down Menus
Display a pop-down menu: <Alt>+<hilighted letter> or "<Esc>-<highlighted letter>"
Next menu: <right arrow>
Previous menu: <left arrow>
Menu hot-keys
Save file: <Ctrl+s> or <Esc>-<Esc>
Toggle displayed file: <Ctrl>+t
Find word: <Ctrl>+f or <Esc>-/
Repeat last find: <Ctrl>+n or <F3>
Compile to object: <F6>
Build and run: <Esc>-r or <F5>
Goto next error: <Esc>-n
Help on word under cursor: <F1>
Cursor motion
Move Left: <Left arrow>
Move Right: <Right arrow>
Move Up: <Up arrow>
Move Down: <Down arrow>
Beginning of next line: <Enter> (works only in replace mode)
Next word: <Ctrl>+w
Previous word: <Ctrl>+p
End of line: <Ctrl>+e or <End>
Beginning of line: <Ctrl>+b or <Home>
Next page: <Page Down> or <Ctrl>+y
Previous page: <Page Up> or <Ctrl>+u
Top line of file: <Esc>-t
Last line of file: <Esc>-l
Goto a line #: <Ctrl>+g
Inserting and deleting
Toggle insert/replace mode: <Insert> or <Ctrl>+r
Delete character at cursor position: <Delete> or <Ctrl>+d
Delete character left of cursor: <Backspace> or <Ctrl>+h ( Note: Check your terminal emulator settings if backspace acts like Del. Many terminal emulators can be configured to send either BS or DEL, and it must be set to match the terminfo entry for your terminal. )
Delelete to end of word: <Ctrl>+o
Delete to end of line: <Ctrl>+k
Delete a line: <Ctrl>+x
Undelete line: <Ctrl>+z
Cutting and pasting
Begin marking area:
Move to beginning or area and type <F4> or <Esc>-m
End marking area:
Move to end of area and type <F4> or <Esc>-m again.
Delete marked area: <Ctrl>+x
Paste marked area: <Ctrl>+v
Cancel marked area: <F4> or <Esc>-m
Invoke an edit macro: <F9> or <Esc>-Enter
Join next line to current: <ctrl>+e or <Home> followed by <del>
Miscellaneous
Scroll so that current line is at top of window: <Esc>-a
Redraw screen: <Ctrl>+l