List:General Discussion« Previous MessageNext Message »
From:Dan Nelson Date:January 4 2002 5:56am
Subject:Re: Command Line Editing Mode
View as plain text  
In the last episode (Jan 04), Quentin Bennett said:
> Using the mysql CLI, I have discovered that 
> 
> ESC-Return Return
> 
> will put the CLI editor in to 'vi' mode, and allow me to use my
> 'normal' ksh editing keys, available in ksh after "set -o vi".
> 
> Because I am more familiar with the vi editing keys, and they are
> more powerful than the standard MySQL CLI keys (including the ability
> to search through the history), I would prefer to use these all the
> time without having to remember the Esc Return Return sequence. Is
> there a way of doing this, or is this an un-documented feature?

Mysql uses readline for input, so there's probably something you can
put in ~/.inputrc to turn vi-mode on.  Check the readline docs (info
readline).

emacs-mode has a full set of history-search commands, also.

-- 
	Dan Nelson
	dnelson@stripped
Thread
Command Line Editing ModeQuentin Bennett4 Jan
  • Re: Command Line Editing ModeDan Nelson4 Jan
  • Re: Command Line Editing ModeJ├Ârgen Winqvist4 Jan
RE: Command Line Editing ModeFulko Hew4 Jan
  • queryJavier Gonzalo Gloria Medina5 Jan
RE: queryJavier Gonzalo Gloria Medina5 Jan