summaryrefslogtreecommitdiff
path: root/nvim/mySnippets
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-06-26 11:21:55 +0200
committerUrbain Vaes <urbain@vaes.uk>2015-06-26 11:21:55 +0200
commitf526017928ea2c928877dc519ad97dc5ffafd416 (patch)
tree2010630a4158d7adc829f2052f2e8ec3fe5f4b7f /nvim/mySnippets
parente9a5df445029f95b6d44f9c7b086bf33f4275acf (diff)
parent17d2ff0828ed8e6e7e59948fb14f17fd5ee5f8e2 (diff)
Merge branch 'master' of github.com:uvaes/dotfiles
Conflicts: zshrc
Diffstat (limited to 'nvim/mySnippets')
-rw-r--r--nvim/mySnippets/all.snippets25
-rw-r--r--nvim/mySnippets/cpp.snippets35
-rw-r--r--nvim/mySnippets/mail.snippets33
-rw-r--r--nvim/mySnippets/python.snippets4
-rw-r--r--nvim/mySnippets/tex.snippets118
-rw-r--r--nvim/mySnippets/vim.snippets0
6 files changed, 0 insertions, 215 deletions
diff --git a/nvim/mySnippets/all.snippets b/nvim/mySnippets/all.snippets
deleted file mode 100644
index 8094025..0000000
--- a/nvim/mySnippets/all.snippets
+++ /dev/null
@@ -1,25 +0,0 @@
-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
deleted file mode 100644
index d314641..0000000
--- a/nvim/mySnippets/cpp.snippets
+++ /dev/null
@@ -1,35 +0,0 @@
-snippet print_mat "Print matrix" b
-for (unsigned int iii = 0; iii < ${1:mat}.size(); ++iii) {
- cout << setw(12) << $1[iii][0];
- for (unsigned int jjj = 1; jjj < $1.size(); ++jjj) {
- cout << ", ";
- cout << setw(12) << $1[iii][jjj];
- }
- cout << endl;
-}
-$0
-endsnippet
-
-snippet print_vec "Print vector" b
-for (unsigned int iii = 0; iii < ${1:mat}.size(); ++iii) {
- cout << setw(12) << $1[iii];
- cout << endl;
-}
-$0
-endsnippet
-
-snippet forij "Matrix iteration" b
-for (int ${2:i} = 0; $2 < ${1:count}; $2++) {
- for (int ${4:j} = 0; $4 < $1; $4++) {
- ${5}
- }
-}
-endsnippet
-
-snippet vec "vector" i
-vector<${1:double}> $0
-endsnippet
-
-snippet mat "matrix" i
-vector< vector<${1:double}> > $0
-endsnippet
diff --git a/nvim/mySnippets/mail.snippets b/nvim/mySnippets/mail.snippets
deleted file mode 100644
index 9839916..0000000
--- a/nvim/mySnippets/mail.snippets
+++ /dev/null
@@ -1,33 +0,0 @@
-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
-Best wishes,
-
-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
deleted file mode 100644
index 4a7d74d..0000000
--- a/nvim/mySnippets/python.snippets
+++ /dev/null
@@ -1,4 +0,0 @@
-snippet nicolas "Nicolas" i
-Nicolas est le meilleur programmeur $1
-$0
-endsnippet
diff --git a/nvim/mySnippets/tex.snippets b/nvim/mySnippets/tex.snippets
deleted file mode 100644
index 20ffaa4..0000000
--- a/nvim/mySnippets/tex.snippets
+++ /dev/null
@@ -1,118 +0,0 @@
-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 ipw "Inner product" i
-\wip{$1}{$2}{$3}$0
-endsnippet
-
-snippet norm "Norm" i
-\norm{$1}$0
-endsnippet
-
-snippet normw "Weighted norm" i
-\wnorm{$1}{${2:\gamma}}
-endsnippet
-
-snippet test "Test functions" i
-\test{${1:\real^n}}$0
-endsnippet
-
-snippet lp "Flat Lp space" i
-\flp{${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
-
-snippet frame "My frame snippet" b
-\begin{frame}
- \frametitle{$1}
- $0
-\end{frame}
-endsnippet
diff --git a/nvim/mySnippets/vim.snippets b/nvim/mySnippets/vim.snippets
deleted file mode 100644
index e69de29..0000000
--- a/nvim/mySnippets/vim.snippets
+++ /dev/null