Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can also run

%edit my_file.txt

which will use whatever you have $EDITOR set to first, and then fall back on vi otherwise.

You can also run

sage: %edit my_file.txt

which will use whatever you have $EDITOR set to first, and then fall back on vi otherwise.

You can also run

sage: %edit my_file.txt
%edit

which will use open whatever you have $EDITOR set to first, and then fall back on vi otherwise.

The file is then saved to a temporary file and run when you exit, unless you do %edit -x (then it doesn't execute). While you're in your editor you can also write out to another file if you prefer.