Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just learned that CtrlxCtrle in the Bash CLI will open the current command in a VIM buffer for editing. That is nice, but where I really need this feature is the MySQL CLI interpreter, and that keyboard shortcut does not work there. I am aware of the inherent readline VIM feature, but I find it more annoying then useful. Is there any way to open the current MySQL command in a VIM buffer just as is possible with a Bash command line?

share|improve this question
up vote 2 down vote accepted

edit, or \e.

This could be found by running $ man commandname.

share|improve this answer
    
Thank you Romaini. I did search google, but I did not read the mysql manpage yet. I will go over that, and some other manpages that I have been meaning to review. Thank you! – dotancohen Dec 18 '12 at 15:55
1  
I should note for future readers that this method is extremely limited. Only the last command can be edited, and the finished command is not shown in the MySQL CLI. – dotancohen Dec 18 '12 at 18:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .