Insert cool unicode characters while in insert mode just by typing LaTeX and Agda Mode inspired abbreviations.
- Installation
- Usage
- List of abbreviations
vim-unicoder
may be installed by any of your favourite plugin managers. Be it Pathogen, Vundle or Plug, use whichever you prefer.
For example, when using with Plug:
Plug 'arthurxavierx/vim-unicoder'
vim-unicoder
makes it easy to insert unicode characters in Vim buffers. By using Vim's native abbreviations, it's possible, for instance, to just type \int x\^n
(and press space, any other separator or <C-]>
after the n
) and the text becomes ∫ xⁿ
as you write it.
Because this plugin uses Vim's native abbreviations, it has some limitations, though. Please, be aware of them before submitting issues to this project.
The abbreviations here defined do tightly depend on the value of the iskeyword
setting, which varies according to the file type.
Some abbreviations here defined will not work with file types that define conflicting keywords.
Also, regarding the insertion and replacement of the abbreviations, some abbreviations will not work if there are special characters right before them. This section of Vim's help file on :h abbreviations explains this limitation:
The characters before the cursor must match the abbreviation. Each type has
an additional rule:
full-id In front of the match is a non-keyword character, or this is where
the line or insertion starts. Exception: When the abbreviation is
only one character, it is not recognized if there is a non-keyword
character in front of it, other than a space or a tab.
end-id In front of the match is a keyword character, or a space or a tab,
or this is where the line or insertion starts.
non-id In front of the match is a space, tab or the start of the line or
the insertion.
Name | Default | Description |
---|---|---|
g:unicoder_command_abbreviations |
1 |
Have these abbreviations work in the command and search lines. |
g:unicoder_exclude_filetypes |
['tex', 'latex', 'plaintex'] |
File types in which these abbreviations will not work. |
Abbreviations | Character |
---|---|
\GA \Alpha |
Α |
\GB \Beta |
Β |
\GG \Gamma |
Γ |
\GD \Delta |
Δ |
\GE \Epsilon |
Ε |
\GZ \Zeta |
Ζ |
\GH \Eta |
Η |
\GTH \Theta |
Θ |
\GI \Iota |
Ι |
\GK \Kappa |
Κ |
\GL \Lambda |
Λ |
\GM \Mu |
Μ |
\GN \Nu |
Ν |
\GX \Xi |
Ξ |
\GO \Omicron |
Ο |
\GP \Pi |
Π |
\GR \Rho |
Ρ |
\GS \Sigma |
Σ |
\GT \Tau |
Τ |
\GU \Upsilon |
Υ |
\GF \Phi |
Φ |
\GC \Chi |
Χ |
\GPS \Psi |
Ψ |
\GW \Omega |
Ω |
Abbreviations | Character |
---|---|
\ga \alpha |
α |
\gb \beta |
β |
\gg \gamma |
γ |
\gd \delta |
δ |
\ge \epsilon |
ε |
\gz \zeta |
ζ |
\gh \eta |
η |
\gth \theta |
θ |
\gi \iota |
ι |
\gk \kappa |
κ |
\gl \lambda |
λ |
\gm \mu |
μ |
\gn \nu |
ν |
\gx \xi |
ξ |
\go \omicron |
ο |
\gp \pi |
π |
\gr \rho |
ρ |
\gs \sigma |
σ |
\gt \tau |
τ |
\gu \upsilon |
υ |
\gf \phi |
φ |
\gc \chi |
χ |
\gps \psi |
ψ |
\gw \omega |
ω |
Abbreviations | Character |
---|---|
\box |
□ |
\bbox |
■ |
\sbox |
▫ |
\sbbox |
▪ |
\square |
□ |
\bsquare |
■ |
\ssquare |
▫ |
\sbsquare |
▪ |
\diamond |
◇ |
\bdiamond |
◆ |
\lozenge |
◊ |
\circle |
○ |
\bcircle |
● |
\dcircle |
◌ |
\triangle |
△ |
\btriangle |
▲ |
\skull |
☠ |
\danger |
☡ |
\radiation |
☢ |
\biohazard |
☣ |
\yinyang |
☯ |
\frownie |
☹ |
\smiley |
☺ |
\blacksmiley |
☻ |
\sun |
☼ |
\rightmoon |
☽ |
\leftmoon |
☾ |
\female |
♀ |
\male |
♂ |
Abbreviations | Character |
---|---|
\dagger |
† |
\ddager |
‡ |
\prime |
′ |
\second |
″ |
\third |
‴ |
\fourth |
⁗ |
\euro |
€ |
Abbreviations | Character |
---|---|
\pm |
± |
\mp |
∓ |
\sum |
∑ |
\prod |
∏ |
\coprod |
∐ |
\qed |
∎ |
\ast |
∗ |
times |
× |
\div |
÷ |
\bullet |
• |
\o \comp \circ |
∘ |
\. \cdot |
∙ |
\: |
∶ |
\:: |
∷ |
\sqrt |
√ |
\sqrt3 |
∛ |
\sqrt4 |
∜ |
\inf |
∞ |
\propto |
∝ |
\pitchfork |
⋔ |
\all \forall |
∀ |
\ex \exists |
∃ |
\nex \nexists |
∄ |
Abbreviations | Character |
---|---|
\lceil |
⌈ |
\rceil |
⌉ |
\lfloor |
⌊ |
\rfloor |
⌋ |
\langle |
⟨ |
\rangle |
⟩ |
\llens |
⦇ |
\rlens |
⦈ |
\[[ |
⟦ |
\]] |
⟧ |
Abbreviations | Character |
---|---|
\empty \emptyset |
∅ |
\in |
∈ |
\notin |
∉ |
\cap \inters |
∩ |
\cup \union |
∪ |
\subset |
⊂ |
\supset |
⊃ |
\nsubset |
⊄ |
\nsupset |
⊅ |
\subseteq |
⊆ |
\supseteq |
⊇ |
\nsubseteq |
⊈ |
\nsupseteq |
⊉ |
Abbreviations | Character |
---|---|
\sqsubset |
⊏ |
\sqsupset |
⊐ |
\sqsubseteq |
⊑ |
\sqsupseteq |
⊒ |
\sqcap |
⊓ |
\sqcup |
⊔ |
Abbreviations | Character |
---|---|
\land \and |
∧ |
\lor \or |
∨ |
\lnot \not \neg |
¬ |
\top |
⊤ |
\bot |
⊥ |
\multimap \-o |
⊸ |
\multimapinv \invmultimap |
⟜ |
\parr \invamp |
⅋ |
\therefore |
∴ |
\because |
∵ |
Abbreviations | Character |
---|---|
\grad \nabla |
∇ |
\partial |
𝜕 |
\inc \increment |
∆ |
\int |
∫ |
\iint |
∬ |
\iiint |
∭ |
\oint |
∮ |
\oiint |
∯ |
\oiiint |
∰ |
Abbreviations | Character |
---|---|
\sim \~ |
∼ |
\nsim \~n |
≁ |
\simeq \=~ |
≃ |
\nsimeq \=~n |
≄ |
\cong \iso \==~ |
≅ |
\ncong \niso \==~n |
≇ |
\approx \~2 |
≈ |
\napprox \~2n |
≉ |
\neq \=n \!= \/= |
≠ |
\equiv \=== |
≡ |
\nequiv \===n |
≢ |
\Equiv |
≣ |
Abbreviations | Character |
---|---|
\leq \<= |
≤ |
\nleq \<=n |
≰ |
\geq \>= |
≥ |
\ngeq \>=n |
≱ |
\ll \<< |
« |
\lll |
⋘ |
\gg \>> |
» |
\ggg |
⋙ |
Abbreviations | Character |
---|---|
\ent \entails \vdash \|- |
⊢ |
\nent \nentails \nvdash \|-n |
⊬ |
\dashv \-| |
⊣ |
\models \vDashh \|= |
⊨ |
\nvDash \|=n |
⊭ |
\Vdash \||- |
⊩ |
\nVdash \||-n |
⊮ |
\VDash \||= |
⊫ |
\nVDash \||=n |
⊯ |
\Vvdash \|||- |
⊪ |
Abbreviations | Character |
---|---|
\oplus \o+ |
⊕ |
\ominus \o- |
⊖ |
\otimes \ox |
⊗ |
\oslash \o/ |
⊘ |
\odot \o. |
⊙ |
\ocirc \oo |
⊚ |
\oast \o* |
⊛ |
\oequal \o= |
⊜ |
Abbreviations | Character |
---|---|
\boxplus \bplus \b+ |
⊞ |
\boxminus \bminus \b- |
⊟ |
\boxtimes \btimes \bx |
⊠ |
\boxdot \bdot \b. |
⊡ |
Abbreviations | Character |
---|---|
\ldots \... |
… |
\cdots |
⋯ |
\vdots |
⋮ |
\iddots |
⋰ |
\ddots |
⋱ |
Abbreviations | Character |
---|---|
\mapsto |
↦ |
\to \arrow \rarrow \rightarrow \-> |
→ |
\larrow \leftarrow \<- |
← |
\uarrow \uparrow \-^ \-! |
↑ |
\darrow \downarrow \-v |
↓ |
\lrarrow \leftrightarrow |
↔ |
\udarrow \updownarrow \^-v \!-v |
↕ |
\nwarrow |
↖ |
\nearrow |
↗ |
\searrow |
↘ |
\swarrow |
↙ |
Abbreviations | Character |
---|---|
\To \Arrow \Rarrow \Rightarrow \=> |
⇒ |
\Larrow \Leftarrow \=< |
⇐ |
\Uarrow \Uparrow \=^ \=! |
⇑ |
\Darrow \Downarrow \=v |
⇓ |
\Lrarrow \Leftrightarrow |
⇔ |
\Udarrow \Updownarrow \^=v \!=v |
⇕ |
\Nwarrow |
⇖ |
\Nearrow |
⇗ |
\Searrow |
⇘ |
\Swarrow |
⇙ |
Abbreviations | Character |
---|---|
\Bool \Bools \Boolean \Booleans \bb |
𝔹 |
\Ints \Integers \bz |
ℤ |
\Rats \Rationals \bq |
ℚ |
\Reals \br |
ℝ |
\Comps \Complex \Complexes \bc |
ℂ |
\Quats \Quaternions \bh |
ℍ |
\Primes \bp |
ℙ |
Abbreviations | Character |
---|---|
\frac14 |
¼ |
\frac12 |
½ |
\frac34 |
¾ |
\frac13 |
⅓ |
\frac23 |
⅔ |
\frac15 |
⅕ |
\frac25 |
⅖ |
\frac35 |
⅗ |
\frac45 |
⅘ |
\frac16 |
⅙ |
\frac56 |
⅚ |
\frac18 |
⅛ |
\frac38 |
⅜ |
\frac58 |
⅝ |
\frac78 |
⅞ |
Abbreviations | Character |
---|---|
\_a |
ₐ |
\_e |
ₑ |
\_h |
ₕ |
\_i |
ᵢ |
\_j |
ⱼ |
\_k |
ₖ |
\_l |
ₗ |
\_m |
ₘ |
\_n |
ₙ |
\_o |
ₒ |
\_p |
ₚ |
\_r |
ᵣ |
\_s |
ₛ |
\_t |
ₜ |
\_u |
ᵤ |
\_v |
ᵥ |
\_x |
ₓ |
\_0 |
₀ |
\_1 |
₁ |
\_2 |
₂ |
\_3 |
₃ |
\_4 |
₄ |
\_5 |
₅ |
\_6 |
₆ |
\_7 |
₇ |
\_8 |
₈ |
\_9 |
₉ |
\_+ |
₊ |
\_- |
₋ |
\_= |
₌ |
\_( |
₍ |
\_) |
₎ |
Abbreviations | Character |
---|---|
\^a |
ᵃ |
\^b |
ᵇ |
\^c |
ᶜ |
\^d |
ᵈ |
\^e |
ᵉ |
\^f |
ᶠ |
\^g |
ᵍ |
\^h |
ʰ |
\^i |
ⁱ |
\^j |
ʲ |
\^k |
ᵏ |
\^l |
ˡ |
\^m |
ᵐ |
\^n |
ⁿ |
\^o |
ᵒ |
\^p |
ᵖ |
\^r |
ʳ |
\^s |
ˢ |
\^t |
ᵗ |
\^u |
ᵘ |
\^v |
ᵛ |
\^w |
ʷ |
\^x |
ˣ |
\^y |
ʸ |
\^z |
ᶻ |
\^A |
ᴬ |
\^B |
ᴮ |
\^D |
ᴰ |
\^E |
ᴱ |
\^G |
ᴳ |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