summaryrefslogtreecommitdiff
path: root/nvim/mySnippets
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-06-25 11:35:07 +0100
committerUrbain Vaes <urbain@vaes.uk>2015-06-25 11:35:07 +0100
commite2d48b806e0e9719abbee2efff2d1af739979b94 (patch)
treee1748568e55c500c69d7c199bdfa06aee7fbd86c /nvim/mySnippets
parent2ba9604d198fca427c26cba3e82a1b256c633543 (diff)
Merge vim and neovim configs
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.snippets110
-rw-r--r--nvim/mySnippets/vim.snippets0
6 files changed, 0 insertions, 207 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 884cc2d..0000000
--- a/nvim/mySnippets/tex.snippets
+++ /dev/null
@@ -1,110 +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 "Lp spaces" w
-\lp{${1:exponent}}{${2:domain}}${3/^.+$/[/}${3:weight}${3/^.+$/]/}$0
-endsnippet
-
-snippet sob "Sobolev spaces" w
-\sobolev{${1:exponent}}{${2:domain}}${3/^.+$/[/}${3:weight}${3/^.+$/]/}$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