Persian in Vim (Problem Solved)

206 views
Skip to first unread message

Ali Majdzadeh

unread,
May 4, 2008, 12:48:36 PM5/4/08
to vim...@googlegroups.com
Hello All
I have found a way to correctly display Persian characters in Vim using Windows XP console (cmd.exe):
1) Change the console font to Lucinda console.
2) Use chcp command and change the code page of the console to 720:
C:\>chcp 720
Active code page: 720
3) Now, you can type and edit Persian unicode files using Vim in Windows XP console.
By the way, thanks a lot Ben :)

Ali Majdzadeh Kohbanani
Regards

Ali Majdzadeh

unread,
May 4, 2008, 1:00:20 PM5/4/08
to vim...@googlegroups.com
Hello All
Sorry, there is a problem regarding typing Persian. Now, it is just possible to view Persian UTF-8 files. It is not possible to edit them, because the console should change to utf-8 and in this case Vim does not run.

Kind Regards
Ali Majdzadeh Kohbanani

Bram Moolenaar

unread,
May 4, 2008, 4:42:49 PM5/4/08
to Ali Majdzadeh, vim...@googlegroups.com

Ali Majdzadeh wrote:

> Hello All
> I have found a way to correctly display Persian characters in Vim using
> Windows XP console (cmd.exe):

Is Persian the same as Farsi?

> 1) Change the console font to Lucinda console.
> 2) Use chcp command and change the code page of the console to 720:
> C:\>chcp 720
> Active code page: 720
> 3) Now, you can type and edit Persian unicode files using Vim in Windows XP
> console.
> By the way, thanks a lot Ben :)

Did you use a Vim compiled with Farsi support? See ":help farsi".

--
BLACK KNIGHT: Come on you pansy!
[hah] [parry thrust]
[ARTHUR chops the BLACK KNIGHT's right arm off]
ARTHUR: Victory is mine! [kneeling]
We thank thee Lord, that in thy merc-
[Black Knight kicks Arthur in the head while he is praying]
The Quest for the Holy Grail (Monty Python)

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Reply all
Reply to author
Forward
0 new messages