LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-10-2009, 02:33 AM   #1
tnma
LQ Newbie
 
Registered: Dec 2009
Posts: 1

Rep: Reputation: 0
vim color schemes only work with sudo


Hi, I'm having problems with vim on gnome-terminal (xterm-256color, zsh).
Running $vim file.c, then :colorscheme <something> doesn't work. But with $sudo vim file.c, color schemes work just fine
Putting set t_Co=256, colorscheme <something> in ~/.vimrc doesn't help either. Any ideas?

Thanks.
 
Old 12-10-2009, 11:13 AM   #2
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
Make sure your colorscheme is available for the user you are trying to run vim as. It appears, you might have placed the colorscheme file for root (i.e.: usually /root/.vim/colors). If this is the case you can,

1. either copy the colorscheme to ~/.vim/colors/ (i.e.: /home/yourusername/.vim/colors) or
2. copy the colorscheme file to the colors dir where the system wide config files are (Eg: in Fedoras case it's /usr/share/vim/vim72/colors/)

Then set the colorscheme as usual using config files.
 
  


Reply

Tags
vim


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Script to change the Color Schemes in KDE Automatically AJones Linux - Software 3 11-24-2009 03:04 AM
emacs color schemes Four Linux - Newbie 1 10-19-2006 01:11 PM
emacs color schemes Four Linux - Newbie 2 10-08-2006 03:53 PM
How can i make Vim work in 256 color mode ? landuchi Linux - Software 4 01-30-2006 09:14 PM
dark color schemes-white text doesnt show up in firefox, etc aw76 Linux - General 5 12-01-2005 11:16 AM


All times are GMT -5. The time now is 10:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration