0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00
vim/runtime/doc/pi_vimball.txt

139 lines
5.7 KiB
Plaintext
Raw Normal View History

2007-05-12 13:43:14 +00:00
*pi_vimball.txt* For Vim version 7.1. Last change: 2007 May 11
2006-04-27 21:40:34 +00:00
----------------
Vimball Archiver
----------------
Author: Charles E. Campbell, Jr. <NdrOchip@ScampbellPfamily.AbizM>
(remove NOSPAM from Campbell's email first)
Copyright: (c) 2004-2006 by Charles E. Campbell, Jr. *Vimball-copyright*
2006-04-30 18:54:39 +00:00
The VIM LICENSE applies to Vimball.vim, and Vimball.txt
(see |copyright|) except use "Vimball" instead of "Vim".
2006-04-27 21:40:34 +00:00
No warranty, express or implied.
Use At-Your-Own-Risk!
==============================================================================
2007-05-05 17:54:07 +00:00
1. Contents *vba* *vimball* *vimball-contents*
2006-04-27 21:40:34 +00:00
1. Contents......................................: |vimball-contents|
2. Vimball Manual................................: |vimball-manual|
2007-05-05 17:54:07 +00:00
MkVimball.....................................: |:MkVimball|
UseVimball....................................: |:UseVimball|
RmVimball.....................................: |:RmVimball|
2006-04-27 21:40:34 +00:00
3. Vimball History...............................: |vimball-history|
==============================================================================
2. Vimball Manual *vimball-manual*
*:MkVimball*
2007-05-05 17:54:07 +00:00
:[range]MkVimball[!] filename [path]
2006-04-27 21:40:34 +00:00
2007-05-05 17:54:07 +00:00
The range is composed of lines holding paths to files to be included
in your new vimball. As an example: >
2006-04-27 21:40:34 +00:00
plugin/something.vim
doc/something.txt
2007-05-05 17:54:07 +00:00
< using >
:[range]MkVimball filename
<
on this range of lines will create a file called "filename.vba" which
can be used by Vimball.vim to re-create these files. If the
2006-04-27 21:40:34 +00:00
"filename.vba" file already exists, then MkVimball will issue a
warning and not create the file. Note that these paths are relative
to your .vim (vimfiles) directory, and the files should be in that
2007-05-05 17:54:07 +00:00
directory. The vimball plugin normally uses the first |'runtimepath'|
directory that exists as a prefix; don't use absolute paths, unless
the user has specified such a path.
*g:vimball_home*
You may override the use of the |'runtimepath'| by specifying a
variable, g:vimball_home.
2006-04-27 21:40:34 +00:00
If you use the exclamation point (!), then MkVimball will create the
"filename.vba" file, overwriting it if it already exists. This
behavior resembles that for |:w|.
*vimball-extract*
vim filename.vba
Simply editing a Vimball will cause Vimball.vim to tell the user to
source the file to extract its contents.
Extraction will only proceed if the first line of a putative vimball
file holds the "Vimball Archiver by Charles E. Campbell, Jr., Ph.D."
line.
2007-05-05 17:54:07 +00:00
:VimballList *:VimballList*
2006-04-30 18:54:39 +00:00
2006-04-27 21:40:34 +00:00
This command will tell Vimball to list the files in the archive, along
with their lengths in lines.
2007-05-05 17:54:07 +00:00
:UseVimball [path] *:UseVimball*
This command is contained within the vimball itself; it invokes the
vimball#Vimball() routine which is responsible for unpacking the
vimball. One may choose to execute it by hand instead of sourcing
the vimball; one may also choose to specify a path for the
installation, thereby overriding the automatic choice of the first
existing directory on the |'runtimepath'|.
:RmVimball vimballfile [path] *:RmVimball*
This command removes all files generated by the specified vimball
(but not any directories it may have made). One may choose a path
for de-installation, too (see |'runtimepath'|); otherwise, the
default is the first existing directory on the |'runtimepath'|.
To implement this, a file (.VimballRecord) is made in that directory
containing a record of what files need to be removed for all vimballs
used thus far.
2006-04-27 21:40:34 +00:00
==============================================================================
3. Vimball History *vimball-history* {{{1
2007-05-10 17:35:54 +00:00
22 : Mar 21, 2007 * uses setlocal instead of set during BufEnter
2007-05-05 17:54:07 +00:00
21 : Nov 27, 2006 * (tnx to Bill McCarthy) vimball had a header
handling problem and it now changes \s to /s
20 : Nov 20, 2006 * substitute() calls have all had the 'e' flag
removed.
18 : Aug 01, 2006 * vimballs now use folding to easily display their
contents.
* if a user has AsNeeded/somefile, then vimball
will extract plugin/somefile to the AsNeeded/
directory
17 : Jun 28, 2006 * changes all \s to /s internally for Windows
2007-05-12 13:43:14 +00:00
16 : Jun 15, 2006 * A. Mechelynck's idea to allow users to specify
2007-05-05 17:54:07 +00:00
installation root paths implemented for
UseVimball, MkVimball, and RmVimball.
* RmVimball implemented
15 : Jun 13, 2006 * bugfix
14 : May 26, 2006 * bugfixes
2006-05-02 22:08:30 +00:00
13 : May 01, 2006 * exists("&acd") used to determine if the acd
option exists
12 : May 01, 2006 * bugfix - the |'acd'| option is not always defined
2006-04-27 21:40:34 +00:00
11 : Apr 27, 2006 * VimballList would create missing subdirectories that
2007-05-05 17:54:07 +00:00
the vimball specified were needed. Fixed.
2006-04-27 21:40:34 +00:00
10 : Apr 27, 2006 * moved all setting saving/restoration to a pair of
2007-05-05 17:54:07 +00:00
functions. Included some more settings in them
2006-04-27 21:40:34 +00:00
which frequently cause trouble.
2007-05-10 17:35:54 +00:00
9 : Apr 26, 2006 * various changes to support Windows predilection
2006-04-30 18:54:39 +00:00
for backslashes and spaces in file and directory
2006-04-27 21:40:34 +00:00
names.
7 : Apr 25, 2006 * bypasses foldenable
2006-04-30 18:54:39 +00:00
* uses more exe and less norm! (:yank :put etc)
2006-04-27 21:40:34 +00:00
* does better at insuring a "Press ENTER" prompt
appears to keep its messages visible
4 : Mar 31, 2006 * BufReadPost seems to fire twice; BufReadEnter
2006-04-30 18:54:39 +00:00
only fires once, so the "Source this file..."
2006-04-27 21:40:34 +00:00
message is now issued only once.
3 : Mar 20, 2006 * removed query, now requires sourcing to be
2007-05-05 17:54:07 +00:00
extracted (:so %). Message to that effect
2006-04-27 21:40:34 +00:00
included.
* :VimballList now shows files that would be
extracted.
2 : Mar 20, 2006 * query, :UseVimball included
1 : Mar 20, 2006 * initial release
==============================================================================
vim:tw=78:ts=8:ft=help:fdm=marker