aboutsummaryrefslogtreecommitdiff
path: root/vim/bundle/vim-snippets/snippets/rst.snippets
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2016-06-30 16:03:25 +0200
committerKarel Kočí <cynerd@email.cz>2016-06-30 16:03:25 +0200
commite573b3020c032400eed60b649a2cbf55266e6bb0 (patch)
tree8f572394ac8433529c7a8e70d160a2fbe8268b4e /vim/bundle/vim-snippets/snippets/rst.snippets
parentb8c667bd64b3edd38d56c63c5bd1db53a23b4499 (diff)
downloadmyconfigs-e573b3020c032400eed60b649a2cbf55266e6bb0.tar.gz
myconfigs-e573b3020c032400eed60b649a2cbf55266e6bb0.tar.bz2
myconfigs-e573b3020c032400eed60b649a2cbf55266e6bb0.zip
Add current configurations from old repository
Diffstat (limited to 'vim/bundle/vim-snippets/snippets/rst.snippets')
-rw-r--r--vim/bundle/vim-snippets/snippets/rst.snippets98
1 files changed, 98 insertions, 0 deletions
diff --git a/vim/bundle/vim-snippets/snippets/rst.snippets b/vim/bundle/vim-snippets/snippets/rst.snippets
new file mode 100644
index 0000000..b185245
--- /dev/null
+++ b/vim/bundle/vim-snippets/snippets/rst.snippets
@@ -0,0 +1,98 @@
+# 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}
+#some directive
+snippet img:
+ .. |${0:alias}| image:: ${1:img}
+snippet fig:
+ .. figure:: ${1:img}
+ :alt: ${0:alter text}
+
+ $2
+snippet cont:
+ .. contents::
+ ${0:content}
+snippet code:
+ .. code:: ${1:type}
+
+ ${0:write some code}
+snippet tip:
+ .. tip::
+ ${0:my tips}
+snippet not:
+ .. note::
+ ${0:my notes}
+snippet war:
+ .. warning::
+ ${0:attention!}
+snippet imp:
+ .. important::
+ ${0:this is importatnt}
+snippet att:
+ .. attention::
+ ${0:hey!}
+snippet dan:
+ .. danger::
+ ${0:ah!}
+snippet err:
+ .. error::
+ ${0:Error occur}
+snippet cau:
+ .. caution::
+ ${0:Watch out!}
+#Sphinx only
+snippet sid:
+ .. sidebar:: ${1:Title}
+
+ ${0}
+snippet tod:
+ .. todo::
+ ${0}
+snippet lis:
+ .. list-table:: ${0:Title}
+ :header-rows: 1
+ :stub-columns: 1
+
+ * - x1,y1
+ - x2,y1
+ - x3,y1
+ * - x1,y2
+ - x2,y2
+ - x3,y2
+ * - x1,y3
+ - x2,y3
+ - x3,y3
+
+snippet toc:
+ .. toctree::
+ :maxdepth: 2
+
+ ${0}
+snippet dow:
+ :download:`${0:text} <${1:path}>`
+snippet ref:
+ :ref:`${0:text} <${1:path}>`
+snippet doc:
+ :doc:`${0:text} <${1:path}>`
+# CJK optimize, CJK has no space between charaters
+snippet *c
+ \ *${1:Emphasis}*\ ${0}
+snippet **c
+ \ **${1:Strong emphasis}**\ ${0}
+