如何获取vi键盘绑定以在mysql客户端中工作? [英] How to get vi keybindings to work in mysql client?

查看:47
本文介绍了如何获取vi键盘绑定以在mysql客户端中工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的bash外壳中使用vi绑定,使用.bash_profile中的set -o vi.但是我似乎无法让它们在mysql命令行客户端中工作.我只得到emacs样式绑定.你如何做到的?

I have vi bindings working in my bash shell using set -o vi in my .bash_profile. But I can't seem to get them to work in the mysql command line client. I only get emacs style bindings. How do you do this?

我也将这些行放在我的.inputrc中,但没有任何作用:

I also put these lines in my .inputrc, but to with no effect:

set editing-mode vi
set keymap vi

推荐答案

快速的Google展示了

Quick google reveals this... don't know if it helps.

为方便起见,在此处复制

Copied here for convenience:

在OS X 10.5上添加以下内容:

Add the following on OS X 10.5:

$ cat .editrc
bind -v

这将适用于OS X 10.4和 其他操作系统:

This will work for OS X 10.4 and other operating systems:

$ cat .inputrc
set editing-mode vi

这篇关于如何获取vi键盘绑定以在mysql客户端中工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆