9

Devnagari characters do not render properly in gvim. They appear just as they do when typed in vim running in a terminal (consonants and vowels separated.)

Is there any way we can make vim handle devnagari characters properly?

2
  • 1
    Can you explain how to setup the system to input the Devnagari characters? I opened gvim, copied the Devnagari characters I found on Wikipedia and did not notice any apparent problems.
    – January
    Sep 14, 2012 at 7:21
  • 1
    While entering text, I use appropriate keyboard layout. By the way, I, too tried copying devanagari text from wikipedia. Some characters appear OK. Most (more complex ones) don't.
    – deshmukh
    Sep 14, 2012 at 12:15

2 Answers 2

9
+50

Update: I searched a bit and found that you can use any monospaced font in vim but if you choose a non-monospaced font, the results will be ugly because vim has a fixed character cell. So, you can't use Devanagari fonts in gvim.


It seems to me that gVim treats every font as monospaced and that is creating the problem.

You can try other editors which can render the font correctly. Some of them are:

  • Gedit

enter image description here

  • Emacs

enter image description here

  • LibreOffice Writer - A word processor

enter image description here

1
  • Thanks for the detailed answer. Upvoted for the same. But, I was looking forward to continue working in vim.
    – deshmukh
    Sep 14, 2012 at 12:26
1

Rather than editor, you may try to change your terminal. I use Konsole. It renders Devanagari properly. https://konsole.kde.org/

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .