Languages in vim

0

How to insert Hindi or Swedish characters in VIM

When I insert these words it appears as "......"

Hulk

Posted 2010-07-08T07:12:53.683

Reputation: 159

Not enough information. VIM can be run in a many ways: as GVIM locally or on foreign X Window server; as VIM locally in terminal or in terminal emulator or over ssh from other box. Problem could be in both input and output and without knowing what are they it is impossible to respond to the question. – Dummy00001 – 2010-07-08T10:46:00.080

Answers

1

  • Try :dig for a list of special chars which you can insert with CTRL + K and :help dig for explanation.
  • Check if your font is able to display the special chars

vbd

Posted 2010-07-08T07:12:53.683

Reputation: 467

2

Vim has no problem with Unicode characters outside of ASCII. The problem is most likely to be found in either the font you use in Vim, or in the setup of your system. To find out what isn't working, we need more information, such as

  • What font are you using in Vim?
  • what's the output of running locale in a terminal?
  • What's the result when you try to write one of these swedish/hindi characters in a terminal, and in gedit?

gnud

Posted 2010-07-08T07:12:53.683

Reputation: 131

Locale gives the following output

[root@localhost site]# locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= – Hulk – 2010-07-08T07:32:46.460

that answers one of the three questions I asked.... – gnud – 2010-07-08T12:45:42.667

Since the locale settings look fine, my guess is that the font does not support these characters. Choose another font. – scy – 2010-08-11T22:52:47.873