summaryrefslogtreecommitdiff
path: root/.vim/mySnippets/all.snippets
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-08-08 20:08:42 +0200
committerUrbain Vaes <urbain@vaes.uk>2015-08-08 20:08:42 +0200
commit8df9472e0cdbab0d12211c2bc77918e8f515c409 (patch)
treef420b705adfec42bb33191c44c8fe252fca0f785 /.vim/mySnippets/all.snippets
parentb8a9b07b741cddbf6e0476e70c94aa186d62b6ae (diff)
Improve installation and organization
Diffstat (limited to '.vim/mySnippets/all.snippets')
-rw-r--r--.vim/mySnippets/all.snippets25
1 files changed, 25 insertions, 0 deletions
diff --git a/.vim/mySnippets/all.snippets b/.vim/mySnippets/all.snippets
new file mode 100644
index 0000000..8094025
--- /dev/null
+++ b/.vim/mySnippets/all.snippets
@@ -0,0 +1,25 @@
+global !p
+def make_comment():
+ b, e = vim.eval("&commentstring").split( '%s' )
+ return b, e
+endglobal
+
+snippet todo "A universal TODO reminder" b
+`!p
+comment = make_comment()
+snip.rv = comment[ 0 ]
+` TODO: ${1:desc} (`!v $USER`, `!v strftime("%c")`) `!p
+comment = make_comment()
+snip.rv = comment[ 1 ]`
+$0
+endsnippet
+
+snippet fix "A universal FIXME reminder" b
+`!p
+comment = make_comment()
+snip.rv = comment[ 0 ]
+` FIXME: ${1:desc} (`!v $USER`, `!v strftime("%c")`) `!p
+comment = make_comment()
+snip.rv = comment[ 1 ]`
+$0
+endsnippet