VIM Editor - To disable the status on existing | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

VIM Editor - To disable the status on existing

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-15-2013
greenworld123 greenworld123 is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 30 May 2014, 6:42 AM EDT
Posts: 58
Thanks: 15
Thanked 0 Times in 0 Posts
VIM Editor - To disable the status on existing

When i exist the vim editor .. to gives '0' in the console... i think it is status of the exit..
How to disable that ...
Sponsored Links
    #2  
Old 03-15-2013
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
who?
 
Join Date: Dec 2003
Last Activity: 25 October 2014, 1:14 AM EDT
Location: /dev/ph
Posts: 4,823
Thanks: 64
Thanked 430 Times in 399 Posts
Normally vim does not display any exit status message. It it just displaying a zero or something else with the zero?
Sponsored Links
    #3  
Old 03-16-2013
hanson44 hanson44 is offline
Registered User
 
Join Date: Mar 2013
Last Activity: 12 May 2013, 11:33 PM EDT
Posts: 858
Thanks: 18
Thanked 180 Times in 177 Posts
vim gives an exit status stored in $? (almost always 0). But the zero is normally not displayed unless you say something like 'echo $?' command.

Would need more information to hazard a guess why 0 displayed at console.
    #4  
Old 03-18-2013
greenworld123 greenworld123 is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 30 May 2014, 6:42 AM EDT
Posts: 58
Thanks: 15
Thanked 0 Times in 0 Posts
after i exit a file with :wq ... it is leaving a terminal as below
0/home/emp002198
Sponsored Links
    #5  
Old 03-18-2013
durden_tyler's Avatar
durden_tyler durden_tyler is offline Forum Advisor  
Registered User
 
Join Date: Apr 2009
Last Activity: 24 October 2014, 3:29 AM EDT
Posts: 1,841
Thanks: 7
Thanked 266 Times in 241 Posts
Can you run the following two commands and copy/paste their output?


Code:
echo $PS1
echo $PS2

Sponsored Links
    #6  
Old 03-19-2013
greenworld123 greenworld123 is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 30 May 2014, 6:42 AM EDT
Posts: 58
Thanks: 15
Thanked 0 Times in 0 Posts
The output of above command is


Code:
/home/emp002198> echo $PS1
$PWD>
/home/emp002198> echo $PS2
>
/home/emp002198>

Sponsored Links
    #7  
Old 03-21-2013
hanson44 hanson44 is offline
Registered User
 
Join Date: Mar 2013
Last Activity: 12 May 2013, 11:33 PM EDT
Posts: 858
Thanks: 18
Thanked 180 Times in 177 Posts
Any chance the vim is called from within a script?

What does following say?

Code:
file -L `which vim`

--------------------

Did it previously work? If so, what might have changed?

--------------------

Maybe something to do with $TERM but does not seem that likely and is complex subject.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
the turn on color in vim editor ascetic UNIX for Dummies Questions & Answers 11 08-04-2010 05:23 AM
vim editor -> uncounted new line prostiiinet UNIX for Advanced & Expert Users 3 03-24-2010 04:57 PM
Ctags in VIM Editor shahsm UNIX for Advanced & Expert Users 1 02-03-2008 11:44 PM
vim as command line editor tony3101 UNIX for Dummies Questions & Answers 1 04-16-2004 05:50 AM
vim editor bb00y Programming 7 10-05-2002 12:36 AM



All times are GMT -4. The time now is 09:24 AM.