Thursday, June 21, 2012

VIM - inserting UTF-8 symbols (digraphs)

In VIM in very simple way we can insert some of UTF-8 symbols. List of available symbols we can display by running  :digraphs command


If you locate interesting symbol, you can insert him by pressing  <C-k> key combination and two letters on the left of that symbol on the left. For example equilateral triangle right ordered <C-k>PR
and here you are.



I've tested this technique in UTF-8 encoded files (in LATIN-1,2 or other there could be problems).

No comments: