Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use bind for vi mode? #41

Closed
filipencopav opened this issue Apr 15, 2020 · 1 comment
Closed

How to use bind for vi mode? #41

filipencopav opened this issue Apr 15, 2020 · 1 comment

Comments

@filipencopav
Copy link

i am using set -o vi

i need "^L" to clear the screen. In emacs mode, it works by default, but in vi mode, it doesn't do that.

in bash, i would do bind "\C-l":'clear-screen' and it would work, but in oksh it only works in emacs mode.

@jaywilliams
Copy link
Contributor

Correct, that's a limitation of vi editing mode, both in oksh and it's upstream version.

Reference:
https://github.com/ibara/oksh/blob/master/oksh.1#L2794-L2801
https://man.openbsd.org/ksh#bind_3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants