4 ms·
“:set hlsearch” in pretty much any version of vim. (I don't know if vim 9.0 changed the default or not.)
by Sesse__ 2y ago
“:set hlsearch” in pretty much any version of vim. (I don't know if vim 9.0 changed the default or not.)
- wruza 2y agoNo, it didn't. Vim rarely changes defaults, if at all, but it can add settings to example rc files.
- hiAndrewQuinn 2y agoThat's very odd, then... I definitely remember hlsearch being off in Vim 8, and on in Vim 9. Either way thank you! Now I have even less reason to notice.
- johnisgood 2y agoProbably distro-specific, so up to package maintainers.
- setopt 2y agoNote that some Linux distros provide their own versions of vimrc that overrides the upstream default settings. Note also that newer Vim versions come with a "defaults.vim" that you can load if you want, containing arguably sensible inoffensive defaults; if you or your distro loaded that, it might contain hlsearch as well.