line numbers

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

line numbers

M.N.A.Smadi
hi;
am logged to a remote machine and using vim and i dont seem to have line
number in the lower right hand corner which is strange.  when i
initially open the file i am told the number of lines in the file in the
lower left hand corner but as i scroll down it is gone and the regular
counter never shows up.  Any clue?


thanks
moe smadi
Reply | Threaded
Open this post in threaded view
|

Re: line numbers

Sean Hubbell
M.N.A.Smadi wrote:

> hi;
> am logged to a remote machine and using vim and i dont seem to have
> line number in the lower right hand corner which is strange.  when i
> initially open the file i am told the number of lines in the file in
> the lower left hand corner but as i scroll down it is gone and the
> regular counter never shows up.  Any clue?
>
>
> thanks
> moe smadi
>
>
You might need to turn on the ruler by adding set ruler to the .vimrc
(*nix) or  _vimrc (M$Windows).

:he ruler

Sean
Reply | Threaded
Open this post in threaded view
|

Re: line numbers

A.J.Mechelynck
In reply to this post by M.N.A.Smadi
M.N.A.Smadi wrote:

> hi;
> am logged to a remote machine and using vim and i dont seem to have line
> number in the lower right hand corner which is strange.  when i
> initially open the file i am told the number of lines in the file in the
> lower left hand corner but as i scroll down it is gone and the regular
> counter never shows up.  Any clue?
>
>
> thanks
> moe smadi
>
>
>

Several options influence this display; so first, try

        :verbose set ruler? rulerformat? laststatus? statusline?

to see how they are currently set, and which script (if any) did it.
(Don't forget the question marks.)

Setting 'laststatus' to 2 will give you a status line at the bottom of
each window, even the bottom one and even if there are no split windows.

'statusline' defines the contents of status lines; if empty you get the
default, which includes the cursor position near the right end.

Setting 'ruler' on will give you a "ruler" display on the command-line
when the current window has no status line.

'rulerformat' defines the contents of that "ruler"; if empty you get the
default, which includes the cursor position.

If you want these settings to be permanent, you can place them in your
vimrc (a file, usually named something like [in Vim parlance] ~/.vimrc,
~/_vimrc or $VIM/_vimrc).


HTH,
Tony.