mirror of
https://github.com/amix/vimrc
synced 2025-06-16 09:35:01 +08:00
Replace YanRing with yank-stack and update plugins
This commit is contained in:
@ -216,7 +216,9 @@ def write_init_body(args, parents, snip):
|
||||
|
||||
|
||||
def write_slots_args(args, snip):
|
||||
args = ['"_%s"' % arg for arg in args]
|
||||
quote = get_quoting_style(snip)
|
||||
arg_format = quote + '_%s' + quote
|
||||
args = [arg_format % arg for arg in args]
|
||||
snip += '__slots__ = (%s,)' % ', '.join(args)
|
||||
|
||||
|
||||
|
@ -103,6 +103,8 @@ snippet cascii
|
||||
# Lambda
|
||||
snippet ld
|
||||
${1:var} = lambda ${2:vars} : ${0:action}
|
||||
snippet ret
|
||||
return ${0}
|
||||
snippet .
|
||||
self.
|
||||
snippet try Try/Except
|
||||
|
@ -58,6 +58,10 @@ snippet try
|
||||
${0}
|
||||
}
|
||||
#match
|
||||
snippet mat
|
||||
${1:${VISUAL}} match {
|
||||
case ${2} => ${0}
|
||||
}
|
||||
snippet match
|
||||
${1: obj} match {
|
||||
case ${2:e} => ${3}
|
||||
@ -65,7 +69,7 @@ snippet match
|
||||
}
|
||||
#case
|
||||
snippet case
|
||||
case ${1:value} => ${0}
|
||||
case ${1:${VISUAL}} => ${0}
|
||||
############################
|
||||
# methods and arguments
|
||||
#
|
||||
|
Reference in New Issue
Block a user