Runtime files update
[MacVim.git] / runtime / doc / pi_vimball.txt
blob8b2a64dc56d601a086876471e1911def265e34cb
1 *pi_vimball.txt*        For Vim version 7.1.  Last change: 2008 Jan 07
3                                ----------------
4                                Vimball Archiver
5                                ----------------
7 Author:  Charles E. Campbell, Jr.  <NdrOchip@ScampbellPfamily.AbizM>
8           (remove NOSPAM from Campbell's email first)
9 Copyright: (c) 2004-2007 by Charles E. Campbell, Jr.    *Vimball-copyright*
10            The VIM LICENSE applies to Vimball.vim, and Vimball.txt
11            (see |copyright|) except use "Vimball" instead of "Vim".
12            No warranty, express or implied.
13            Use At-Your-Own-Risk!
15 ==============================================================================
16 1. Contents                             *vba* *vimball* *vimball-contents*
18         1. Contents......................................: |vimball-contents|
19         2. Vimball Manual................................: |vimball-manual|
20            MkVimball.....................................: |:MkVimball|
21            UseVimball....................................: |:UseVimball|
22            RmVimball.....................................: |:RmVimball|
23         3. Vimball History...............................: |vimball-history|
26 ==============================================================================
27 2. Vimball Manual                                       *vimball-manual*
29                                                         *:MkVimball*
30                 :[range]MkVimball[!] filename [path]
32         The range is composed of lines holding paths to files to be included
33         in your new vimball, omitting the portion of the paths that is
34         normally specified by the runtimepath (|'rtp'|).  As an example: >
35                 plugin/something.vim
36                 doc/something.txt
37 <       using >
38                 :[range]MkVimball filename
40         on this range of lines will create a file called "filename.vba" which
41         can be used by Vimball.vim to re-create these files.  If the
42         "filename.vba" file already exists, then MkVimball will issue a
43         warning and not create the file.  Note that these paths are relative
44         to your .vim (vimfiles) directory, and the files should be in that
45         directory.  The vimball plugin normally uses the first |'runtimepath'|
46         directory that exists as a prefix; don't use absolute paths, unless
47         the user has specified such a path.
49         If you use the exclamation point (!), then MkVimball will create the
50         "filename.vba" file, overwriting it if it already exists.  This
51         behavior resembles that for |:w|.
52                                                         *g:vimball_home*
53         You may override the use of the |'runtimepath'| by specifying a
54         variable, g:vimball_home.
56         Path Preprocessing                              *g:vimball_path_escape*
58         Paths used in vimball are preprocessed by s:Path(); in addition,
59         certain characters are escaped (by prepending a backslash).  The
60         characters are in g:vimball_path_escape, and may be overridden by
61         the user in his/her .vimrc initialization script.
63                                                         *vimball-extract*
64                 vim filename.vba
66         Simply editing a Vimball will cause Vimball.vim to tell the user to
67         source the file to extract its contents.
69         Extraction will only proceed if the first line of a putative vimball
70         file holds the "Vimball Archiver by Charles E. Campbell, Jr., Ph.D."
71         line.
73                 :VimballList                            *:VimballList*
75         This command will tell Vimball to list the files in the archive, along
76         with their lengths in lines.
78                 :UseVimball [path]                      *:UseVimball*
80         This command is contained within the vimball itself; it invokes the
81         vimball#Vimball() routine which is responsible for unpacking the
82         vimball.  One may choose to execute it by hand instead of sourcing
83         the vimball; one may also choose to specify a path for the
84         installation, thereby overriding the automatic choice of the first
85         existing directory on the |'runtimepath'|.
87                 :RmVimball vimballfile [path]           *:RmVimball*
89         This command removes all files generated by the specified vimball
90         (but not any directories it may have made).  One may choose a path
91         for de-installation, too (see |'runtimepath'|); otherwise, the
92         default is the first existing directory on the |'runtimepath'|.
93         To implement this, a file (.VimballRecord) is made in that directory
94         containing a record of what files need to be removed for all vimballs
95         used thus far.
98 ==============================================================================
99 3. Vimball History                                      *vimball-history* {{{1
101         24 : Nov 15, 2007 * |g:vimball_path_escape| used by s:Path() to
102                             prevent certain characters from causing trouble
103         22 : Mar 21, 2007 * uses setlocal instead of set during BufEnter
104         21 : Nov 27, 2006 * (tnx to Bill McCarthy) vimball had a header
105                             handling problem and it now changes \s to /s
106         20 : Nov 20, 2006 * substitute() calls have all had the 'e' flag
107                             removed.
108         18 : Aug 01, 2006 * vimballs now use folding to easily display their
109                             contents.
110                           * if a user has AsNeeded/somefile, then vimball
111                             will extract plugin/somefile to the AsNeeded/
112                             directory
113         17 : Jun 28, 2006 * changes all \s to /s internally for Windows
114         16 : Jun 15, 2006 * A. Mechylynck's idea to allow users to specify
115                             installation root paths implemented for
116                             UseVimball, MkVimball, and RmVimball.
117                           * RmVimball implemented
118         15 : Jun 13, 2006 * bugfix
119         14 : May 26, 2006 * bugfixes
120         13 : May 01, 2006 * exists("&acd") used to determine if the acd
121                             option exists
122         12 : May 01, 2006 * bugfix - the |'acd'| option is not always defined
123         11 : Apr 27, 2006 * VimballList would create missing subdirectories that
124                             the vimball specified were needed.  Fixed.
125         10 : Apr 27, 2006 * moved all setting saving/restoration to a pair of
126                             functions.  Included some more settings in them
127                             which frequently cause trouble.
128         9  : Apr 26, 2006 * various changes to support Windows' predilection
129                             for backslashes and spaces in file and directory
130                             names.
131         7  : Apr 25, 2006 * bypasses foldenable
132                           * uses more exe and less norm! (:yank :put etc)
133                           * does better at insuring a "Press ENTER" prompt
134                             appears to keep its messages visible
135         4  : Mar 31, 2006 * BufReadPost seems to fire twice; BufReadEnter
136                             only fires once, so the "Source this file..."
137                             message is now issued only once.
138         3  : Mar 20, 2006 * removed query, now requires sourcing to be
139                             extracted (:so %).  Message to that effect
140                             included.
141                           * :VimballList  now shows files that would be
142                             extracted.
143         2  : Mar 20, 2006 * query, :UseVimball included
144         1  : Mar 20, 2006 * initial release
147 ==============================================================================
148 vim:tw=78:ts=8:ft=help:fdm=marker