Add Hidden Characters in ‘vim’
Editor-Digraphs
Sometimes, we need to specific character into my file, but that character does not
appear on my keyboard. Then, how to see and add the specific character in my
file? Follow the below mentioned setup.
Digraphs are used to enter characters that normally cannot be entered by an
ordinary keyboard. Vim is normally compiled with the digraphs feature.
1- How to insert Copyright symbol in Vim?
Open Vim (# vim test)
Press i to enter Insert mode
Press CTRL+k
You will see a Question mark symbol- ?
Enter the two letters Co
And you will see the Copyright symbol ©
2- How to insert Trademark symbol in Vim?
Open Vim (# vim test)
Press i to enter Insert mode
Press CTRL+k
You will see a Question mark symbol ?
Enter the two letters TM
And you will see the Trademark symbol ™
3- How to insert registered symbol in Vim?
Open Vim (# vim test)
Press i to enter Insert mode
Press CTRL+k
You will see a Question mark symbol ?
Enter the two letters RG
And you will see the Registered symbol ®
4- How to insert Mathematical symbols in Vim?
Open Vim (# vim test)
Press i to enter Insert mode
Press CTRL+k
You will see a Question mark symbol
Enter the two letters b*
And you will see the Mathematical symbol β
Other mathematical symbols are as follows-
a* α, b* β, g* γ, h* θ
5- How to insert Division symbol in Vim?
Open Vim (# vim test)
Press i to enter Insert mode
Press CTRL+k
You will see a Question mark symbol ?
Enter the two letters -:
And you will see the Division symbol ÷
6- How to insert Powers of number symbol in Vim?
Open Vim (# vim test)
Press i to enter Insert mode
Enter the number (E.g. 26)
Press CTRL+k
You will see a Question mark symbol ?
Enter the two letters 2S
And you will see the square 26²
7- How to insert Fractions of number symbol in Vim?
Open Vim (# vim test)
Press i to enter Insert mode
Press CTRL+k
You will see a Question mark symbol ?
Enter the two letters 13
And you will see the symbol ⅓
Check more symbol with shortcut number
Open Vim (# vim test)
Press Esc Button
Type- : digraph
Note- You can add more symbols, follow the above examples setup.
-Ashutosh
Reference-
http://googleweblight.com/i?u=http://vimdoc.sourceforge.net/htmldoc/digraph.htm
l&hl=en-IN#a.digraphs