vimrc/sources_non_forked/vim-snippets/snippets/markdown.snippets

157 lines
2.8 KiB
Text
Raw Normal View History

2012-08-17 03:41:25 +00:00
# Markdown
# Includes octopress (http://octopress.org/) snippets
2015-01-18 12:58:28 +00:00
# The suffix `c` stands for "Clipboard".
2012-08-17 03:41:25 +00:00
snippet [
2020-12-04 21:15:32 +00:00
[${1:text}](https://${2:address})
2012-08-17 03:41:25 +00:00
snippet [*
2015-01-18 12:58:28 +00:00
[${1:link}](${2:`@*`})
snippet [c
[${1:link}](${2:`@+`})
snippet ["
2020-12-04 21:15:32 +00:00
[${1:text}](https://${2:address} "${3:title}")
2015-01-18 12:58:28 +00:00
snippet ["*
[${1:link}](${2:`@*`} "${3:title}")
2015-01-18 12:58:28 +00:00
snippet ["c
[${1:link}](${2:`@+`} "${3:title}")
2012-08-17 03:41:25 +00:00
snippet [:
2020-12-04 21:15:32 +00:00
[${1:id}]: https://${2:url}
2015-01-18 12:58:28 +00:00
2012-08-17 03:41:25 +00:00
snippet [:*
2015-01-18 12:58:28 +00:00
[${1:id}]: ${2:`@*`}
snippet [:c
[${1:id}]: ${2:`@+`}
snippet [:"
2020-12-04 21:15:32 +00:00
[${1:id}]: https://${2:url} "${3:title}"
2015-01-18 12:58:28 +00:00
snippet [:"*
[${1:id}]: ${2:`@*`} "${3:title}"
snippet [:"c
[${1:id}]: ${2:`@+`} "${3:title}"
2012-08-17 03:41:25 +00:00
snippet ![
2015-01-18 12:58:28 +00:00
![${1:alttext}](${2:/images/image.jpg})
2012-08-17 03:41:25 +00:00
snippet ![*
2015-01-18 12:58:28 +00:00
![${1:alt}](${2:`@*`})
snippet ![c
![${1:alt}](${2:`@+`})
snippet !["
![${1:alttext}](${2:/images/image.jpg} "${3:title}")
snippet !["*
![${1:alt}](${2:`@*`} "${3:title}")
2015-01-18 12:58:28 +00:00
snippet !["c
![${1:alt}](${2:`@+`} "${3:title}")
2012-08-17 03:41:25 +00:00
snippet ![:
2015-01-18 12:58:28 +00:00
![${1:id}]: ${2:url}
2012-08-17 03:41:25 +00:00
2015-01-18 12:58:28 +00:00
snippet ![:*
![${1:id}]: ${2:`@*`}
snippet ![:"
![${1:id}]: ${2:url} "${3:title}"
snippet ![:"*
![${1:id}]: ${2:`@*`} "${3:title}"
snippet ![:"c
![${1:id}]: ${2:`@+`} "${3:title}"
snippet <
<http://${1:url}>
snippet <*
<`@*`>
snippet <c
<`@+`>
snippet ** Bold
**$0**
snippet __ Bold
__$0__
snippet --- Front matter
---
$0
---
snippet ====
2017-07-06 12:57:35 +00:00
`repeat('=', strlen(getline(line('.') - 3)))`
2013-07-17 23:06:05 +00:00
${0}
2015-02-04 10:43:54 +00:00
snippet -
- ${0}
snippet ----
2017-07-06 12:57:35 +00:00
`repeat('-', strlen(getline(line('.') - 3)))`
2013-07-17 23:06:05 +00:00
${0}
2012-08-17 03:41:25 +00:00
snippet blockquote
{% blockquote %}
${0:quote}
2012-08-17 03:41:25 +00:00
{% endblockquote %}
snippet blockquote-author
{% blockquote ${1:author}, ${2:title} %}
${0:quote}
2012-08-17 03:41:25 +00:00
{% endblockquote %}
snippet blockquote-link
{% blockquote ${1:author} ${2:URL} ${3:link_text} %}
${0:quote}
2012-08-17 03:41:25 +00:00
{% endblockquote %}
2015-01-18 12:58:28 +00:00
snippet ```
2018-02-04 11:35:08 +00:00
\`\`\`${1}
${0:${VISUAL}}
2015-01-18 12:58:28 +00:00
\`\`\`
2012-08-17 03:41:25 +00:00
2015-01-18 12:58:28 +00:00
# Language.
snippet ```l
\`\`\`${1:language}
${2:code}
\`\`\`
2012-08-17 03:41:25 +00:00
snippet codeblock-short
{% codeblock %}
${0:code_snippet}
2012-08-17 03:41:25 +00:00
{% endcodeblock %}
snippet codeblock-full
{% codeblock ${1:title} lang:${2:language} ${3:URL} ${4:link_text} %}
${0:code_snippet}
2012-08-17 03:41:25 +00:00
{% endcodeblock %}
snippet gist-full
{% gist ${1:gist_id} ${0:filename} %}
2012-08-17 03:41:25 +00:00
snippet gist-short
{% gist ${0:gist_id} %}
2012-08-17 03:41:25 +00:00
snippet img
{% img ${1:class} ${2:URL} ${3:width} ${4:height} ${5:title_text} ${0:alt_text} %}
2012-08-17 03:41:25 +00:00
snippet youtube
{% youtube ${0:video_id} %}
2012-08-17 03:41:25 +00:00
2020-04-26 01:56:16 +00:00
snippet tb
| ${0:factors} | ${1:a} | ${2:b} |
| ------------- |------------- | ------- |
| ${3:f1} | Y | N |
| ${4:f2} | Y | N |
2012-08-17 03:41:25 +00:00
# The quote should appear only once in the text. It is inherently part of it.
# See http://octopress.org/docs/plugins/pullquote/ for more info.
snippet pullquote
{% pullquote %}
${1:text} {" ${2:quote} "} ${0:text}
2012-08-17 03:41:25 +00:00
{% endpullquote %}
# Definition lists
snippet : Definition list
$1
: $0
snippet :: Alternate definition list
$1
- $0