summaryrefslogtreecommitdiffstats
path: root/vim
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-10-22 23:19:30 -0400
committerJesse Luehrs <doy@tozt.net>2014-10-22 23:19:45 -0400
commit72de5f9814ad7fe8b9520b3ecd676dfa16c5fc62 (patch)
tree8f18110e9f27cb3bf1659fb64b528172f3f25073 /vim
parenta3bb0c229550673e2e8789f7df021f280bb391cd (diff)
downloadconf-72de5f9814ad7fe8b9520b3ecd676dfa16c5fc62.tar.gz
conf-72de5f9814ad7fe8b9520b3ecd676dfa16c5fc62.zip
start saving some python snippets
Diffstat (limited to 'vim')
-rw-r--r--vim/snippets/python.snippets8
1 files changed, 8 insertions, 0 deletions
diff --git a/vim/snippets/python.snippets b/vim/snippets/python.snippets
new file mode 100644
index 0000000..4887167
--- /dev/null
+++ b/vim/snippets/python.snippets
@@ -0,0 +1,8 @@
+snippet test
+ import unittest
+
+ ${1}
+
+ class ${2:`join(map(split(matchstr(expand("%"), '^t\(ests\?\)\?/\zs.*\ze\.py'), '_'), 'toupper(v:val[0]) . v:val[1:]'), '')`}(unittest.TestCase):
+ def test_${3}(self):
+ ${4}