Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.