[TriLUG] Re: FC3 changes

H. Crissman hcrissman at secure-mind.net
Wed Feb 23 15:01:27 EST 2005


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



More information about the TriLUG mailing list