forked from tomtom/vimtlib
-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL.TXT
102 lines (64 loc) · 2.95 KB
/
INSTALL.TXT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
* Install from GIT
This repository includes several plugins. I am well aware that this is
bad practice. Anyway, here are a few suggestions of how to make use of
this repository:
** RECOMMENDED: Use macros/tplugin.vim
Short version:
1. Save a local copy of the vimtlib repository under
''~/vimfiles/repos/vimtlib'' (on some systems it's
''~/.vim/repos/vimtlib'')
2. Insert the following line rather at the beginning of your
''vimrc'' file:
''runtime repos/vimtlib/macros/tplugin.vim''.
Some plugins in the vimtlib repository require
''plugin/02tlib.vim'' to be loaded first. If you get an error
message telling you that ''tlib'' is required, you can either
tell me about that error or add the following line to the
''vimrc'' file:
''TPlugin! vimtlib 02tlib''.
3. Run '':TPluginScan! all'' to enable autoloading.
4. Restart vim.
See doc/tplugin.txt for details.
** Modify the ''runtimepath''
Add the path to the local copy to 'runtimepath':
#Code <<
set runtimepath+={PATH TO YOU LOCAL COPY}/vimtlib
You have the following options to facilitate doing this:
1. Plugins like Marc Weber's vim-plugin-manager or Tim Pope's
pathogen could be of help.
2. If you choose this option, you will by default load all
plugins---even those you don't care about. You can disable
specific plugins by setting loaded_* variables in your vimrc
file.
If you have GNU make available, run ''make -f Makefile_vimfiles
loaded'', which will generate a file ''macros/vimtlib.vim''. Then
add ''runtime macros/vimtlib.vim'' to your ''vimrc' file and
''unlet'' all those ''loaded_*'' variables that refer to those
plugins you want to load.
Example: Load only the tlib, tskeleton, and viki plugins
#Code <<
runtime macros/vimtlib.vim
TLibUse tlib tskeleton viki
3. vimtlib includes a script macros/tplugin.vim that help managing
the runtimepath. This script also allows users to use only
certain plugins from the vimtlib repository. See above for
details.
** Use symbolic links
Symlink the files to your vimfiles directory. You could use tools like
graft for this.
** Build vimballs
Vimball recipes for the following plugins are located in the vimballs
subdirectory.
In the ruby subdirectory, there is a ruby-based script that helps
automating this process. If you have ruby installed, type
''...vimtlib/ruby/vimball.rb -h'' to find out which command-line options
to use. Re-generate all vimballs with ''make -f Makefile_vimtlib
VIMTLIB=... vba''.
See also:
- [[http://www.vim.org/scripts/script.php?script_id=1502]\
[\VimBall plugin]]
- [[http://vim.wikia.com/wiki/Using_VimBall_with_make]\
[Using \VimBall with make]]
- [[http://mysite.verizon.net/astronaut/src/index.html#MKVIMBALL]\
[C-based program to handle vimballs]]
% vi: ft=viki:tw=72:ts=4