# Running VIM inside Sage Shell

Is this possible? I want to work in Sage shell but I want to use VIM while typing up stuff in sage shell.

Running VIM inside Sage Shell

2

You can use any bash command by starting with `!`

, in you case:

```
sage: !vim my_file.txt
```

2

You can also run

```
sage: %edit
```

which will 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.

Asked: **
2018-07-12 09:28:54 -0500
**

Seen: **94 times**

Last updated: **Jul 13 '18**

How can I add arrows at the end of sage plot axis?

Is there some way to have Geogebra and SAGE interact?

How to load gp file in Sage terminal and list all its content

Where is defined __gmpq_cmp_z?

Install sage-live on Hard-disk?

Full remove and re-install SAGE

How to import sage library to my python program?

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.

Do you mean in the Sage shell, started by running

`sage -sh`

in the terminal, or in the Sage REPL (read-eval-print loop), started by running`sage`

in the terminal?