Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Search Forums:



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-19-2010
Registered User
 

Join Date: Jan 2010
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Continuously display the file name in vim

Hi All,

In vim, when we press ^G, the file name is displayed at the bottom of the screen and as soon as we enter into some other mode (say e.g. Insert), the file name is replaced by the words "Insert". I was just wondering whether it is possible to continuously show the file name no matter which mode we are in?

Thanks in advance.
Sponsored Links
    #2  
Old 03-19-2010
thillai_selvan's Avatar
Registered User
 

Join Date: Feb 2010
Location: Chennai
Posts: 190
Thanks: 0
Thanked 1 Time in 1 Post

Code:
set modeline
set ls=2

Add this line into your .vimrc file.
Now you can see the file name in the bottom always.

Last edited by thillai_selvan; 03-19-2010 at 03:49 AM..
Sponsored Links
    #3  
Old 03-19-2010
karthigayan's Avatar
Registered User
 

Join Date: Apr 2009
Location: India , Chennai
Posts: 137
Thanks: 0
Thanked 3 Times in 3 Posts
Add this in your vimrc , you will have the file name in the bottom .


Code:
set ls=2

    #4  
Old 03-19-2010
Registered User
 

Join Date: Jan 2010
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks thillai_selvan and karthigayan.

The solution Rocks!!
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
Parsing log file continuously rchaitanya UNIX for Dummies Questions & Answers 5 02-15-2010 10:19 AM
Shell Script to continuously scan a log file novice82 Shell Programming and Scripting 1 10-09-2009 01:03 AM
"lpr.error] Warning: Received SIGPIPE" continuously appearing in logs aussieos Solaris 4 07-20-2009 03:12 AM
display the userid's of a file raidkridley UNIX for Dummies Questions & Answers 5 10-21-2008 02:52 AM
Display a particular line from a file Rohini Vijay Shell Programming and Scripting 5 07-31-2006 07:27 AM



All times are GMT -4. The time now is 03:51 AM.