You are not logged in.
Yesterday I created a fresh Arch installation from 2016.08, and noticed some peculiar behavior. Out-of-the-box, vim had a number of defaults changed: syntax highlighting, expanding tabs, autoindent, etc. After just creating a ~/.vimrc--even with no content--all of those are lost, and vim reverts to its standard settings: no highlighting, hard tabs, etc. Is this intended behavior? I tried adding "source /etc/vimrc" to the top, but that didn't help.
Last edited by kinghajj (2016-08-26 18:20:07)
Offline
It's due to /usr/share/vim/vim74/defaults.vim
" This is loaded if no vimrc file was found.
(/etc/vimrc doesn't count apparently)
I haven't run vim without a .vimrc for a long time so I don't know if it's the content of defaults.vim or the fact that it gets sourced that's new.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Thanks! Adding "source $VIMRUNTIME/defaults.vim" to the top of my ~/.vimrc did the trick.
Offline