Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
vimballPlugin.vim53 linesDownload Raw Back to plugin
1" vimballPlugin : construct a file containing both paths and files2" Maintainer:	This runtime file is looking for a new maintainer.3" Original Author: Charles E. Campbell4" Copyright: (c) 2004-2014 by Charles E. Campbell5"            The VIM LICENSE applies to Vimball.vim, and Vimball.txt6"            (see |copyright|) except use "Vimball" instead of "Vim".7"            No warranty, express or implied.8"  *** ***   Use At-Your-Own-Risk!   *** ***9"10" (Rom 2:1 WEB) Therefore you are without excuse, O man, whoever you are who11"      judge. For in that which you judge another, you condemn yourself. For12"      you who judge practice the same things.13" GetLatestVimScripts: 1502 1 :AutoInstall: vimball.vim14 15" ---------------------------------------------------------------------16"  Load Once: {{{117if &cp || exists("g:loaded_vimballPlugin")18 finish19endif20let g:loaded_vimballPlugin = "v37"21let s:keepcpo              = &cpo22set cpo&vim23 24" ------------------------------------------------------------------------------25" Public Interface: {{{126com! -range   -complete=file -nargs=+ -bang MkVimball		call vimball#MkVimball(<line1>,<line2>,<bang>0,<f-args>)27com! -nargs=? -complete=dir  UseVimball						call vimball#Vimball(1,<f-args>)28com! -nargs=0                VimballList					call vimball#Vimball(0)29com! -nargs=* -complete=dir  RmVimball						call vimball#SaveSettings()|call vimball#RmVimball(<f-args>)|call vimball#RestoreSettings()30augroup Vimball31 au!32 au BufEnter  *.vba,*.vba.gz,*.vba.bz2,*.vba.bz3,*.vba.zip,*.vba.xz33	   \ if getline(1) =~ '^" Vimball Archiver' |34	   \  setlocal bt=nofile fmr=[[[,]]] fdm=marker|if &ff != 'unix'|setlocal ma ff=unix noma|endif|if line('$') > 1|call vimball#ShowMesg(0, "Source this file to extract it! (:so %)")|endif |35	   \ endif36 au SourceCmd *.vba.gz,*.vba.bz2,*.vba.bz3,*.vba.zip,*.vba.xz			let s:origfile=expand("%")|if expand("%")!=expand("<afile>") | exe "1sp" fnameescape(expand("<afile>"))|endif|call vimball#Decompress(expand("<amatch>"))|so %|if s:origfile!=expand("<afile>")|close|endif37 au SourceCmd *.vba											if expand("%")!=expand("<afile>") | exe "1sp" fnameescape(expand("<afile>"))|call vimball#Vimball(1)|close|else|call vimball#Vimball(1)|endif38 au BufEnter  *.vmb,*.vmb.gz,*.vmb.bz2,*.vmb.bz3,*.vmb.zip,*.vmb.xz39	   \ if getline(1) =~ '^" Vimball Archiver' |40	   \  setlocal bt=nofile fmr=[[[,]]] fdm=marker|if &ff != 'unix'|setlocal ma ff=unix noma|endif|if line('$') > 1|call vimball#ShowMesg(0,"Source this file to extract it! (:so %)")|endif |41	   \ endif42 au SourceCmd *.vmb.gz,*.vmb.bz2,*.vmb.bz3,*.vmb.zip,*.vmb.xz			let s:origfile=expand("%")|if expand("%")!=expand("<afile>") | exe "1sp" fnameescape(expand("<afile>"))|endif|call vimball#Decompress(expand("<amatch>"))|so %|if s:origfile!=expand("<afile>")|close|endif43 au SourceCmd *.vmb											if expand("%")!=expand("<afile>") | exe "1sp" fnameescape(expand("<afile>"))|call vimball#Vimball(1)|close|else|call vimball#Vimball(1)|endif44augroup END45 46" =====================================================================47" Restoration And Modelines: {{{148" vim: fdm=marker49let &cpo= s:keepcpo50unlet s:keepcpo51 52" vim: ts=4:53 
codekingpro/portable-devtools · Team Ai