Skip to content

Instantly share code, notes, and snippets.

@breandan
Last active December 22, 2020 05:13
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breandan/ed814aba2cee6d27a0efff655e231b09 to your computer and use it in GitHub Desktop.
Save breandan/ed814aba2cee6d27a0efff655e231b09 to your computer and use it in GitHub Desktop.
Mathematical symbol macros for [idea]vim
" To only apply these macros in e.g. Python files, prepend 'autocmd FileType py', e.g.:
" autocmd FileType py inoremap \mu μ
inoremap \alpha α
inoremap \beta β
inoremap \gamma γ
inoremap \delta δ
inoremap \epsilon ε
inoremap \zeta ζ
inoremap \eta η
inoremap \theta θ
inoremap \iota ι
inoremap \kappa κ
inoremap \lambda λ
inoremap \mu μ
inoremap \nu ν
inoremap \xi ξ
inoremap \pi π
inoremap \rho ρ
inoremap \sigma σ
inoremap \tau τ
inoremap \upsilon υ
inoremap \phi φ
inoremap \chi χ
inoremap \psi ψ
inoremap \omega ω
inoremap \Gamma Γ
inoremap \Delta Δ
inoremap \Lambda Λ
inoremap \Xi Ξ
inoremap \Pi Π
inoremap \Sigma Σ
inoremap \Upsilon ϒ
inoremap \Phi Φ
inoremap \Psi Ψ
inoremap \Omega Ω
inoremap \nabla ∇
inoremap \partial ∂
inoremap \vdash ⊢
inoremap \perp ⊥
inoremap \leftarrow ←
inoremap \rightarrow →
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment