3
2
I installed vim-gnome on ubuntu. I notice that things I put in my $HOME/.vimrc file, like colorscheme and so on, are being overwritten by something else. If I start Vim, another colorscheme is used, but if I then do ":source ~/.vimrc", the settings that I want load properly.
Here's my .vimrc:
set t_Co=256
set paste
set number
syntax on
colorscheme zenburn
When I do :scriptnames, I see what seems to me to be a lot of things being run on startup (it takes a couple of seconds too...):
1: /usr/share/vim/vimrc
2: /usr/share/vim/vim72/debian.vim
3: /usr/share/vim/vim72/syntax/syntax.vim
4: /usr/share/vim/vim72/syntax/synload.vim
5: /usr/share/vim/vim72/syntax/syncolor.vim
6: /usr/share/vim/vim72/filetype.vim
7: /etc/vim/vimrc.local
8: /home/tom/.vim/colors/zenburn.vim
9: /home/tom/.vimrc
10: /usr/share/vim/vim72/syntax/nosyntax.vim
11: /home/tom/.vim/plugin/CSApprox.vim
12: /home/tom/.vim/plugin/Light.vim
13: /home/tom/.vim/plugin/codeburn.vim
14: /home/tom/.vim/colors/Light.vim
15: /home/tom/.vim/autoload/csapprox.vim
16: /home/tom/.vim/plugin/coffee.vim
17: /home/tom/.vim/plugin/color_sample_pack.vim
18: /home/tom/.vim/plugin/ir_black.vim
19: /home/tom/.vim/colors/coffee.vim
20: /usr/share/vim/vim72/plugin/getscriptPlugin.vim
21: /usr/share/vim/vim72/plugin/gzip.vim
22: /usr/share/vim/vim72/plugin/matchparen.vim
23: /usr/share/vim/vim72/plugin/netrwPlugin.vim
24: /usr/share/vim/vim72/plugin/rrhelper.vim
25: /usr/share/vim/vim72/plugin/spellfile.vim
26: /usr/share/vim/vim72/plugin/tarPlugin.vim
27: /usr/share/vim/vim72/plugin/tohtml.vim
28: /usr/share/vim/vim72/plugin/vimballPlugin.vim
29: /usr/share/vim/vim72/plugin/zipPlugin.vim
I guess some of these are overriding the things loaded from .vimrc. (CSApprox is one that I have in my .vim/plugins, but most of the others I haven't "chosen" to run at startup.
How can I change this so that what's in .vimrc overrules the other stuff? (Or, how can I stop so much stuff from being run at startup?)
Yes, doing this solved the problem. Thanks a lot!! – Tancata – 2011-02-26T18:41:29.477
@Tancata: colorscheme files belong in your /home/tom/.vim/colors directory. – garyjohn – 2011-02-26T19:38:18.237