Vim automatically expands .gz files when I open them up, which is great. However, it doesn’t reccognize .GZ (upper case) in the same way. Unfortunately I cannot change the file extensions of the files I’m working with for various reasons. Is there a realatively simple way to register with VIM that .GZ are the same as .gz files?
Vim automatically expands .gz files when I open them up, which is great. However,
Share
Put this into your .vimrc :
If you want to know what autocmds were already activated for gz files you could have done:
This shows that gzip-related autocmds are in the gzip group. Then
:au gzipgives a more compact list.Reference:
Original autocmds are in plugin/gzip.vim in your vim runtime. You can tell that with
:verbose au gzip