Use your CLI text editor from within the Python REPL.
Project description
EditREPL is a port of Giles Bowkett’s [InteractiveEditor](http://utilitybelt.rubyforge.org/svn/lib/utility_belt/interactive_editor.rb) component from his ruby gem [Utility Belt](http://utilitybelt.rubyforge.org/).
EditREPL allows you to run a terminal based editor inside your REPL session to interactively edit code.
##Basic Usage To include it in your session, import the module and call the editor function:
import editrepl vim()
After you save, the buffer will be executed in the current REPL context.
##Advanced Usage ###Can I edit any file? Yes, just call the editor function with the filename you want to edit.
vim(“myfile.py”)
###How does EditREPL choose your editor? By default it uses the editor defined as your EDITOR environment variable, but if that isn’t defined it tries the following editors in order:
[“vim”, “vi”, “emacs”, “nano”, “pico”, “ed”]
###Can I change my editor? To manually set your editor after initialization, supply the name or full path to the executable as follows:
ER.editor = “cli-textmate”
This will create a binding to the function cli-textmate for you to call.
##Etc By Philip Bjorge Released under BSD License https://github.com/philipbjorge/EditREPL
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.