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 ++++++++++ nvim/mySnippets/cpp.snippets | 0 nvim/mySnippets/mail.snippets | 31 ++++++++++++ nvim/mySnippets/python.snippets | 0 nvim/mySnippets/tex.snippets | 103 ++++++++++++++++++++++++++++++++++++++++ nvim/mySnippets/vim.snippets | 0 6 files changed, 159 insertions(+) create mode 100644 nvim/mySnippets/all.snippets create mode 100644 nvim/mySnippets/cpp.snippets create mode 100644 nvim/mySnippets/mail.snippets create mode 100644 nvim/mySnippets/python.snippets create mode 100644 nvim/mySnippets/tex.snippets create mode 100644 nvim/mySnippets/vim.snippets (limited to 'nvim/mySnippets') 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 diff --git a/nvim/mySnippets/cpp.snippets b/nvim/mySnippets/cpp.snippets new file mode 100644 index 0000000..e69de29 diff --git a/nvim/mySnippets/mail.snippets b/nvim/mySnippets/mail.snippets new file mode 100644 index 0000000..c512f9b --- /dev/null +++ b/nvim/mySnippets/mail.snippets @@ -0,0 +1,31 @@ +snippet best "Best wishes" b +Best wishes, + +Urbain +endsnippet + +snippet dear "Email template" b +Dear ${1:Greg}, + +${2:# Body of the message} + +Best wishes, + +${3:Urbain} +endsnippet + +snippet sign "Signature" b +Urbain Vaes, +Department of Mathematics +Office 6M09 +endsnippet + +snippet bisous "Gros bisous" b +Gros bisous, + +Urbain +endsnippet + +snippet look "I'm looking forward to ..." b +I am looking forward to hearing from you, +endsnippet diff --git a/nvim/mySnippets/python.snippets b/nvim/mySnippets/python.snippets new file mode 100644 index 0000000..e69de29 diff --git a/nvim/mySnippets/tex.snippets b/nvim/mySnippets/tex.snippets new file mode 100644 index 0000000..fb061f0 --- /dev/null +++ b/nvim/mySnippets/tex.snippets @@ -0,0 +1,103 @@ +snippet real "Field of real numbers" i +\real +endsnippet + +snippet grad "Gradient" i +\grad +endsnippet + +snippet div "Divergence" i +\dive +endsnippet + +snippet new "New command" b +\newcommand{$1}[$2]{$3}$0 +endsnippet + +snippet op "Operator style" i +\op +endsnippet + +snippet pard "Partial derivative" i +\pardl{$1}{$2}$0 +endsnippet + +snippet pardd "Double partial derivative" i +\parddl{$1}{$2}$0 +endsnippet + +snippet herm "Hermite polynomials" i +\hermite +endsnippet + +snippet red "Red text" i +\red{$1}$0 +endsnippet + +snippet sumi "Sum over index set" i +\sum_{${1:i} \in ${2:I}}$0 +endsnippet + +snippet int "Integral" i +\int_{$1} +endsnippet + +snippet ip "Inner product" i +\ip{$1}{$2}$0 +endsnippet + +snippet norm "Norm" i +\norm{$1}$0 +endsnippet + +snippet test "Test functions" i +\test{${1:\real^n}}$0 +endsnippet + +snippet lp "Flat Lp space" i +\lp{${1:2}}{${2:\real^n}}$0 +endsnippet + +snippet lpw "Weighted Lp space" i +\wlp{${1:2}}{${2:\real^n}}{${3:\rho}}$0 +endsnippet + +snippet sob "Flat Sobolev space" i +\sobolev{${1:s}}{${2:\real^n}}$0 +endsnippet + +snippet sobw "Weighted Sobolev space" i +\wsobolev{${1:s}}{${2:\real^n}}{${3:\rho}}$0 +endsnippet + +snippet cont "Continuous function" i +\cont{$1}{$2}$0 +endsnippet + +snippet mean "Expectation" i +\expect $0 +endsnippet + +snippet dot "Dot product" i +\dotx +endsnippet + +snippet abs "Absolute value" i +\abs{ $1 }$0 +endsnippet + +snippet sum "Sum" i +\sum_{${1:i=1}}^{${2:n}} +endsnippet + +snippet smooth "Smooth function" i +\smooth{${1:\real^n}} $0 +endsnippet + +snippet cont "Continuous function" i +\cont{$1}{$2} $0 +endsnippet + +snippet ref "Clever reference" i +\cref{$1}$0 +endsnippet diff --git a/nvim/mySnippets/vim.snippets b/nvim/mySnippets/vim.snippets new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3