diff options
author | Marvin Borner | 2022-08-29 22:09:59 +0200 |
---|---|---|
committer | Marvin Borner | 2022-08-29 23:04:52 +0200 |
commit | 78fc68e8718e2e5afffb10c389d2d58bbd3e0681 (patch) | |
tree | 3c1076824c25882e6a9e305e39c148cc54e9520f /editors/vim | |
parent | 627afd9bb206765699f3420a6ab0847e636550b4 (diff) |
Added snippets
Diffstat (limited to 'editors/vim')
-rw-r--r-- | editors/vim/README.md | 8 | ||||
-rw-r--r-- | editors/vim/bruijn.snippets | 213 |
2 files changed, 221 insertions, 0 deletions
diff --git a/editors/vim/README.md b/editors/vim/README.md index 1b254ef..c10e69d 100644 --- a/editors/vim/README.md +++ b/editors/vim/README.md @@ -15,3 +15,11 @@ In this example using vim-plug (others should work similarly): 1. Add `Plug 'marvinborner/bruijn', { 'rtp': 'editors/vim' }` to your `.vimrc` 2. Run `:PlugInstall` + +# Snippets + +Snippets requires UltiSnips or a similar (compatible) alternative. You +can then install the snippets using something like this (depends on your +path setup): + + ln -s $PWD/bruijn.snippets $HOME/.vim/plugged/vim-snippets/UltiSnips/bruijn.snippets diff --git a/editors/vim/bruijn.snippets b/editors/vim/bruijn.snippets new file mode 100644 index 0000000..35b94cf --- /dev/null +++ b/editors/vim/bruijn.snippets @@ -0,0 +1,213 @@ +priority 0 + +# === Definition snippets === + +snippet "(.+)>" "prefix" r +`!p snip.rv = match.group(1)`‣ $0 +endsnippet + +snippet "(.*)\." "mixfix" r +`!p snip.rv = match.group(1)`…$0 +endsnippet + +# === Greek letters === + +snippet Alpha +Α +endsnippet + +snippet alpha +α +endsnippet + +snippet Beta +Β +endsnippet + +snippet beta +β +endsnippet + +snippet Gamma +Γ +endsnippet + +snippet gamma +γ +endsnippet + +snippet Delta +Δ +endsnippet + +snippet delta +δ +endsnippet + +snippet Epsilon +Ε +endsnippet + +snippet epsilon +ε +endsnippet + +snippet varepsilon +ϵ +endsnippet + +snippet Zeta +Ζ +endsnippet + +snippet zeta +ζ +endsnippet + +snippet Eta +Η +endsnippet + +snippet eta +η +endsnippet + +snippet Theta +Θ +endsnippet + +snippet theta +θ +endsnippet + +snippet Iota +Ι +endsnippet + +snippet iota +ι +endsnippet + +snippet Kappa +Κ +endsnippet + +snippet kappa +κ +endsnippet + +snippet Lambda +Λ +endsnippet + +snippet lambda +λ +endsnippet + +snippet Mu +Μ +endsnippet + +snippet mu +μ +endsnippet + +snippet Nu +Ν +endsnippet + +snippet nu +ν +endsnippet + +snippet Xi +Ξ +endsnippet + +snippet xi +ξ +endsnippet + +snippet Omicron +Ο +endsnippet + +snippet omicron +ο +endsnippet + +snippet Pi +Π +endsnippet + +snippet pi +π +endsnippet + +snippet Rho +Ρ +endsnippet + +snippet rho +ρ +endsnippet + +snippet Sigma +Σ +endsnippet + +snippet sigma +σ +endsnippet + +snippet Tau +Τ +endsnippet + +snippet tau +τ +endsnippet + +snippet Upsilon +Υ +endsnippet + +snippet upsilon +υ +endsnippet + +snippet Phi +Φ +endsnippet + +snippet phi +φ +endsnippet + +snippet varphi +ϕ +endsnippet + +snippet Chi +Χ +endsnippet + +snippet chi +χ +endsnippet + +snippet Psi +Ψ +endsnippet + +snippet psi +ψ +endsnippet + +snippet Omega +Ω +endsnippet + +snippet omega +ω +endsnippet |