2009-07-13 06:02:48 -04:00
|
|
|
# Snippets for VIM Help Files
|
|
|
|
|
2009-07-17 18:51:19 -04:00
|
|
|
snippet sec "Section marker" b
|
2009-07-13 06:02:48 -04:00
|
|
|
=============================================================================
|
2009-07-13 06:28:58 -04:00
|
|
|
${1:SECTION}`!p
|
2010-07-30 20:29:40 -04:00
|
|
|
file_start = snip.fn.split('.')[0]
|
2009-07-13 06:28:58 -04:00
|
|
|
sec_name = t[1].strip("1234567890. ").lower().replace(' ', '-')
|
|
|
|
|
2010-07-30 20:29:40 -04:00
|
|
|
snip.rv = ("*%s-%s*" % (file_start, sec_name)).rjust(77-len(t[1]))`
|
2009-07-13 06:28:58 -04:00
|
|
|
|
|
|
|
$0
|
|
|
|
endsnippet
|
|
|
|
|
2009-07-17 18:51:19 -04:00
|
|
|
snippet ssec "Sub section marker" b
|
2009-07-13 06:28:58 -04:00
|
|
|
${1:Subsection}`!p
|
2010-07-30 20:29:40 -04:00
|
|
|
file_start = snip.fn.split('.')[0]
|
2009-07-13 06:28:58 -04:00
|
|
|
sec_name = t[1].strip("1234567890. ").lower().replace(' ', '-')
|
|
|
|
sec_title = ("*%s-%s*" % (file_start, sec_name)).rjust(77-len(t[1]))
|
|
|
|
|
2010-07-30 20:29:40 -04:00
|
|
|
snip.rv = sec_title
|
|
|
|
snip += "-"*len(t[1])`
|
2009-07-13 06:28:58 -04:00
|
|
|
|
|
|
|
$0
|
|
|
|
endsnippet
|
|
|
|
|
2009-07-17 18:51:19 -04:00
|
|
|
snippet sssec "Subsub Section marker" b
|
2010-07-30 20:29:40 -04:00
|
|
|
${1:SubSubsection}:`!p
|
2009-07-13 06:28:58 -04:00
|
|
|
file_start = fn.split('.')[0]
|
|
|
|
sec_name = t[1].strip("1234567890. ").lower().replace(' ', '-')
|
|
|
|
sec_title = ("*%s-%s*" % (file_start, sec_name)).rjust(77-len(t[1]))
|
|
|
|
|
2010-07-30 20:29:40 -04:00
|
|
|
snip.rv = sec_title`
|
2009-07-13 06:28:58 -04:00
|
|
|
|
|
|
|
$0
|
2009-07-13 06:02:48 -04:00
|
|
|
endsnippet
|
|
|
|
|