diff options
author | Urbain Vaes <urbain@vaes.uk> | 2015-10-30 14:24:28 +0000 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2015-10-30 14:24:28 +0000 |
commit | 4fbc8645147de6b134b9540753239810b2cf7942 (patch) | |
tree | 08dbea98021ef49655d66fec7806bcacbdab896d /.vim | |
parent | 4cac9a922bb8ee70445f54b454952b87108bae2f (diff) |
Move personal files to different repository
Diffstat (limited to '.vim')
l--------- | .vim/mySnippets | 1 | ||||
-rw-r--r-- | .vim/mySnippets/all.snippets | 25 | ||||
-rw-r--r-- | .vim/mySnippets/cpp.snippets | 35 | ||||
-rw-r--r-- | .vim/mySnippets/mail.snippets | 33 | ||||
-rw-r--r-- | .vim/mySnippets/python.snippets | 4 | ||||
-rw-r--r-- | .vim/mySnippets/tex.snippets | 168 | ||||
-rw-r--r-- | .vim/mySnippets/vim.snippets | 0 | ||||
l--------- | .vim/vimundo | 1 |
8 files changed, 2 insertions, 265 deletions
diff --git a/.vim/mySnippets b/.vim/mySnippets new file mode 120000 index 0000000..b216e98 --- /dev/null +++ b/.vim/mySnippets @@ -0,0 +1 @@ +../.perso/mySnippets
\ No newline at end of file diff --git a/.vim/mySnippets/all.snippets b/.vim/mySnippets/all.snippets deleted file mode 100644 index 8094025..0000000 --- a/.vim/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/.vim/mySnippets/cpp.snippets b/.vim/mySnippets/cpp.snippets deleted file mode 100644 index d314641..0000000 --- a/.vim/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/.vim/mySnippets/mail.snippets b/.vim/mySnippets/mail.snippets deleted file mode 100644 index 9839916..0000000 --- a/.vim/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/.vim/mySnippets/python.snippets b/.vim/mySnippets/python.snippets deleted file mode 100644 index 6dbc272..0000000 --- a/.vim/mySnippets/python.snippets +++ /dev/null @@ -1,4 +0,0 @@ -snippet fori "for loop over range" b -for ${1:i} in range(${2:n}): - ${0:pass} -endsnippet diff --git a/.vim/mySnippets/tex.snippets b/.vim/mySnippets/tex.snippets deleted file mode 100644 index dd7ae0b..0000000 --- a/.vim/mySnippets/tex.snippets +++ /dev/null @@ -1,168 +0,0 @@ -# Misc # -snippet herm "Hermite polynomials" w -\hermite{$1}$0 -endsnippet - -snippet hermf "Hermite function" w -\hermitef{$1}$0 -endsnippet - -snippet gauss "Gaussian density" w -\gaussian[${1:\mu}][${2:\Sigma}]$0 -endsnippet - -snippet inf "Infinity" w -\infty$0 -endsnippet - -snippet fa "For all" w -\forall $0 -endsnippet - -snippet text "Math text" w -\text{ ${1:text} }$0 -endsnippet - - - -# Differential calculus # -snippet int "Integral" w -\int_{${1:\real^n}}$0 -endsnippet - -snippet grad "Gradient" w -\grad{$1}$0 -endsnippet - -snippet div "Divergence" w -\dive -endsnippet - - - -# Sequences and sums # -snippet seq "Sequence" w -\seq{${1:element}}{${2:index}}{${3:initial}}{${4:final}}$0 -endsnippet - -snippet sumi "Sum over index set" w -\sum_{${1:i} \in ${2:I}}$0 -endsnippet - -snippet sum "Sum" w -\sum_{${1:i=1}}^{${2:n}} -endsnippet - - - -# Operators -snippet op "Operator" w -\op{${1:operator}}$0 -endsnippet - -snippet mean "Expectation" w -\expect $0 -endsnippet - -snippet proj "Projection" w -\proj{${1:element}}{${2:subspace}}$0 -endsnippet - -snippet orth "Orthogonal complement" w -\orth{${1:space}}$0 -endsnippet - -snippet dot "Dot product" w -\dotx -endsnippet - - - -# Spaces # -snippet space "Space" w -\Space{${1:name}}$0 -endsnippet - -snippet poly "Polynomials" w -\poly{${1:d}} -endsnippet - -snippet cont "Continuous function" w -\cont{$1}{$2}$0 -endsnippet - -snippet smooth "Smooth function" w -\smooth{${1:\real^n}} $0 -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 real "Field of real numbers" w -\real -endsnippet - - - -# Norms and inner products # -snippet abs "Absolute value" w -\abs{$1}$0 -endsnippet - -snippet norm "Sobolev norm" w -\norm{${1:function}}$0 -endsnippet - -snippet snorm "Sobolev norm" w -\norm{${1:function}}[${2:index}]$0 -endsnippet - -snippet wsnorm "Weighted Sobolev norm" w -\norm{${1:function}}[${2:index}][${3:weight}]$0 -endsnippet - -snippet ip "Inner product" w -\ip{$1}{$2}$0 -endsnippet - -snippet sip "Sobolev inner product" w -\ip{${1:function}}{${2:function}}[${3:index}]$0 -endsnippet - -snippet wsip "Weighted Sobolev inner product" w -\ip{${1:function}}{${2:function}}[${3:index}][${4:weight}]$0 -endsnippet - - - -# Beamer # -snippet frame "My frame snippet" b -\begin{frame} - \frametitle{$1} - $0 -\end{frame} -endsnippet - - - -# Latex commands # -snippet red "Red text" w -\red{$1}$0 -endsnippet - -snippet ref "Clever reference" w -\cref{$1}$0 -endsnippet - -snippet new "New command" b -\newcommand{$1}[$2]{$3}$0 -endsnippet diff --git a/.vim/mySnippets/vim.snippets b/.vim/mySnippets/vim.snippets deleted file mode 100644 index e69de29..0000000 --- a/.vim/mySnippets/vim.snippets +++ /dev/null diff --git a/.vim/vimundo b/.vim/vimundo new file mode 120000 index 0000000..106e144 --- /dev/null +++ b/.vim/vimundo @@ -0,0 +1 @@ +../.perso/vimundo
\ No newline at end of file |