Thursday, May 26, 2011

Trouble with VIM and some "hidden" vimrc file

I have been using vim for years and I love it. My problem is: it seems
that my vim is using an "old" _vimrc file "hidden" somewhere rather
than the one in the vim directory.

Here is a detailed description of my whole process of finding the problems:
It was vim7.2  win32 version on my windows 64 system. I have been
using it for years but just realized none of my source code was
indented with spaces. So I went to check the _virmrc file on the
directory installed vim, but it clearly shows:

set expandtab
set shiftwidth=2
set softtabstop=2

I then uninstalled vim7.2 (including other plugins etc) and
reinstalled vim7.3. When I use it to open some text file, it says it
can not find the colorscheme "blacklight", meanwhile the font is Dina.
These colorscheme and font are those I used before unstalling vim7.2.
It is obviously that the fresh vim7.3 is still using that _vimrc file
(hidden somewhere, not uninstalled but in windows registry?) rather
than the default one which is in the vim directory. Then it also
becomes clear why the indentation by spaces configuration did not
work: the hidden _vimrc does not set expandtab!

It will be very appreciated if you give my any suggestion.

Thanks.

Denzel

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: