LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 02-01-2005, 12:15 PM   #1
zchoyt
Member
 
Registered: Feb 2003
Location: Boise ID
Distribution: fedora
Posts: 156

Rep: Reputation: 30
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?
 
Old 02-01-2005, 12:25 PM   #2
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 45
hi there,

if by prompt, you mean shell... yes
Code:
:shell
note that in emacs this feature is a bit more complete.

regards

slackie1000

[edit] forgot the exclamation. sorry.

Last edited by slackie1000; 02-02-2005 at 07:56 AM.
 
Old 02-01-2005, 12:27 PM   #3
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,013

Rep: Reputation: 83
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
 
Old 02-01-2005, 11:59 PM   #4
zchoyt
Member
 
Registered: Feb 2003
Location: Boise ID
Distribution: fedora
Posts: 156

Original Poster
Rep: Reputation: 30
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
 
Old 02-02-2005, 01:31 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Tried exit ? Was the first thing that came to my mind.
 
Old 02-02-2005, 01:38 AM   #6
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,013

Rep: Reputation: 83
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)
 
Old 02-02-2005, 07:30 AM   #7
zchoyt
Member
 
Registered: Feb 2003
Location: Boise ID
Distribution: fedora
Posts: 156

Original Poster
Rep: Reputation: 30
Great, this is exactly what I was hoping to find about vim. Thx everyone
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
does anyone know how to enable line completions in vim or gvim Joseph Schiller Linux - Software 2 10-31-2005 10:11 PM
where is the gvim? ayiiq180 Linux - Software 2 12-12-2004 04:41 AM
vim or gvim raees Linux - General 7 03-17-2004 06:02 PM
vim / gvim Shak Linux - Software 4 04-03-2003 10:25 AM
gvim where can I get it for RH 7.3 mtint Linux - Software 1 08-16-2002 02:54 PM


All times are GMT -5. The time now is 08:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration