LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   prompt within gvim/vim/vi (https://www.linuxquestions.org/questions/linux-software-2/prompt-within-gvim-vim-vi-284938/)

zchoyt 02-01-2005 11:15 AM

prompt within gvim/vim/vi
 
My instructor get the linux prompt in emacs. I like to use vi instead. Is there a way to get the prompt in vi?

slackie1000 02-01-2005 11:25 AM

hi there,

if by prompt, you mean shell... yes
Code:

:shell
note that in emacs this feature is a bit more complete. :D

regards

slackie1000

[edit] forgot the exclamation. sorry.

Disillusionist 02-01-2005 11:27 AM

I'm guessing you mean can I start a shell session from within vi.

If so, the answer is yes you can.

Type

:!sh

That's colon exclamation sh

zchoyt 02-01-2005 10:59 PM

Thanks Disillusionist,

How do you get out of shell back into editing your text file? The idea here is to write code and compile it in all from vi.


thx

Wim Sturkenboom 02-02-2005 12:31 AM

Tried exit ? Was the first thing that came to my mind.

Disillusionist 02-02-2005 12:38 AM

Yes just typing exit bring you back to the editor.

BTW: you can run single commands the same way

Example:

:!ls -l

colon exclamation (LS -L)

zchoyt 02-02-2005 06:30 AM

Great, this is exactly what I was hoping to find about vim. Thx everyone


All times are GMT -5. The time now is 10:53 PM.