mirror of
https://github.com/amix/vimrc
synced 2025-06-16 01:25:00 +08:00
Forgot to check in the rest of the updated plugins :/
This commit is contained in:
@ -6,6 +6,8 @@
|
||||
# vim's `"*` register---i.e., the contents of the
|
||||
# system clipboard---to insert text.
|
||||
|
||||
extends markdown
|
||||
|
||||
# Insert Title Block
|
||||
snippet %%
|
||||
% ${1:`Filename('', 'title')`}
|
||||
@ -20,70 +22,12 @@ snippet %%*
|
||||
|
||||
${4}
|
||||
|
||||
# Insert Definition List
|
||||
snippet ::
|
||||
${1:term}
|
||||
~ ${2:definition}
|
||||
|
||||
# Underline with `=`s or `-`s
|
||||
snippet ===
|
||||
`repeat('=', strlen(getline(line(".") - 1)))`
|
||||
|
||||
${1}
|
||||
snippet ---
|
||||
`repeat('-', strlen(getline(line(".") - 1)))`
|
||||
|
||||
${1}
|
||||
|
||||
# Links and their kin
|
||||
# -------------------
|
||||
#
|
||||
# (These don't play very well with delimitMate)
|
||||
#
|
||||
|
||||
snippet [
|
||||
[${1:link}](http://${2:url} "${3:title}")${4}
|
||||
snippet [*
|
||||
[${1:link}](${2:`@*`} "${3:title}")${4}
|
||||
|
||||
snippet [:
|
||||
[${1:id}]: http://${2:url} "${3:title}"
|
||||
snippet [:*
|
||||
[${1:id}]: ${2:`@*`} "${3:title}"
|
||||
|
||||
snippet [@
|
||||
[${1:link}](mailto:${2:email})${3}
|
||||
snippet [@*
|
||||
[${1:link}](mailto:${2:`@*`})${3}
|
||||
|
||||
snippet [:@
|
||||
[${1:id}]: mailto:${2:email} "${3:title}"
|
||||
snippet [:@*
|
||||
[${1:id}]: mailto:${2:`@*`} "${3:title}"
|
||||
|
||||
snippet ${4}
|
||||
snippet ${4}
|
||||
|
||||
snippet ![:
|
||||
![${1:id}]: ${2:url} "${3:title}"
|
||||
snippet ![:*
|
||||
![${1:id}]: ${2:`@*`} "${3:title}"
|
||||
|
||||
snippet [^:
|
||||
[^${1:id}]: ${2:note}
|
||||
snippet [^:*
|
||||
[^${1:id}]: ${2:`@*`}
|
||||
|
||||
#
|
||||
|
||||
# library()
|
||||
snippet req
|
||||
require(${1:}, quietly = TRUE)
|
||||
# If Condition
|
||||
snippet if
|
||||
if ( ${1:condition} )
|
||||
if ( $1 )
|
||||
{
|
||||
${2:}
|
||||
}
|
||||
@ -107,7 +51,7 @@ snippet fun
|
||||
snippet re
|
||||
repeat{
|
||||
${2:}
|
||||
if(${1:condition}) break
|
||||
if($1) break
|
||||
}
|
||||
|
||||
# matrix
|
||||
|
Reference in New Issue
Block a user