summaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/mySnippets/tex.snippets16
-rw-r--r--vim/vimrc1
2 files changed, 14 insertions, 3 deletions
diff --git a/vim/mySnippets/tex.snippets b/vim/mySnippets/tex.snippets
index ac0fd05..0fba4e8 100644
--- a/vim/mySnippets/tex.snippets
+++ b/vim/mySnippets/tex.snippets
@@ -19,11 +19,11 @@ snippet op "Operator style" i
endsnippet
snippet pard "Partial derivative" i
-\pard{$1}{$2}$0
+\pardl{$1}{$2}$0
endsnippet
snippet pardd "Double partial derivative" i
-\pardd{$1}{$2}$0
+\parddl{$1}{$2}$0
endsnippet
snippet herm "Hermite polynomials" i
@@ -38,6 +38,10 @@ 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
@@ -85,3 +89,11 @@ 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
diff --git a/vim/vimrc b/vim/vimrc
index 1ef49d4..bef1eb2 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -215,7 +215,6 @@ vnoremap g^ ^
"" Latex
nmap <buffer> <F2> <Plug>LatexChangeEnv
let g:tex_fast=""
-
autocmd Filetype tex call SetTexOptions()
function! SetTexOptions()