diff options
author | Urbain Vaes <urbain@vaes.uk> | 2015-05-18 15:05:59 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2015-05-18 15:05:59 +0100 |
commit | d2d3900ea28d1bd2a86238e9c16d142d07ec7e45 (patch) | |
tree | a7aeef2a9cca2de8be3e77c3116d4b332a088ef7 /nvim/mySnippets/all.snippets | |
parent | 96f53af4ab7b853034c4570ba7f21e2bac10dcbf (diff) |
added .nvim with configuration
Diffstat (limited to 'nvim/mySnippets/all.snippets')
-rw-r--r-- | nvim/mySnippets/all.snippets | 25 |
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 |