Sunday, October 2, 2011

Re: Vim 7.2 on CentOS 6 - set ruler has no effect

On 02/10/11 18:24, Ismail, Mohd F. wrote:
> Hi Tony,
>
> When I type that command in vim window, it gives me nothing. It just returns the cursor position to its initial position. Am I supposed to type it some where else?

You should be using Vim in Normal mode, then type

:echo has('cmdline_info')

followed by hitting Enter. A 0 (zero, meaning "no") or a 1 (one, meaning
"yes") should appear at bottom left of your Vim screen. Anything you
type will make it disappear again.

>
> Hi Ben Fritz,
>
> I looked into the vimrc and there is no statusline keyword anywhere in the file. I didn't customize my vi and just use what ever was set up by CentOS people.

Aha! Is it ~/.vimrc or $VIM/vimrc or /etc/vimrc or something else? If
anything but the first of these, Vim will be in 'compatible' mode by
default. What do you see at the bottom of the screen if (in Normal mode)
you type

:verbose set ruler?

(with the question mark), followed by hitting the Enter key?

>
> --Farid

Oh, and BTW, the custom of these lists is to reply below, not above, the
text you're replying to.


Best regards,
Tony.
--
Idiot, n.:
A member of a large and powerful tribe whose influence in human
affairs has always been dominant and controlling.
-- Ambrose Bierce, "The Devil's Dictionary"

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment