MySQL中的Vi用于命令编辑


8

使用MySQL命令行界面时,是否有任何方法可以让您使用vi命令编辑键代替emacs

Answers:


13

MySQL命令行界面使用readline编辑命令行。

创建~/.inputrc具有以下内容的文件以使用vi模式

$if mysql
set editing-mode vi
$endif

当然,如果要在所有bash使用readline的应用程序(包括)中使用vi模式,则可以省略$if$endif ...行...

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.