Editing files containing Devanagari script (or other Indian scripts) in vim doesn't work out of the box. I have not found a satisfactory solution for it yet and would like to hear if anybody else has.

  • What problems are you facing? Does the text look wrong? Or are you having problems inputting characters? Or something else? Aug 3, 2015 at 8:21
  • 1
    Check this one serverfault.com/questions/158473/languages-in-vim-editor
    – Alex Kroll
    Aug 3, 2015 at 14:46
  • 1
    @Carpetsmoker Yes, the text looks wrong, in different ways depending on which terminal emulator I try to run vim in. Somebody has made a nice overview of the different output he gets, benizi.com/vim/devanagari , which is not exactly the same for me, but you can get a rough idea about the varieties of output, none of which is correct. In fact, in contrast to the author of mentioned website, I get the best results in konsole.
    – muk.li
    Aug 3, 2015 at 15:48
  • 1
    @AlexKroll Yes, I know there are other ways to input devanagari in linux, that is not the problem. I can use gedit if I must, it does work for devanagari input, however I'd just like to stick with vim. Emacs seems to handle Devanagari without problem, I might learn it because of that, as I now have to regularly edit files containing pieces of text in devanagari script.
    – muk.li
    Aug 3, 2015 at 16:01
  • If you're using a terminal emulator (Konsole), then the problem is in the terminal emulator. All Vim does is ask the terminal emulator "Hey, I have these characters with such and such code points, please render them for me. kthxbye". gVim doesn't depend on a terminal emulator, but "under the hood" it's really a terminal emulator, I'm not surprised that a comparatively little used script doesn't work well (not all Latin fonts work well with gVim either)... Aug 3, 2015 at 17:16


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.