Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

i am using vim latest version (as my main text editor), however, the encoding for keyboard language, other than english, doesn't work.

in every other editor encoding is fine (notepad, ultraedit, notepad++, ...). these characters aren't displayed properly:

  • č
  • ć
  • š
  • đ
  • ž

i think that is windows problem, even if every other editor works.

share|improve this question
    
what is the OS you are using? –  akira Sep 18 '10 at 19:02
    
i am using win xp... –  aksr Sep 19 '10 at 14:28
1  
Do you mean input of special characters isn't working, or display of special characters is wrong? –  Heptite Oct 8 '10 at 20:56

2 Answers 2

up vote 0 down vote accepted

there are 2 aspects of this problem:

  1. how are the bytes stored onto the disk ('encoding')
  2. how are the bytes displayed on the screen

the first issue obviously influences the 2nd, but do not confuse the two.

if some characters are not displayed properly then most of the time there is not an 'encoding' problem but that the user picked a font which has no visual representation available for the bytes.

:echo &guifont 

tells you your current font. you could find out which fonts are used in the other, 'working' editors and then pick the same for vim.

share|improve this answer

I have had the same problem and the only way I could solved the problem is by creating windows batch file e.g. vim.bat and stored the following commands in it:

@echo off
chcp 1250 > nul:
"C:\Program Files\Vim\vim73\vim.exe"

Then double click on vim.bat to start a vim editor. You can also create shortcut to the vim.bat file.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.