Could somebody explain, why some people add
set ruler
syntax on
to their vimrcs? Aren't these settings are already enabled by default? Is there an objective reason for it?
There is defaults.vim
that is being sourced when you don't have your own vimrc.
It sets syntax on
and set ruler
.
So if you have your own vimrc and you would not set those, then you would not have syntax highlighting and a ruler.
Check :h 'ruler'
for example:
'ruler' 'ru' boolean (default off, set in |defaults.vim|)
And there you can follow defaults.vim
link and read about it.
Also you can :e $VIMRUNTIME/defaults.vim
to see what exactly is set up when you don't have any vimrc.
defaults.vim
, I simply don't see a reason to not use it.
Commented
Sep 4, 2021 at 12:20
syntax enable
, it cooperates better.