Hi Tim, Bram, In a "gradient minimalist" mode of vim, devoid of plugins, it might be interesting to have a file that contains the necessary facilities by default. In particular facilities, features allowing you to switch from this minimalist Vim mode to a more extensive mode including personal plugins and other functions...
As long as the defaults.vim file is in the same folder as $MYVIMRC, is the defaults.vim file sourced on Vim startup? I personally need this functionnality : in Vim minimalist "*degraded*" mode : *defaults.vim* is the only in $vim so facilities *it *is embedding are sourced in Vim extended "*operational*" mode : *both **defaults.vim* *and **_vimrc *are in $vim, so facilities *_vimrc *is embedding are sourced. Is it possible Bram ? Thank you Nicolas Le mercredi 10 août 2022 à 15:21:50 UTC+2, Tim Chase a écrit : > On Wed, Aug 10, 2022 at 11:07:55AM +0100, Bram Moolenaar wrote: > >Tim Chase wrote: > >> Yep, as Yegappan found, this bug is tracking the issue at hand: > >> > >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251420 > >> > >> I've got a FreeBSD Bugzilla account and will follow up there. > [snip] > > An alternative would be to check if ~/.vimrc exists, and only load > > defaults.vim then. Then it's closer to what Vim normally does (but then > > the overrides may still confuse the user). > > That's one of the solutions I proposed in that bug-tracking URL, > though it's complicated because it's not just a .vimrc but according > to docs, but it sounds like ~/.vim/vimrc or ~/_vimrc or ~/.exrc or > ~/_exrc or $MYVIMRC or $VIMINIT or $VIM or $EXINIT might also prevent > defaults.vim from loading. And I'm not 100% certain that list is > complete. > > So it sounds like it would require a big chained if-statement testing > filereadable() on all of those sources and only sourcing defaults.vim > if *none* of them exist. > > -tim > > > > > -- -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/ec8e2445-8da6-47bb-b30c-ce6fe8c861e8n%40googlegroups.com.