When we talk about unicode in Nim code, someone usually complain that they 
don't have a keyboard to type unicode. So I introduce a nice Vim command to 
type unicode characters.
    
    
    :abbreviate king ♔
    
    Run

Then, when you type 'king' and an non-alphabet character, it automatically 
replaced with '♔'.

Examples:
    
    
    abbreviate noteq ≠
    abbreviate cong ≡
    abbreviate notcong ≢
    abbreviate sigma Σ
    abbreviate sqroot √
    abbreviate curoot ∛
    abbreviate blspade ♠
    abbreviate whspade ♤
    
    Run

Reply via email to