From d2d3900ea28d1bd2a86238e9c16d142d07ec7e45 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Mon, 18 May 2015 15:05:59 +0100 Subject: added .nvim with configuration --- nvim/mySnippets/all.snippets | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 nvim/mySnippets/all.snippets (limited to 'nvim/mySnippets/all.snippets') 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 -- cgit v1.2.3