Turning on Unicode Support in Vim
Unicode in Vim
The editor Vim supports Unicode natively. If your X or console keymap is set up to enter unicode characters via the keymap, it will work fine in Vim. Alternatively, there are two other ways of entering these characters.
A better bet is to set up digraphs. These enable you to type a character, backspace, then another character, and have a UTF-8 character generated. To use these, first put this line:
in your ~/.vimrc file (or to do it temporarily, type __:set digraph__ in command mode in Vim). To show the digraphs you have set, type this in command mode:
After this, typing (for example) D backspace - will give you ��.
You can set your own digraphs using:
:dig'raphs' char1char2 number
where number is the decimal representation of the hex code for the character you want. Find more information about Unicode characters and possible encodings for them (including hex, decimal, and HTML) at this very useful page. Use this on the Vim command line, or add it to your ~/.vimrc file.
If you find digraphs annoying (if you regularly have to backspace to correct single characters, you may end up inserting them by accident), type:unset digraphs in command mode (or add unset digraphs to your ~/.vimrc__ file), and use Ctrl+K char1 char2 instead of char1 backspace char2 to enter digraphs. This method is always available, even when digraphs aren't set.
Article courtesy of ServerWatch
Solid state disks (SSDs) made a splash in consumer technology, and now the technology has its eyes on the enterprise storage market. Download this eBook to see what SSDs can do for your infrastructure and review the pros and cons of this potentially game-changing storage technology.
- 1Linux Top 3: RHEL 6.7, BackBox Linux 4.3 and RoboLinux 8.1
- 2Linux Top 3: SLES 11 SP4, Chromixium OS 1.5 and Canonical Licensing
- 3Linux Top 3: VirtualBox 5, Point Linux 3.0 and OpenSUSE Leap 42.x
- 4Linux Top 3: Linux 4.2 rc1, 4MLinux 13 and antiX15
- 5Linux Top 3: Linux Mint Rafaela, OpenMandriva Lx 2014.2 and VectorLinux 7.1