aboutsummaryrefslogtreecommitdiff
path: root/editors/vim/doc/bqn.txt
blob: c855b418835f95e59702a6406fdb04f7cda8b3e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
*bqn.txt* BQN language support

Author: Marshall Lochbaum and contributors
License: ISC License
Repository: https://github.com/mlochbaum/BQN

INTRODUCTION                                    *bqn*

This plugin provides syntax highlighting and a keymap
for the BQN programming language. For more information
about the language, see
https://mlochbaum.github.io/BQN/

This plugin also has descriptions of BQN characters:
press F1 to toggle a status line that describes the
one under the cursor. While it tries to adjust vim's
word boundary behavior to match BQN, characters ˜˘˝
can't be configured and still incorrectly behave as
word characters.

KEYMAP                                          *bqn-keymap*

The plugin sets the following keymap when editing BQN
files, such that the upper symbol is <Leader><key> and
the lower symbol is <Leader><Shift-key>. The leader
key defaults to \ and can changed by setting
g:bqn_prefix_key before loading the keymap.

`˜ 1˘ 2¨ 3⁼ 4⌜ 5´ 6˝ 77 8∞ 9¯ 0• -÷ =×
 ¬  ⎉  ⚇  ⍟  ◶  ⊘  ⎊  ⍎  ⍕  ⟨  ⟩  √  ⋆

    q⌽ w𝕨 e∊ r↑ t∧ yy u⊔ i⊏ o⊐ pπ [← ]→ 
     ↙  𝕎  ⍷  𝕣  ⍋  Y  U  ⊑  ⊒  ⍳  ⊣  ⊢ 

     a⍉ s𝕤 d↕ f𝕗 g𝕘 h⊸ j∘ k○ l⟜ ;⋄ '↩ \\ 
      ↖  𝕊  D  𝔽  𝔾  «  J  ⌾  »  ·  ˙  | 

      z⥊ x𝕩 c↓ v∨ b⌊ nn m≡ ,∾ .≍ /≠ 
       ⋈  𝕏  C  ⍒  ⌈  N  ≢  ≤  ≥  ⇐

A condensed version:
   ˜˘¨⁼⌜´˝7∞¯•÷× ¬⎉⚇⍟◶⊘⎊⍎⍕⟨⟩√⋆
   ⌽𝕨∊↑∧y⊔⊏⊐π←→  ↙𝕎⍷𝕣⍋YU⊑⊒⍳⊣⊢
   ⍉𝕤↕𝕗𝕘⊸∘○⟜⋄↩\  ↖𝕊D𝔽𝔾«J⌾»·˙|
   ⥊𝕩↓∨⌊n≡∾≍≠    ⋈𝕏C⍒⌈N≢≤≥⇐