-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
repl: vi editing mode for Julia #6774
Comments
I have the following in my
, but I can't find the documentation for that now. |
Unfortunately, your solution doesn’t work for me. I wonder what is causing this. |
Do you mean the behaviour provided by GNU Readline [1]? Julia's REPL used to use Readline but that was replaced by a pure Julia implementation in #6270, so there's probably no vi mode unless I've missed something. [1] http://www.gnu.org/software/bash/manual/html_node/Readline-vi-Mode.html |
Yes, I was talking about GNU Readline. Thanks so much for the link Michael that helped a lot. Does this bear on the README entry where it is stated that |
Yes, that is outdated. See #6775. There is now no difference between |
Thanks for clarifying that @mbauman. |
While I don't use vi mode myself, I think this could remain open as a feature request. |
Agreed. I think it's a decent up-for-grabs kind of issue. The backend for adding custom user keybindings is already there; it just needs to be exposed by an API. Adding the extra layer of vi's modality (switching keymaps on insert and command modes) would be a much bigger challenge, but I think it'd be doable for an intrepid vi user. |
Agreed. |
An alternative might be to use vim-ipython together with IJulia. For me it seems to work pretty well but with some quirks as vim-ipython assumes a python kernel. See ivanov/vim-ipython#74 |
Should be possible to use |
While vi bindings would be cool, I doubt they would ever get shipped with Base. Adding a vi mode to the REPL deserves to be in a package. |
vi mode would be great |
+1 |
Also +1 for vi keybindings. |
The hooks already exist for creating a vi mode via a package. Someone just needs to write that package. |
Four years later, still no vi keybindings |
Five :( |
I've spent some time developing a package which emulates vim bindings in the REPL, it may be of use to some people here. It's not perfect, but it checks off a lot of the vim basics. I would be very pleased to have feedback, feel free to try it out and to share your thoughts! |
Hello,
I am on arch linux. I try to set up Julia to use vi editing mode in a repl session but that somehow doesn’t work. I set
set -o vi
in my~/.bashrc
andset editing-mode vi
,set keymap vi-command
in my~/.inputrc
. But somehow Julia doesn’t pick up on that. I compiled Julia from source with all dependencies in a directory. It does not use any system provided libraries apart frompcre 8.35-1
. (Becausepcre
will fail tests with the recent version ofgcc
(4.9).) Other repls likeR
orPython
do respect vi editing mode. Is there a way to get Julia to use vi editing?The text was updated successfully, but these errors were encountered: