summaryrefslogtreecommitdiff
path: root/nvim/mySnippets/all.snippets
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-05-18 15:05:59 +0100
committerUrbain Vaes <urbain@vaes.uk>2015-05-18 15:05:59 +0100
commitd2d3900ea28d1bd2a86238e9c16d142d07ec7e45 (patch)
treea7aeef2a9cca2de8be3e77c3116d4b332a088ef7 /nvim/mySnippets/all.snippets
parent96f53af4ab7b853034c4570ba7f21e2bac10dcbf (diff)
added .nvim with configuration
Diffstat (limited to 'nvim/mySnippets/all.snippets')
-rw-r--r--nvim/mySnippets/all.snippets25
1 files changed, 25 insertions, 0 deletions
diff --git a/nvim/mySnippets/all.snippets b/nvim/mySnippets/all.snippets
new file mode 100644
index 0000000..8094025
--- /dev/null
+++ b/nvim/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