vim-snippets/snippets/rst.snippets

93 lines
1.3 KiB
Plaintext
Raw Normal View History

# rst
snippet :
:${1:field name}: ${0:field body}
snippet *
*${1:Emphasis}* ${0}
snippet **
**${1:Strong emphasis}** ${0}
snippet _
\`${1:hyperlink-name}\`_
.. _\`$1\`: ${0:link-block}
snippet =
${1:Title}
=====${2:=}
${0}
snippet -
${1:Title}
-----${2:-}
${0}
2013-05-30 23:06:43 -04:00
#some directive
snippet img:
.. |${0:alias}| image:: ${1:img}
2013-05-30 23:18:29 -04:00
snippet fig:
.. figure:: ${1:img}
:alt: ${0:alter text}
2013-05-30 23:18:29 -04:00
$2
snippet cont:
.. contents::
${0:content}
2013-05-30 23:06:43 -04:00
snippet code:
.. code:: ${1:type}
${0:write some code}
2013-05-30 23:06:43 -04:00
snippet tip:
.. tip::
${0:my tips}
2013-05-30 23:06:43 -04:00
snippet not:
.. note::
${0:my notes}
2013-05-30 23:06:43 -04:00
snippet war:
.. warning::
${0:attention!}
2013-05-30 23:06:43 -04:00
snippet imp:
.. important::
${0:this is importatnt}
2013-05-30 23:06:43 -04:00
snippet att:
.. attention::
${0:hey!}
2013-05-30 23:06:43 -04:00
snippet dan:
.. danger::
${0:ah!}
2013-05-30 23:06:43 -04:00
snippet err:
.. error::
${0:Error occur}
2013-05-30 23:06:43 -04:00
snippet cau:
.. caution::
${0:Watch out!}
2015-08-04 09:24:24 -04:00
#Sphinx only
2013-05-30 23:06:43 -04:00
snippet sid:
.. sidebar:: ${1:Title}
2015-08-04 09:30:38 -04:00
${0}
snippet tod:
.. todo::
${0}
2015-08-04 09:40:27 -04:00
snippet lis:
2015-08-04 09:37:56 -04:00
.. list-table:: ${0:Title}
:header-rows: 1
:stub-columns: 1
2015-08-04 09:40:27 -04:00
* - x1,y1
- x2,y1
- x3,y1
* - x1,y2
- x2,y2
- x3,y2
* - x1,y3
- x2,y3
- x3,y3
snippet toc:
.. toctree::
:maxdepth: 2
2015-08-04 09:37:56 -04:00
2015-08-04 09:40:27 -04:00
${0}
2013-05-30 21:45:28 -04:00
# CJK optimize, CJK has no space between charaters
snippet *c
\ *${1:Emphasis}*\ ${0}
2013-05-30 21:45:28 -04:00
snippet **c
\ **${1:Strong emphasis}**\ ${0}
2013-05-30 21:45:28 -04:00