Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

At work most web-development we do, is done in vi/vim, on a debian-server.

Sometimes we have to alter some files as root, and the syntax-highlighting-model of that user (root) is absolutely awesome. My problem is that the guy that set the syntax has gone, and I have absolutely no idea where the highlighting is defined.

So, if I wanted to know what kind of syntax is used by a particular user (in vi/vim), where should I look, or what command should I type to get those pretty (and eye-friendly!) colours whenever I use my personal user to edit stuff?

share|improve this question
@Lance Thank you for fixing my typos :) – Marcus Hansson Aug 9 '11 at 11:13
up vote 3 down vote accepted

You should look in the same place you would have configured your vim environment if you were that user, the .vimrc file, .gvimrc file, and .vim directory in that users home directory. For the root account, on a linux host that's likely to be /root/.

Make sure you're authorized to go poking around in there before you do so.

share|improve this answer
Both this and the answer below is awesome, wish I could tag both as the answer. Anyway, although this probably is a bit more permanent a solution than getting the colour-scheme, I'm not that fond of editing (or reading, listing, looking at, thinking of and/or writing about) files I´m not explicitly supposed to touch since there´s some pretty business-critical stuff on that server, I will probably try getting the colour-scheme before poking my nose around where I shouldnt! – Marcus Hansson Aug 9 '11 at 22:06
@Marcus Hansson if you like it, accept one . – Hari K T Aug 16 '11 at 8:29

One year and half I had to struggle with a "black box" made by someone who left the company. I felt a little bad about it because it was too obvious that what it did and how it did it was a large bit over my head. After too much hair-pulling I decided to hit the Human Resources for the guy's phone number.

I called him 5 minutes after.

Problem solved.

But Dyslexic Tangent's advice seems the most reasonable to me.

Also you can type :echo g:colors_nameto get the name of the colorscheme in use. Maybe you can find it on

share|improve this answer
:echo g:colors_name pretty much what I was looking for! Although, as you said, @Dyslexics answer probably solves the problem in a more, ahem, permanent way, this is way the lazy man will walk (IE moi). – Marcus Hansson Aug 9 '11 at 22:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .