1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00
jdhao-nvim-config/my_snippets/python.snippets
2019-09-16 23:59:09 +08:00

19 lines
348 B
Plaintext

snippet head "Python source file header" b
"""
Description: $1
Author: Jie-dong Hao
Date: `!v strftime("%Y-%m-%d %H:%M:%S%z")`
Update: `!v strftime("%Y-%m-%d %H:%M:%S%z")`
"""
$0
endsnippet
snippet print "Print value of some variable"
print("$1".format($2))
$0
endsnippet
snippet impa "import FOO as BAR" b
import ${1:FOO} as ${2:BAR}
endsnippet