Hi Tim,

On 7/15/2011 3:20 AM, Tim Chase wrote:
On 07/14/2011 12:58 PM, Gelonida N wrote:
When I connect as one user I can access thevim command
history.

I press ':' and then the cursor-up key to get to the previous
command, that I typed.

when I connect on the same host as user root (I use su -)

I the terminal displays<UP> after the ':' character instead
of showing the command history

What could be the reason for this?

both users don't have a ~/.vimrc

The first thing I would do is compare the output of

:version

for both cases. I would then check your $PATH as the user and as root,
as well as the output of "alias" at the command-prompt to see if one of
the users is running a different binary than the other. I'm making the
assumption that both are being invoked the same (whether as "vi" or as
"vim"). It *sounds* like one is pointed at a tiny build of Vim while the
other is pointed at a more full-featured build of Vim.

And when you say that neither user has a .vimrc, would one have a .vimrc
that is present-but-empty, or does the ~/.vimrc not exist in both cases?

Your answer is soo obvious. :-( . . . and of course you're right :-) .

One user had an alias 'vi=vim' (/usr/bin/vim), the other
uses directly vi (/bin/vi)

both are in fact vim, but different versions as you assumed.


Thanks again for putting me on the right path.

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

Reply via email to