Unix/Linux 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 Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 03-15-2013
greenworld123 greenworld123 is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 12 December 2014, 9:30 AM EST
Posts: 59
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 Unix and Linux 03-15-2013
fpmurphy's Unix or Linux Image
fpmurphy fpmurphy is offline Forum Staff  
who?
 
Join Date: Dec 2003
Last Activity: 18 April 2015, 9:58 AM EDT
Location: /dev/ph
Posts: 4,909
Thanks: 68
Thanked 452 Times in 420 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 Unix and Linux 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 181 Times in 178 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 Unix and Linux 03-18-2013
greenworld123 greenworld123 is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 12 December 2014, 9:30 AM EST
Posts: 59
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 Unix and Linux 03-18-2013
durden_tyler's Unix or Linux Image
durden_tyler durden_tyler is offline Forum Advisor  
Registered User
 
Join Date: Apr 2009
Last Activity: 5 April 2015, 4:04 PM EDT
Posts: 1,904
Thanks: 9
Thanked 285 Times in 259 Posts
Can you run the following two commands and copy/paste their output?


Code:
echo $PS1
echo $PS2

Sponsored Links
    #6  
Old Unix and Linux 03-19-2013
greenworld123 greenworld123 is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 12 December 2014, 9:30 AM EST
Posts: 59
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 Unix and Linux 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 181 Times in 178 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 Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Unix or Linux Image 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 11:05 PM.