[lfs-dev] vim config suggestion

Wayne Blaszczyk wblaszcz at bigpond.net.au
Tue Jan 30 12:43:55 PST 2018


On Tue, 2018-01-30 at 10:48 -0600, Bruce Dubbs wrote:
> Wayne Blaszczyk wrote:
> > Hi,
> > 
> > Can I propose adding the following line to /etc/vimrc:
> > 
> > let skip_defaults_vim=1
> > 
> > This fixes the following issue:
> > Creating an empty ~/.vimrc prevents vim from overriding settings in /etc/vimrc by using /usr/share/vim/vim80/defaults.vim.
> > 
> > More info can be found here:
> > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864074
> 
> Interesting.  I am thinking that there may be initialization in 
> /usr/share/vim/vim80/defaults.vim that is useful, but the /etc/vimrc 
> should be able to supersede it.
> 
> What do you think about adding to the start of /etc/vimrc:
> 
> source $VIMRUNTIME/defaults.vim
> let skip_defaults_vim=1
> 
> " rest of /etc/vimrc
> 
>    -- Bruce
> 

That looks reasonable although 'yet to be tested'.
I'll put it into my config and see if there are any 
detrimental effects.
Are you sure that $VIMRUNTIME is set at this point time (boot time)?
$VIMRUNTIME is not set for me at a terminal session.
Where is it set?

Regards,

Wayne.



More information about the lfs-dev mailing list