Hi,

This $HOME/.inputrc gets you "vi-mode" in mysql and other programs that 
uses readline.

set editing-mode vi
set show-all-if-ambiguous On # after TAB is pressed

Regards
Jörgen

Quentin Bennett wrote:

>Hi,
>
>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?
>
>3.23.40 on Solaris 2.6 x86
>
>Thanks
>
>Quentin Bennett
>Transport Systems Division
>Infinity Solutions 
>web http:\\www.infinity.co.nz
>mailto:[EMAIL PROTECTED]
>Phone : +64 9 358 9720
>Fax : +64 9 309 4142
>
>
>The information contained in this email is privileged and confidential
>and intended for the addressee only. If you are not the intended 
>recipient, you are asked to respect that confidentiality and not 
>disclose, copy or make use of its contents. If received in error 
>you are asked to destroy this email and contact the sender immediately. 
>Your assistance is appreciated.
>
>---------------------------------------------------------------------
>Before posting, please check:
>   http://www.mysql.com/manual.php   (the manual)
>   http://lists.mysql.com/           (the list archive)
>
>To request this thread, e-mail <[EMAIL PROTECTED]>
>To unsubscribe, e-mail <[EMAIL PROTECTED]>
>Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>
>




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to