blob: cfb448f3943d16035f7d7a2ce25db709fd395ef9 [file] [log] [blame]
Bram Moolenaar5c3e56a2007-05-12 13:43:14 +00001*pi_vimball.txt* For Vim version 7.1. Last change: 2007 May 11
Bram Moolenaar25e2c9e2006-04-27 21:40:34 +00002
3 ----------------
4 Vimball Archiver
5 ----------------
6
7Author: Charles E. Campbell, Jr. <NdrOchip@ScampbellPfamily.AbizM>
8 (remove NOSPAM from Campbell's email first)
9Copyright: (c) 2004-2006 by Charles E. Campbell, Jr. *Vimball-copyright*
Bram Moolenaarc9b4b052006-04-30 18:54:39 +000010 The VIM LICENSE applies to Vimball.vim, and Vimball.txt
11 (see |copyright|) except use "Vimball" instead of "Vim".
Bram Moolenaar25e2c9e2006-04-27 21:40:34 +000012 No warranty, express or implied.
13 Use At-Your-Own-Risk!
14
15==============================================================================
Bram Moolenaar9964e462007-05-05 17:54:07 +0000161. Contents *vba* *vimball* *vimball-contents*
Bram Moolenaar25e2c9e2006-04-27 21:40:34 +000017
18 1. Contents......................................: |vimball-contents|
19 2. Vimball Manual................................: |vimball-manual|
Bram Moolenaar9964e462007-05-05 17:54:07 +000020 MkVimball.....................................: |:MkVimball|
21 UseVimball....................................: |:UseVimball|
22 RmVimball.....................................: |:RmVimball|
Bram Moolenaar25e2c9e2006-04-27 21:40:34 +000023 3. Vimball History...............................: |vimball-history|
24
25
26==============================================================================
272. Vimball Manual *vimball-manual*
28
29 *:MkVimball*
Bram Moolenaar9964e462007-05-05 17:54:07 +000030 :[range]MkVimball[!] filename [path]
Bram Moolenaar25e2c9e2006-04-27 21:40:34 +000031
Bram Moolenaar9964e462007-05-05 17:54:07 +000032 The range is composed of lines holding paths to files to be included
33 in your new vimball. As an example: >
Bram Moolenaar25e2c9e2006-04-27 21:40:34 +000034 plugin/something.vim
35 doc/something.txt
Bram Moolenaar9964e462007-05-05 17:54:07 +000036< using >
37 :[range]MkVimball filename
38<
39 on this range of lines will create a file called "filename.vba" which
40 can be used by Vimball.vim to re-create these files. If the
Bram Moolenaar25e2c9e2006-04-27 21:40:34 +000041 "filename.vba" file already exists, then MkVimball will issue a
42 warning and not create the file. Note that these paths are relative
43 to your .vim (vimfiles) directory, and the files should be in that
Bram Moolenaar9964e462007-05-05 17:54:07 +000044 directory. The vimball plugin normally uses the first |'runtimepath'|
45 directory that exists as a prefix; don't use absolute paths, unless
46 the user has specified such a path.
47 *g:vimball_home*
48 You may override the use of the |'runtimepath'| by specifying a
49 variable, g:vimball_home.
Bram Moolenaar25e2c9e2006-04-27 21:40:34 +000050
51 If you use the exclamation point (!), then MkVimball will create the
52 "filename.vba" file, overwriting it if it already exists. This
53 behavior resembles that for |:w|.
54
55 *vimball-extract*
56 vim filename.vba
57
58 Simply editing a Vimball will cause Vimball.vim to tell the user to
59 source the file to extract its contents.
60
61 Extraction will only proceed if the first line of a putative vimball
62 file holds the "Vimball Archiver by Charles E. Campbell, Jr., Ph.D."
63 line.
64
Bram Moolenaar9964e462007-05-05 17:54:07 +000065 :VimballList *:VimballList*
Bram Moolenaarc9b4b052006-04-30 18:54:39 +000066
Bram Moolenaar25e2c9e2006-04-27 21:40:34 +000067 This command will tell Vimball to list the files in the archive, along
68 with their lengths in lines.
69
Bram Moolenaar9964e462007-05-05 17:54:07 +000070 :UseVimball [path] *:UseVimball*
71
72 This command is contained within the vimball itself; it invokes the
73 vimball#Vimball() routine which is responsible for unpacking the
74 vimball. One may choose to execute it by hand instead of sourcing
75 the vimball; one may also choose to specify a path for the
76 installation, thereby overriding the automatic choice of the first
77 existing directory on the |'runtimepath'|.
78
79 :RmVimball vimballfile [path] *:RmVimball*
80
81 This command removes all files generated by the specified vimball
82 (but not any directories it may have made). One may choose a path
83 for de-installation, too (see |'runtimepath'|); otherwise, the
84 default is the first existing directory on the |'runtimepath'|.
85 To implement this, a file (.VimballRecord) is made in that directory
86 containing a record of what files need to be removed for all vimballs
87 used thus far.
88
Bram Moolenaar25e2c9e2006-04-27 21:40:34 +000089
90==============================================================================
913. Vimball History *vimball-history* {{{1
92
Bram Moolenaar7263a772007-05-10 17:35:54 +000093 22 : Mar 21, 2007 * uses setlocal instead of set during BufEnter
Bram Moolenaar9964e462007-05-05 17:54:07 +000094 21 : Nov 27, 2006 * (tnx to Bill McCarthy) vimball had a header
95 handling problem and it now changes \s to /s
96 20 : Nov 20, 2006 * substitute() calls have all had the 'e' flag
97 removed.
98 18 : Aug 01, 2006 * vimballs now use folding to easily display their
99 contents.
100 * if a user has AsNeeded/somefile, then vimball
101 will extract plugin/somefile to the AsNeeded/
102 directory
103 17 : Jun 28, 2006 * changes all \s to /s internally for Windows
Bram Moolenaar5c3e56a2007-05-12 13:43:14 +0000104 16 : Jun 15, 2006 * A. Mechelynck's idea to allow users to specify
Bram Moolenaar9964e462007-05-05 17:54:07 +0000105 installation root paths implemented for
106 UseVimball, MkVimball, and RmVimball.
107 * RmVimball implemented
108 15 : Jun 13, 2006 * bugfix
109 14 : May 26, 2006 * bugfixes
Bram Moolenaard68071d2006-05-02 22:08:30 +0000110 13 : May 01, 2006 * exists("&acd") used to determine if the acd
111 option exists
112 12 : May 01, 2006 * bugfix - the |'acd'| option is not always defined
Bram Moolenaar25e2c9e2006-04-27 21:40:34 +0000113 11 : Apr 27, 2006 * VimballList would create missing subdirectories that
Bram Moolenaar9964e462007-05-05 17:54:07 +0000114 the vimball specified were needed. Fixed.
Bram Moolenaar25e2c9e2006-04-27 21:40:34 +0000115 10 : Apr 27, 2006 * moved all setting saving/restoration to a pair of
Bram Moolenaar9964e462007-05-05 17:54:07 +0000116 functions. Included some more settings in them
Bram Moolenaar25e2c9e2006-04-27 21:40:34 +0000117 which frequently cause trouble.
Bram Moolenaar7263a772007-05-10 17:35:54 +0000118 9 : Apr 26, 2006 * various changes to support Windows predilection
Bram Moolenaarc9b4b052006-04-30 18:54:39 +0000119 for backslashes and spaces in file and directory
Bram Moolenaar25e2c9e2006-04-27 21:40:34 +0000120 names.
121 7 : Apr 25, 2006 * bypasses foldenable
Bram Moolenaarc9b4b052006-04-30 18:54:39 +0000122 * uses more exe and less norm! (:yank :put etc)
Bram Moolenaar25e2c9e2006-04-27 21:40:34 +0000123 * does better at insuring a "Press ENTER" prompt
124 appears to keep its messages visible
125 4 : Mar 31, 2006 * BufReadPost seems to fire twice; BufReadEnter
Bram Moolenaarc9b4b052006-04-30 18:54:39 +0000126 only fires once, so the "Source this file..."
Bram Moolenaar25e2c9e2006-04-27 21:40:34 +0000127 message is now issued only once.
128 3 : Mar 20, 2006 * removed query, now requires sourcing to be
Bram Moolenaar9964e462007-05-05 17:54:07 +0000129 extracted (:so %). Message to that effect
Bram Moolenaar25e2c9e2006-04-27 21:40:34 +0000130 included.
131 * :VimballList now shows files that would be
132 extracted.
133 2 : Mar 20, 2006 * query, :UseVimball included
134 1 : Mar 20, 2006 * initial release
135
136
137==============================================================================
138vim:tw=78:ts=8:ft=help:fdm=marker