vi Binding

To use the vi bindings, create a file ~/.editrc and put "bind -v" in the file, run ttIsql.

To get the current settings, create a file ${HOME}/.editrc and put "bind" on the last line of the file. When you run ttIsql, the editline lib prints the current bindings.

The keystrokes when using ttIsql with the vi binding are:

Keystroke Action

<Left-Arrow>, h

Move the insertion point left (back up).

<Right-Arrow>, l

Move the insertion point right (forward).

<Up-Arrow>, k

Scroll to the prior command in the history and put the cursor at the end of the line.

<Down-Arrow>, j

Scroll to the next command in the history and put the cursor at the end of the line.

ESC

Vi Command mode.

0, $

Move the insertion point to the beginning of the line, Move to end of the line.

i, I

Insert mode, Insert mode at beginning of the line.

a, A

Add ("Insert after") mode, Append at end of line

R

Replace mode.

C

Change to end of line.

B

Move to previous word.

e

Move to end of word.

<Ctrl-P>

Previous History (see Up Arrow).

<Ctrl-N>

Next History (see Down Arrow).