On 2010-02-15, Eric Beard wrote:
> I am running Unbuntu 9.10 and gvim 7.2 (2008 Aug 9). I started gvim from my
> $HOME directory and I changed the color via the Edit window. I then did a
> :mkv
> to save off the .vimrc file. When I closed and restarted gvim it didn't
> appear
> to pick up the changes in the file. Any clues as to what I might have done
> wrong?
Vim's color scheme does not result from setting an option; it
results from sourcing a color scheme file that executes a number of
:highlight commands. The results of those highlight commands are
not among the information saved by the :mkvimrc command. See
:help :mkvimrc
The way to have a color scheme set automatically when you start Vim
is to edit your ~/.vimrc file and add a :colorscheme command there.
See
:help :colorscheme
Using :mkvimrc to save your settings is probably OK when you're
just starting to use Vim, but as you gain experience
you'll find :mkvimrc is not very useful except perhaps as a
troubleshooting aid. This is because :mkvimrc doesn't save
everything you will want to have in your ~/.vimrc, such as
colorscheme settings and comments.
Regards,
Gary
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php