On Wed, Jul 27, 2016 at 10:43 AM, Gary Johnson <garyj...@spocom.com> wrote:

> On 2016-07-27, Manuel Ortega wrote:
>
> > If "syntax on" is in the system vimrc as proposed, then I can't seem to
> find
> > any way *at all* to disable the loading of the system menu.vim (short of
> > unacceptable hacks like bash-aliasing 'vim' to 'vim -u ~/.vimrc'.)
>
> How about "sudo rm /usr/share/vim/vimrc"?
>

That falls under "unacceptable hacks", since it needs to be done every time
a fresh vim is installed.


Another, less drastic way would be to create a file,
> ~/.vim/ftdetect/guioptions.vim, containing this:
>
>     set guioptions+=M


This is clever.  A trick like this should be added to the documentation
(not for my situation, but as a general way of beating a system-vimrc to
the punch).  ":helpgrep ftdetect" provides no hint as to why this would
work.  I assume that whatever is in ~/.vim/ftdetect is loaded before a
system vimrc, but ":help initialize" doesn't say anything about this AFAICT.

As hacks go, it's not as bad as the others.

-Manny

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui