merging vim folders
This commit is contained in:
parent
4234763787
commit
7f78647c46
@ -2,3 +2,7 @@ snippet pline "print a line" i
|
||||
printf("----------------------------------------\n");
|
||||
endsnippet
|
||||
|
||||
snippet dpvi "Define printvi for printing variable int" b
|
||||
#define printvi(X) printf("%s = %d\n", #X, X);
|
||||
endsnippet
|
||||
|
||||
|
@ -1,2 +1,10 @@
|
||||
extends jinja
|
||||
extends html
|
||||
|
||||
snippet static "add a staic url_for" i
|
||||
{{ url_for("static", $1) }} $0
|
||||
endsnippet
|
||||
|
||||
snippet url "add a url_for inline" i
|
||||
{{ url_for("$1") }} $0
|
||||
endsnippet
|
||||
|
@ -20,10 +20,18 @@ snippet bb "mathbb" i
|
||||
\mathbb{${1:${VISUAL:R}}} $0
|
||||
endsnippet
|
||||
|
||||
snippet in "\in" i
|
||||
\in $0
|
||||
endsnippet
|
||||
|
||||
snippet text "implement text in tex" i
|
||||
\text{ ${1:${VISUAL:text}} } $0
|
||||
endsnippet
|
||||
|
||||
snippet quad "small space (like a tab)" i
|
||||
\quad $0
|
||||
endsnippet
|
||||
|
||||
snippet br "break a line in tex mode" i
|
||||
\\\\\\\\
|
||||
$0
|
||||
@ -43,6 +51,13 @@ snippet set "prepare for a set in tex {}" i
|
||||
\\\\{ ${1:${VISUAL:e}} \\\\} $0
|
||||
endsnippet
|
||||
|
||||
snippet forall "forall"
|
||||
\forall $0
|
||||
endsnippet
|
||||
|
||||
snippet exists "exists"
|
||||
\exists $0
|
||||
|
||||
priority -1
|
||||
snippet "(\w+)" "latex default" r
|
||||
\\`!p snip.rv = match.group(1)` $1
|
||||
|
1
vim/.vim/UltiSnips/plantuml.snippets
Normal file
1
vim/.vim/UltiSnips/plantuml.snippets
Normal file
@ -0,0 +1 @@
|
||||
extends 'uml'
|
15
vim/.vim/UltiSnips/tex.snippets
Normal file
15
vim/.vim/UltiSnips/tex.snippets
Normal file
@ -0,0 +1,15 @@
|
||||
snippet base "Description" b
|
||||
\documentclass{${1:${VISUAL:article}}}
|
||||
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage[french]{babel}
|
||||
\usepackage{amsmath, amsfonts, amssymb, amsthm}
|
||||
|
||||
\begin{document}
|
||||
|
||||
$0
|
||||
|
||||
\end{document}
|
||||
endsnippet
|
||||
|
3
vim/.vim/UltiSnips/uml.snippets
Normal file
3
vim/.vim/UltiSnips/uml.snippets
Normal file
@ -0,0 +1,3 @@
|
||||
snippet use "usecase"
|
||||
usecase $1 as '$2' $0
|
||||
endsnippet
|
@ -1 +1,8 @@
|
||||
noremap <F11> <ESC>:vert term python -i %<CR>
|
||||
noremap <F12> <ESC>:vert term python %<CR>
|
||||
|
||||
set sw=4
|
||||
set ts=4
|
||||
set sts=4
|
||||
|
||||
set foldmethod=indent
|
||||
|
5
vim/.vim/ftplugin/tex.vim
Normal file
5
vim/.vim/ftplugin/tex.vim
Normal file
@ -0,0 +1,5 @@
|
||||
set concealcursor=""
|
||||
|
||||
highlight Conceal ctermfg=red
|
||||
|
||||
noremap <silent> <F12> <ESC>:silent !pdflatex % && mupdf %:r.pdf&<CR>
|
Loading…
Reference in New Issue
Block a user