Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've noticed VIM on my Mac doesn't have the line/column numbers in the bottom-right corner of the window whereas VIM on Ubuntu does. Is there a profile setting I can use to get my Mac to show these numbers?

share|improve this question

3 Answers 3

up vote 10 down vote accepted

Try the command ":set ruler".

share|improve this answer

You want to configure your statusline in .vimrc, with %l and %c denoting lines and columns, respectively. http://vim.runpaint.org/display/changing-status-line

share|improve this answer

As Heptite described, the command :set ruler results in the line/column information I was looking for. If you want to make this behavior permanent, edit your ~/.vimrc file to include the following line:

set ruler
share|improve this answer
    
at first I didn't have a ~/.vimrc, I only had a ~/.viminfo and I tried to edit that but it silently failed saving my changes. So I had to create a new file at ~/.vimrc and it's working great! –  Patrick Apr 27 '12 at 18:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.