Re:EditREPL - Open Vim from within the Python REPL
by philipbjorge on Monday March 18, 2013 @12:23PM
(#5395152)
I think this is different because I'm full on opening an instance of vim. (I didn't know about GNU Readline though and it looks awesome - I'll definitely try and work it into a project at some point).
[ Parent
| on HN ]
Re:EditREPL - Open Vim from within the Python REPL
by jlgreco on Monday March 18, 2013 @12:32PM
(#5395235)
Either Readline let's you do the same, or that is just a bash specific feature I am miss remembering. I can check later when I'm not on my phone.
Re:EditREPL - Open Vim from within the Python REPL
by ben0x539 on Monday March 18, 2013 @12:33PM
(#5395243)
I'm only using GNU readline for my bash prompt, but if I press v it spawns a full-on $EDITOR instance to edit the commandline.
Re:EditREPL - Open Vim from within the Python REPL
by philipbjorge on Monday March 18, 2013 @12:44PM
(#5395329)
This is awesome (I still have a lot to learn about bash) and effectively what my module does.
Just so others know, you have to put bash in vi mode and press Esc before v (otherwise it's ctrl+x ctrl+e).
set -o vi