-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTemplates
More file actions
71 lines (57 loc) · 2.3 KB
/
Copy pathTemplates
File metadata and controls
71 lines (57 loc) · 2.3 KB
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
§ =============================================================
§ Interface Version
§ =============================================================
InterfaceVersion ( '1.0' )
§ =============================================================
§ Settings
§ =============================================================
SetMacro( 'AUTHOR', 'Guo Shaoguang' )
SetMacro( 'AUTHORREF', 'shaoguangleo' )
SetMacro( 'EMAIL', 'sgguo@shao.ac.cn' )
SetMacro( 'ORGANIZATION', 'Shanghai Astronomical Observatory' )
SetMacro( 'COMPANY', 'Chinese Academy of Sciences' )
SetMacro( 'COPYRIGHT', 'Copyright (c) |YEAR|, |AUTHOR|' )
SetMacro( 'LICENSE', 'GNU General Public License' )
SetFormat( 'DATE', '%x' )
SetFormat( 'TIME', '%X' )
SetFormat( 'YEAR', '%Y' )
§ set a comment prefix, so the maps \cc, ... are created
SetProperty ( 'Comments::LinePrefix', '§' )
§ we use these macros, so the templates can be loaded correctly, without confusing the parser:
§ CMT : comment : § COMMENT!
§ DELIM : delimiter : == <template-name> == <options> ==
§ M_S : macro, start
§ M_E : macro, end : |AUTHOR|
§ M_S : tag, start
§ M_E : tag, end : <CURSOR>
SetMacro( 'CMT', '§' )
SetMacro( 'DELIM', '==' )
SetMacro( 'M_S', '|' )
SetMacro( 'M_E', '|' )
SetMacro( 'T_S', '<' )
SetMacro( 'T_E', '>' )
§ =============================================================
§ File Includes and Shortcuts
§ =============================================================
MenuShortcut( 'Comments', 'c' )
MenuShortcut( 'Templates', 't' )
MenuShortcut( 'Lists', 'l' )
MenuShortcut( 'Functions', 'f' )
MenuShortcut( 'Help', 'h' )
IncludeFile( 'comments.templates' )
IncludeFile( 'templ.templates' )
IncludeFile( 'list.templates' )
IncludeFile( 'functions.templates' )
§ =============================================================
§ Help
§ =============================================================
SetMacro( 'HelpPathEnglish', 'http://en.wiktionary.org/wiki/' )
== HELP: Help.English == map:he, sc:e ==
|Word( '' )|
|Substitute( '\W', '', 'g' )|
|Browser( '|HelpPathEnglish||PICK:l|', '|HelpPathEnglish|' )|
== HELP: Help.templates == map:ht, sc:h ==
|Pattern( '\w\+\%(\s*(\)\?' )|
|Substitute( '\s*(', '()', '' )|
|Vim( ':help template-support-|PICK|', ':help template-support' )|
== ENDTEMPLATE ==