Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
tarPlugin.vim61 linesDownload Raw Back to plugin
1" tarPlugin.vim -- a Vim plugin for browsing tarfiles2"3" Original was copyright (c) 2002, Michael C. Toren <mct@toren.net>4" Modified by Charles E. Campbell5" Distributed under the GNU General Public License.6"7" Updates are available from <http://michael.toren.net/code/>.  If you8" find this script useful, or have suggestions for improvements, please9" let me know.10" Also look there for further comments and documentation.11"12" This part only sets the autocommands.  The functions are in autoload/tar.vim.13" ---------------------------------------------------------------------14"  Load Once: {{{115if &cp || exists("g:loaded_tarPlugin")16 finish17endif18let g:loaded_tarPlugin = "v32"19let s:keepcpo          = &cpo20set cpo&vim21 22" ---------------------------------------------------------------------23"  Public Interface: {{{124augroup tar25  au!26  au BufReadCmd   tarfile::*	call tar#Read(expand("<amatch>"))27  au FileReadCmd  tarfile::*	call tar#Read(expand("<amatch>"))28  au BufWriteCmd  tarfile::*	call tar#Write(expand("<amatch>"))29  au FileWriteCmd tarfile::*	call tar#Write(expand("<amatch>"))30 31  if has("unix")32   au BufReadCmd   tarfile::*/*	call tar#Read(expand("<amatch>"))33   au FileReadCmd  tarfile::*/*	call tar#Read(expand("<amatch>"))34   au BufWriteCmd  tarfile::*/*	call tar#Write(expand("<amatch>"))35   au FileWriteCmd tarfile::*/*	call tar#Write(expand("<amatch>"))36  endif37 38  au BufReadCmd   *.lrp			call tar#Browse(expand("<amatch>"))39  au BufReadCmd   *.tar			call tar#Browse(expand("<amatch>"))40  au BufReadCmd   *.tar.bz2		call tar#Browse(expand("<amatch>"))41  au BufReadCmd   *.tar.bz3		call tar#Browse(expand("<amatch>"))42  au BufReadCmd   *.tar.gz		call tar#Browse(expand("<amatch>"))43  au BufReadCmd   *.tar.lz4		call tar#Browse(expand("<amatch>"))44  au BufReadCmd   *.tar.lzma		call tar#Browse(expand("<amatch>"))45  au BufReadCmd   *.tar.xz		call tar#Browse(expand("<amatch>"))46  au BufReadCmd   *.tar.Z		call tar#Browse(expand("<amatch>"))47  au BufReadCmd   *.tar.zst		call tar#Browse(expand("<amatch>"))48  au BufReadCmd   *.tbz			call tar#Browse(expand("<amatch>"))49  au BufReadCmd   *.tgz			call tar#Browse(expand("<amatch>"))50  au BufReadCmd   *.tlz4		call tar#Browse(expand("<amatch>"))51  au BufReadCmd   *.txz			call tar#Browse(expand("<amatch>"))52  au BufReadCmd   *.tzst		call tar#Browse(expand("<amatch>"))53augroup END54com! -nargs=? -complete=file Vimuntar call tar#Vimuntar(<q-args>)55 56" ---------------------------------------------------------------------57" Restoration And Modelines: {{{158" vim: fdm=marker59let &cpo= s:keepcpo60unlet s:keepcpo61 
codekingpro/portable-devtools · Team Ai