From deb3266920148cb9c0715e5d7225d3df6a9f318e Mon Sep 17 00:00:00 2001 From: jdhao Date: Sat, 27 Apr 2019 00:16:43 +0800 Subject: Add Ultisnips snippets --- my_snippets/python.snippets | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 my_snippets/python.snippets (limited to 'my_snippets/python.snippets') diff --git a/my_snippets/python.snippets b/my_snippets/python.snippets new file mode 100644 index 0000000..e6ecb78 --- /dev/null +++ b/my_snippets/python.snippets @@ -0,0 +1,14 @@ +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 -- cgit v1.2.3