Monday, November 7, 2016

Re: default.vim getting sourced even when vimrc is present

Karthick Gururaj wrote:

> I just installed the 80-069 version of the MS-Windows Vim installer. I see
> the scrolloff option is being set to "5" due to defaults.vim getting
> sourced.
>
> :verbose set scrolloff?
> Shows,
> scrolloff=5
> Last set from C:\Program Files (x86)\Vim\vim80\defaults.vim

[...]

> In my case, $VIM/_vimrc file *is* present, still defaults.vim is getting
> sourced.
>
> Maybe even more strangely, defaults.vim is getting sourced even if I do a,
> :let skip_defaults_vim=1
> In the last line of my $VIM/_vimrc file

Can you check the output of ":scriptnames" and see what comes before
defaults.vim?

Looking at the code, if that $VIM/_vimrc file is found it should not
load defaults.vim.

--
It's totally unfair to suggest - as many have - that engineers are socially
inept. Engineers simply have different objectives when it comes to social
interaction.
(Scott Adams - The Dilbert principle)

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: