[FC4] [VIM] Problem with color syntax and other under root

Constantin CHARISSIS cch at dataswift.fr
Mon Oct 10 19:42:55 UTC 2005


Thanks all for the answers, it's working.

I didn't remember having that alias "problem" under FC2.


> -----Message d'origine-----
> De : fedora-list-bounces at redhat.com 
> [mailto:fedora-list-bounces at redhat.com] De la part de Gilboa Davara
> Envoyé : samedi 8 octobre 2005 10:24
> À : For users of Fedora Core releases
> Objet : Re: [FC4] [VIM] Problem with color syntax and other under root
> 
> This is because as user, *vi* is aliased to *vim* (AKA VI enhanced).
> As root, when you type vi, you actually run the normal 
> syntax-color-less vi.
> 
> As for the original question.
> Make you start vim.
> If syntax coloring still fails, type :syntax enable
> 
> Gilboa
> 
> On Fri, 2005-10-07 at 23:06 -0500, Justin Willmert wrote:
> > Richard England wrote:
> > > Constantin CHARISSIS wrote:
> > > 
> > >> Hi,
> > >>
> > >> I have a problem with color syntaxing not working under vim only 
> > >> with the root user.
> > >> Autoindent/smartindent is also not working under root only
> > >>
> > >> .vimrc of both root and normal user :
> > >>
> > >> set nocompatible
> > >> set bs=2
> > >> set expandtab
> > >> syntax on
> > >> set tabstop=2
> > >> set autoindent
> > >> set smartindent
> > >> set shiftwidth=2
> > >> set ruler
> > >> set showmatch
> > >> set encoding=latin9
> > >> set fileencodings=latin9
> > >>
> > >> TERM=linux for both
> > >>
> > >> With the user : color syntax and indent is working With root : 
> > >> color syntax and indent is not working
> > >>
> > >> What is strange is that my 2 chars tab is working under root...
> > >>
> > >> I'm running FC4 i386 updated.
> > >>
> > >> [root at tux ~]# rpm -qa "vim*"
> > >> vim-minimal-6.3.086-0.fc4
> > >> vim-enhanced-6.3.086-0.fc4
> > >> vim-common-6.3.086-0.fc4
> > >>
> > >> Using "strace vim" under root shows that vim reads the .vimrc 
> > >> without problem.
> > >>
> > >> Any idea about this problem ?
> > >>
> > >> Constantin Charissis
> > >> DATASWIFT
> > >>  
> > >>
> > > Constantin,
> > > 
> > > Are you certain your path for root and user are letting 
> you get to 
> > > the same version of VIM?
> > > 
> > > If you have not found a solution, you might consider 
> visiting  this 
> > > URL http://www.vim.org/community.php and subscribing to the VIM 
> > > mailing list.  It's at least as helpful as this one and 
> more likely 
> > > to help you solve a VIM specific issue.
> > > 
> > One peculiarity I found was that as any normal user, you 
> can just type 
> > vi and a file name and syntax highlighting is on 
> automatically. With 
> > root, you have to type vim. I don't know why this is, but I'm just 
> > passing on what I've figured out.
> > 
> > Hope that helps,
> > Justin Willmert
> > 
> 
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
> 





More information about the fedora-list mailing list