Peter Berntsen wrote:
Running 7.2.245 under Slackware Linux 13.0 and I have noticed that
my .vimrc file doesn't seem to be read. For example to not keep a
backup file I comment out the code for that in the vimrc file like
this.
"if has("vms")
" set nobackup " do not keep a backup file, use versions
instead
"else
" set backup " keep a backup file
"endif
this only works when it is done in the /usr/share/vimrc file and not
if it is done in the ~/.vimrc file.
Is there something I have overlooked or is this a bug in version
7.2.245?
Peter,
I notice the following preprocessor macro in feature.h: USR_VIMRC_FILE.
A quick glance at the source seems to indicate that it will be set to
$HOME/.vimrc (for Unix anyway) if it's not overridden. This preprocessor
macro is not even mentioned in the Makefile, and the helpfile doesn't
indicate that $HOME/.vimrc is configurable, so I'm guessing that
USR_VIMRC_FILE is not intended to be overridden casually. Although it
seems a bit strange (at least for a distribution not designed to be used
in a corporate environment), I suppose it's possible that the creators
of your distribution overrode USR_VIMRC_FILE to point to a system-wide
.vimrc. If so, I would suspect (but haven't verified) that you could
tell it from the output of :version.
Hope it helps...
Brett Stahlman
regards Peter
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php