LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-22-2004, 11:55 AM   #1
chunlee
Member
 
Registered: Jun 2004
Location: london
Distribution: gentoo
Posts: 114

Rep: Reputation: 15
little questoin about vimrc.....


hi there:

jsut got a little question about using vimrc for gvim.

i have added 'colorscheme' into vimrc, which lives at /etc/vimrc. the problem is that the colorscheme i added is only loaded if i start gvim as root, that is after i do 'su -'. if i start gvim before 'su -', the colorscheme is not loaded. why is this?

cheers

CHUN
 
Old 06-22-2004, 05:55 PM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
Hmm. You might want to check the permissions of the global config file (/etc/vimrc or whatever it is on your system).

I have it set up like this - I have a ~/.vimrc that is sourced by ~/.gvimrc so that I keep all the common options in ~/.vimrc and the ones specific to the graphical interface in ~/.gvimrc. This way vim behaves like I expect it to whether it's in graphical mode or not.
My current ~/.vimrc on my laptop:
Code:
set nocompatible
syntax on
set ic
set ts=4
set softtabstop=4
set shiftwidth=4
set mouse=a

let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplMapCTabSwitchBuffs = 1
let g:miniBufExplModSelTarget = 1
...and my simple ~/.gvimrc:
Code:
source ~/.vimrc
set guifont=ProFont\ 11
colo oceandeep
Håkan
 
Old 06-22-2004, 07:06 PM   #3
chunlee
Member
 
Registered: Jun 2004
Location: london
Distribution: gentoo
Posts: 114

Original Poster
Rep: Reputation: 15
cheers, got it now from the other thread i posted.
 
  


Reply


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
.vimrc trouble ( Please help ) raees Linux - General 1 04-14-2004 11:53 AM
Need RedHat .vimrc Glock Shooter Linux - General 1 11-11-2003 12:51 AM
Questoin Doddkue Linux - Hardware 1 11-04-2003 10:42 AM
screwed up .vimrc ashesh Linux - General 2 08-23-2003 11:00 AM
Again C++ questoin Mohsen Programming 1 08-21-2003 02:07 PM


All times are GMT -5. The time now is 09:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration