EditREPL - Open Vim from within the Python REPL
philipbjorge.github.com
EditREPL - Open Vim from within the Python REPL
1–10 of 18 posts
Re: EditREPL - Open Vim from within the Python REPL
#2Neat regardless.
Re: EditREPL - Open Vim from within the Python REPL
#3I could be mistaken, but isn't this a GNU Readline feature? Neat regardless.
Re: EditREPL - Open Vim from within the Python REPL
#4Re: EditREPL - Open Vim from within the Python REPL
#5IPython has this feature baked in the magic %ed command [1]. [1]: http://ipython.org/ipython-doc/dev/config/editors.html
Re: EditREPL - Open Vim from within the Python REPL
#6Haven't looked at the code yet, but I wrote:
https://github.com/Julian/dotfiles/blob/master/.config/pytho...
which does something similar (and is interpreter agnostic as it looks like this is).
Re: EditREPL - Open Vim from within the Python REPL
#7I could be mistaken, but isn't this a GNU Readline feature? Neat regardless.
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).
Re: EditREPL - Open Vim from within the Python REPL
#8I could be mistaken, but isn't this a GNU Readline feature? Neat regardless.
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).
Re: EditREPL - Open Vim from within the Python REPL
#9Re: EditREPL - Open Vim from within the Python REPL
#10Cool. Haven't looked at the code yet, but I wrote: https://github.com/Julian/dotfiles/blob/master/.config/pytho... which does something similar (and is interpreter agnostic as it looks like this is).
But yours is able to do that because your importing a top-level edit function while I was pretty set on dynamically creating a vim() method and not having to import a function (just a module).
I love how yours lists the globals though! I might just have to bite that feature :).