I like the incsearch and hlsearch options in Vim, so early on in my
.vimrc file, I have the following lines:
augroup allfiles autocmd FileType * :set nocindent noexpandtab incsearch hlsearch augroup END
For most file formats (e.g., any
.pl file, and for
.vimrc itself), this works fine, but when I'm editing a
.csv file (often exported by Excel, but not always), these options aren't on when I start Vim. I can manually enable them, but I usually forget until I've already started trying to search for something, and then I have to stop what I'm doing and enable those options.
I'm curious why they're disabled by default for this specific file type.
I have no
autocmd lines in my
.vimrc file that are specific to
.csv files, so I don't think I'm disabling this later on in the config file.
In case it matters: I'm using version 8.1.3741 via Ubuntu on WSL2.