Most likely you have gdefault
installed in .vimrc
.
From :help gdefault
:
When on, the ":substitute" flag 'g' is default on. This means that all matches in a line are substituted instead of one. When a 'g' flag is given to a ":substitute" command, this will toggle the substitution of all or one match.
If you do not install this in your configuration, you can see where it is installed by issuing :verbose set gdefault?
.
source share