@@ -31,9 +31,9 @@ can exist in parallel. This makes it relatively easy to write a plug-in for
31
31
the programming language of your choice.
32
32
33
33
Here is a list of high profile plug-ins which use the template support:
34
- - Bash-Support (www.vim.org/scripts/script.php?script_id=365 )
35
- - C-Support (www.vim.org/scripts/script.php?script_id=213 )
36
- - Perl-Support (www.vim.org/scripts/script.php?script_id=556 )
34
+ - Bash-Support (https:// www.vim.org/scripts/script.php?script_id=365 )
35
+ - C-Support (https:// www.vim.org/scripts/script.php?script_id=213 )
36
+ - Perl-Support (https:// www.vim.org/scripts/script.php?script_id=556 )
37
37
38
38
==============================================================================
39
39
0. TABLE OF CONTENTS *template-support-contents*
@@ -236,7 +236,7 @@ the library, are case sensitive.
236
236
237
237
A template library can be organized in several files. The command: >
238
238
IncludeFile ( "<path>/<file>" )
239
- loads templates from another file (| template-support-IncludeFile | ). The path
239
+ loads templates from another file (| template-support-IncludeFile() | ). The path
240
240
is given relative to the including file. The call: >
241
241
IncludeFile ( "<path>/<file>", "abs" )
242
242
interprets the path as a absolute path instead.
@@ -295,7 +295,7 @@ found in |template-support-menus|.
295
295
------------------------------------------------------------------------------
296
296
297
297
A personalization of the template library can be achieved by using macros. The
298
- command 'SetMacro' (| template-support-SetMacro | ) is used to set replacements
298
+ command 'SetMacro' (| template-support-SetMacro() | ) is used to set replacements
299
299
for various macros (my settings as an example):
300
300
>
301
301
SetMacro( 'AUTHOR', 'Wolfgang Mehner' )
@@ -326,7 +326,7 @@ Then the template for the file description may look as follows:
326
326
== ENDTEMPLATE ==
327
327
<
328
328
The format of the included dates and times can be set in a similar fashion,
329
- using 'SetFormat' (| template-support-SetFormat | ):
329
+ using 'SetFormat' (| template-support-SetFormat() | ):
330
330
>
331
331
SetFormat( 'DATE', '%D' )
332
332
SetFormat( 'TIME', '%H:%M' )
@@ -478,7 +478,7 @@ Except for using flags, the user has no further influence on the replacements
478
478
of these macros, they can not be set via SetMacro().
479
479
480
480
Dates and timestamps are inserted analogously. Their format can be set via
481
- SetFormat (see | template-support-SetFormat | ).
481
+ SetFormat (see | template-support-SetFormat() | ).
482
482
483
483
*|TIME|* : the current time
484
484
*|DATE|* : the current date
@@ -1154,7 +1154,7 @@ Templates inside nested statements are only associated with the styles
1154
1154
listed in the innermost "USE STYLES" statement.
1155
1155
1156
1156
When files are included inside a "USE STYLES" statement (see
1157
- | template-support-IncludeFile | ), the templates inside the file are associated
1157
+ | template-support-IncludeFile() | ), the templates inside the file are associated
1158
1158
with the style, as they would if they appeared in the including file itself.
1159
1159
The rules for nested "USE STYLES" statements also hold across included files.
1160
1160
@@ -1168,7 +1168,7 @@ directory, such the include mechanism of the C preprocessor or LaTeX's
1168
1168
support offers so-called file pickers.
1169
1169
1170
1170
File pickers are templates which use the command PickFile( <prompt> , <path> )
1171
- (| template-support-PickFile | ), which asks the user to interactively select a
1171
+ (| template-support-PickFile() | ), which asks the user to interactively select a
1172
1172
file:
1173
1173
>
1174
1174
SetPath( 'global_include', '/usr/include/' )
@@ -1187,10 +1187,10 @@ beforehand, such as "global_include". After the user selects a file, several
1187
1187
macros are created which can be used in the template. *|PICK|* is the path and
1188
1188
name of the file, relative to the path given as the second argument.
1189
1189
*|FILENAME|* is only the name of the file. For a list of all macros, see
1190
- | template-support-PickFile | .
1190
+ | template-support-PickFile() | .
1191
1191
1192
1192
Names for paths are created using the function SetPath( <name> , <path> )
1193
- (see | template-support-SetPath | ), which is a lot like SetMacro.
1193
+ (see | template-support-SetPath() | ), which is a lot like SetMacro.
1194
1194
1195
1195
For example, if the user picks "/usr/include/GL/gl.h", the first template
1196
1196
would result in the line >
@@ -1217,7 +1217,7 @@ directory.
1217
1217
1218
1218
The template support automatically creates menus for every template. The user
1219
1219
has a measure of influence on the result. Some of these options were already
1220
- explained in | templates -support-templ-maps| , this chapter will introduce further
1220
+ explained in | template -support-templ-maps| , this chapter will introduce further
1221
1221
capabilities.
1222
1222
1223
1223
The menu entries appear in the order the templates have been read. Including a
@@ -1326,7 +1326,7 @@ flag is 'W', the |WORD| under the cursor is picked up: >
1326
1326
|Word('W')|
1327
1327
Otherwise the | word | under the cursor is picked: >
1328
1328
|Word('')|
1329
- Lastly, the word can be picked using a regular expression (see | regex | ): >
1329
+ Lastly, the word can be picked using a regular expression (see | regexp | ): >
1330
1330
|Pattern( '[\\@]\w\+' )|
1331
1331
This call picks a word prefix by "\" or "@", which in a C comment could be a
1332
1332
Doxygen command.
@@ -3208,7 +3208,7 @@ Fritz Mehner (vim.org user name: mehner):
3208
3208
Jeremy Cantrell (jmcantrell):
3209
3209
- the solution for getting the visual area is take from his plug-in
3210
3210
"opener.vim", which is distributed under the same licence as Vim itself
3211
- ( http ://www.vim.org/scripts/script.php?script_id=3543 )
3211
+ ( https ://www.vim.org/scripts/script.php?script_id=3543 )
3212
3212
3213
3213
Andrew L:
3214
3214
- suggested to insert a breakpoint into the undo sequence before inserting
0 commit comments