On Wednesday 23 February 2005 12:08, Lance A. Brown wrote:
> > I do have those lines in /etc/vimrc but it is still all white when I sudo
> > vi a file? What changes when sudo? Does it not pull from the global
> > config in /etc/vimrc?
>
> Most likely, vi is actualy an alias for vim. When you 'sudo vi fubar', the
> sudo isn't picking up the alias so you actually run 'vi' instead of 'vim'.
>
> --[Lance]
>
Lance, I think you are right.
As me,
$ which vi
alias vi='vim'
/usr/bin/vim
w/ sudo
$ sudo which vi
/bin/vi
So, I know I should know this but, where are these aliases set so I can
configure one for root also?
H. Crissman
--
TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc