From 2eae5db069dc171f74cd863487655f6a88e5384d Mon Sep 17 00:00:00 2001 From: Mehmet Samet Duman Date: Fri, 3 Apr 2026 22:21:25 +0300 Subject: NOISSUE rebrand vim to MNV's not Vim Signed-off-by: Mehmet Samet Duman --- uvim/runtime/plugin/tarPlugin.mnv | 60 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 uvim/runtime/plugin/tarPlugin.mnv (limited to 'uvim/runtime/plugin/tarPlugin.mnv') diff --git a/uvim/runtime/plugin/tarPlugin.mnv b/uvim/runtime/plugin/tarPlugin.mnv new file mode 100644 index 0000000000..3e18961f42 --- /dev/null +++ b/uvim/runtime/plugin/tarPlugin.mnv @@ -0,0 +1,60 @@ +" tarPlugin.mnv -- a MNV plugin for browsing tarfiles +" +" Original was copyright (c) 2002, Michael C. Toren +" Modified by Charles E. Campbell +" Distributed under the GNU General Public License. +" +" Updates are available from . If you +" find this script useful, or have suggestions for improvements, please +" let me know. +" Also look there for further comments and documentation. +" +" This part only sets the autocommands. The functions are in autoload/tar.mnv. +" --------------------------------------------------------------------- +" Load Once: {{{1 +if &cp || exists("g:loaded_tarPlugin") + finish +endif +let g:loaded_tarPlugin = "v32" +let s:keepcpo = &cpo +set cpo&mnv + +" --------------------------------------------------------------------- +" Public Interface: {{{1 +augroup tar + au! + au BufReadCmd tarfile::* call tar#Read(expand("")) + au FileReadCmd tarfile::* call tar#Read(expand("")) + au BufWriteCmd tarfile::* call tar#Write(expand("")) + au FileWriteCmd tarfile::* call tar#Write(expand("")) + + if has("unix") + au BufReadCmd tarfile::*/* call tar#Read(expand("")) + au FileReadCmd tarfile::*/* call tar#Read(expand("")) + au BufWriteCmd tarfile::*/* call tar#Write(expand("")) + au FileWriteCmd tarfile::*/* call tar#Write(expand("")) + endif + + 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.bz3 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 *.tlz4 call tar#Browse(expand("")) + au BufReadCmd *.txz call tar#Browse(expand("")) + au BufReadCmd *.tzst call tar#Browse(expand("")) +augroup END +com! -nargs=? -complete=file MNVuntar call tar#MNVuntar() + +" --------------------------------------------------------------------- +" Restoration And Modelines: {{{1 +" mnv: fdm=marker +let &cpo= s:keepcpo +unlet s:keepcpo -- cgit 0.0.5-2-1-g0f52