From 52ff5e3032eb5e39b49ce6f4e9a93cffdd39b830 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 7 Feb 2025 17:10:51 +0800 Subject: vim-patch:b69cd52: runtime(misc): Add support for lz4 to tar & gzip plugin (#32360) while at it, clean up the tar plugin a bit and sort the patterns for the tar and gzip plugin References: - https://github.com/lz4/lz4 - https://lz4.org/ closes: vim/vim#16591 https://github.com/vim/vim/commit/b69cd52447584cedadc1513aa3acd5b4cd9f4340 Co-authored-by: Corpulent Robin <177767857+corpulentrobin@users.noreply.github.com> --- runtime/plugin/tarPlugin.vim | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'runtime/plugin/tarPlugin.vim') diff --git a/runtime/plugin/tarPlugin.vim b/runtime/plugin/tarPlugin.vim index 26a994aee5..64266fd3f2 100644 --- a/runtime/plugin/tarPlugin.vim +++ b/runtime/plugin/tarPlugin.vim @@ -1,4 +1,5 @@ " tarPlugin.vim -- a Vim plugin for browsing tarfiles +" " Original was copyright (c) 2002, Michael C. Toren " Modified by Charles E. Campbell " Distributed under the GNU General Public License. @@ -34,18 +35,20 @@ augroup tar au FileWriteCmd tarfile::*/* call tar#Write(expand("")) endif - au BufReadCmd *.tar.gz call tar#Browse(expand("")) - au BufReadCmd *.tar call tar#Browse(expand("")) au BufReadCmd *.lrp call tar#Browse(expand("")) + au BufReadCmd *.tar call tar#Browse(expand("")) au BufReadCmd *.tar.bz2 call tar#Browse(expand("")) + au BufReadCmd *.tar.gz call tar#Browse(expand("")) + au BufReadCmd *.tar.lz4 call tar#Browse(expand("")) + au BufReadCmd *.tar.lzma call tar#Browse(expand("")) + au BufReadCmd *.tar.xz call tar#Browse(expand("")) au BufReadCmd *.tar.Z call tar#Browse(expand("")) + au BufReadCmd *.tar.zst call tar#Browse(expand("")) au BufReadCmd *.tbz call tar#Browse(expand("")) au BufReadCmd *.tgz call tar#Browse(expand("")) - au BufReadCmd *.tar.lzma call tar#Browse(expand("")) - au BufReadCmd *.tar.xz call tar#Browse(expand("")) + au BufReadCmd *.tlz4 call tar#Browse(expand("")) au BufReadCmd *.txz call tar#Browse(expand("")) - au BufReadCmd *.tar.zst call tar#Browse(expand("")) - au BufReadCmd *.tzst call tar#Browse(expand("")) + au BufReadCmd *.tzst call tar#Browse(expand("")) augroup END " --------------------------------------------------------------------- -- cgit