LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-06-2003, 03:21 PM   #1
jules_fraser
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77

Rep: Reputation: 15
Unhappy [CLOSED] Vim editor, right hand bottom number count


For some reason, I have lost the number count that usually appears in the bottom right hand corner of my Vi text editor. Any ideas as to how I can get this back as I need to edit a very large .cf file and am completely lost without this navigational aid. J

Last edited by jules_fraser; 04-08-2004 at 04:55 PM.
 
Old 12-06-2003, 03:40 PM   #2
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 45
:set ruler on

type that into either your vimrc file or just open any file with vim and type it in
 
Old 12-06-2003, 04:00 PM   #3
jules_fraser
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77

Original Poster
Rep: Reputation: 15
Have done this and it says "Unknown option: on" thx
 
Old 12-06-2003, 04:05 PM   #4
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 45
:set ruler


 
Old 12-06-2003, 04:07 PM   #5
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 45
It's

:set ruler

You can make it permanent by adding to the ~/.vimrc file

set ruler

Last edited by darthtux; 12-06-2003 at 04:09 PM.
 
Old 12-06-2003, 04:27 PM   #6
jules_fraser
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77

Original Poster
Rep: Reputation: 15
Have also done this and nothing happens. Have used Vim for yrs and have just reinstalled my server cos of disk space issues and now I have this issue. How do I check the version number, I am running RH v7.2?
 
Old 12-06-2003, 04:31 PM   #7
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 45
vim --version
 
Old 12-06-2003, 04:31 PM   #8
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 45
version number of:

vim = vim --version
distro = cat /etc/issue
 
Old 12-06-2003, 04:35 PM   #9
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 45
h/w,

we seem to be typing at the same time
 
Old 12-06-2003, 04:38 PM   #10
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 45
yes, indeedy. im kinda bored. and responding to nearly everything.
 
Old 12-06-2003, 04:42 PM   #11
jules_fraser
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77

Original Poster
Rep: Reputation: 15
Oh thanks!!!

Anyway, version is 5.8, any other help that can be bestowed on this poor irritable newbie?
 
Old 12-06-2003, 04:47 PM   #12
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 45
lol - nothing irritable about asking questions when we're stuck. look at my question i just posted on the programming forum, and see who is irritating. lol.

do you have a .vimrc file under ur home directory? see if it is. maybe its picking up some setting from there? and if there isn,t just make one, and put :set ruler in.
 
Old 12-06-2003, 05:07 PM   #13
jules_fraser
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77

Original Poster
Rep: Reputation: 15
Hey mate, have created this .vimrc file in the home directory of root where I mainly work and have started Vi but nothing appears. The weird thing is also that certain .cf files that I used to edit would show up in different colours such as dark blue and tan brown to differentiate between commands and just text. Now the text is all white.

Perhaps this will give a clue...
 
Old 12-06-2003, 05:27 PM   #14
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 45
cp /usr/share/vim/vim58/vimrc_example.vim ~/.vimrc

Then add
set ruler
 
Old 12-06-2003, 06:10 PM   #15
jules_fraser
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77

Original Poster
Rep: Reputation: 15
sorry I cannot see where you are copying to as there appears not to be a break in the line
 
  


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
count total number of lines in several files xushi Programming 5 11-12-2005 04:42 PM
Javasript to count number of mouse clicks LinuxLala Programming 3 06-17-2005 12:23 AM
How to count number of argument received by a script? philipina Linux - General 2 07-05-2004 02:35 AM
C++ STL count() number of substring occurences... nyk Programming 4 06-25-2004 07:12 AM
Count number of line in a file. philipina Programming 7 03-18-2004 05:04 PM


All times are GMT -5. The time now is 11:46 AM.

Main Menu
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