summaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/mySnippets/tex.snippets8
-rw-r--r--vim/vimrc1
2 files changed, 8 insertions, 1 deletions
diff --git a/vim/mySnippets/tex.snippets b/vim/mySnippets/tex.snippets
index b477512..9c2153e 100644
--- a/vim/mySnippets/tex.snippets
+++ b/vim/mySnippets/tex.snippets
@@ -65,3 +65,11 @@ endsnippet
snippet sobw "Weighted Sobolev space" i
\wsobolev{${1:s}}{${2:\real^n}}{${3:\rho}} $0
endsnippet
+
+snippet new "New command" b
+\newcommand{$1}[$2]{$3}
+endsnippet
+
+snippet smooth "Smooth function" i
+\smooth{${1:\real^n}} $0
+endsnippet
diff --git a/vim/vimrc b/vim/vimrc
index 1d396ff..33c095a 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -214,7 +214,6 @@ vnoremap g^ ^
"" Latex
nmap <buffer> <F2> <Plug>LatexChangeEnv
let g:tex_fast=""
-
autocmd Filetype tex call SetTexOptions()
function! SetTexOptions()