Nvim :help
页面,生成 自 源 使用 tree-sitter-vimdoc 解析器。
:digraphs
获取列表。阅读二字符列表的一种便捷方式是将它们保存在文件中。从 shellvim +'redir >/tmp/vim-digraphs-listing.txt' +digraphs +'redir END' +q其中一些可以通过标准 Vim 二字符使用
*p π *t τ *X ×数字、下标和上标可以使用“s”和“S”使用
exec 'digraph \\ ' .. char2nr('∖') exec 'digraph \< ' .. char2nr('≼') exec 'digraph \> ' .. char2nr('≽') exec 'digraph (L ' .. char2nr('⊈') exec 'digraph )L ' .. char2nr('⊉') exec 'digraph (/ ' .. char2nr('⊄') exec 'digraph )/ ' .. char2nr('⊅') exec 'digraph )/ ' .. char2nr('⊅') exec 'digraph U+ ' .. char2nr('⊎') exec 'digraph 0- ' .. char2nr('⊖') " Euler's constant exec 'digraph ne ' .. char2nr('𝑒') " Raku's atomic operations marker exec 'digraph @@ ' .. char2nr('⚛')或者,您可以编写插入模式缩写,将基于 ASCII 的运算符转换为其单字符 Unicode 等效项。
iabbrev <buffer> !(<) ⊄ iabbrev <buffer> !(<=) ⊈ iabbrev <buffer> !(>) ⊅ iabbrev <buffer> !(>=) ⊉ iabbrev <buffer> !(cont) ∌ iabbrev <buffer> !(elem) ∉ iabbrev <buffer> != ≠ iabbrev <buffer> (&) ∩ iabbrev <buffer> (+) ⊎ iabbrev <buffer> (-) ∖ iabbrev <buffer> (.) ⊍ iabbrev <buffer> (<) ⊂ iabbrev <buffer> (<+) ≼ iabbrev <buffer> (<=) ⊆ iabbrev <buffer> (>) ⊃ iabbrev <buffer> (>+) ≽ iabbrev <buffer> (>=) ⊇ iabbrev <buffer> (\|) ∪ iabbrev <buffer> (^) ⊖ iabbrev <buffer> (atomic) ⚛ iabbrev <buffer> (cont) ∋ iabbrev <buffer> (elem) ∈ iabbrev <buffer> * × iabbrev <buffer> **0 ⁰ iabbrev <buffer> **1 ¹ iabbrev <buffer> **2 ² iabbrev <buffer> **3 ³ iabbrev <buffer> **4 ⁴ iabbrev <buffer> **5 ⁵ iabbrev <buffer> **6 ⁶ iabbrev <buffer> **7 ⁷ iabbrev <buffer> **8 ⁸ iabbrev <buffer> **9 ⁹ iabbrev <buffer> ... … iabbrev <buffer> / ÷ iabbrev <buffer> << « iabbrev <buffer> <<[=]<< «=« iabbrev <buffer> <<[=]>> «=» iabbrev <buffer> <= ≤ iabbrev <buffer> =~= ≅ iabbrev <buffer> >= ≥ iabbrev <buffer> >> » iabbrev <buffer> >>[=]<< »=« iabbrev <buffer> >>[=]>> »=» iabbrev <buffer> Inf ∞ iabbrev <buffer> atomic-add-fetch ⚛+= iabbrev <buffer> atomic-assign ⚛= iabbrev <buffer> atomic-fetch ⚛ iabbrev <buffer> atomic-dec-fetch --⚛ iabbrev <buffer> atomic-fetch-dec ⚛-- iabbrev <buffer> atomic-fetch-inc ⚛++ iabbrev <buffer> atomic-inc-fetch ++⚛ iabbrev <buffer> atomic-sub-fetch ⚛−= iabbrev <buffer> e 𝑒 iabbrev <buffer> o ∘ iabbrev <buffer> pi π iabbrev <buffer> set() ∅ iabbrev <buffer> tau τ