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.

In my OSX box, I want to see the same cursor details that I see down in right-corner of my Ubuntu vim.

In my ubuntu box, this status line (maybe it isn't technically the "vim status line", I don't know) shows by default, and is on the same line and to the right of the command-line (i.e. what shows up after typing ":").

In my OSX box, I can only get the status line to show up above the command-line via something like:

set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%l,%v][%p%%]\ %{strftime(\"%d/%m/%y\ -\ %H:%M\")}
set laststatus=2
share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

Does this do what you want?

:set ruler
share|improve this answer
    
Yep, that was exactly what I needed. I realized it shortly after posting my question, hence answering it myself :) I'll give you the right answer though. Thanks for the reply –  Dolan Antenucci Jul 21 '11 at 19:53
    
i've tried it on 2 macbook, it doesn't work.. –  Chan Van Hong Le Aug 3 '13 at 6:29
    
i find out the reason, set paste reset the value of set ruler –  Chan Van Hong Le Aug 3 '13 at 6:36
add comment

Not sure why I missed this while reading documentation, but set ruler is the option I was looking for.

share|improve this answer
    
Discovered this by pasting a "recommended" vim setup into my ~/.vimrc file, and all of a sudden, that feature was there. Clever vim folk. –  Dolan Antenucci Jul 21 '11 at 19:07
add comment

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.