I had “indentation” problems a few times when I was doing Python using vim. Also, my chinese characters were not displaying correctly on VIM as well. But when I open the file in IDLE, I can read the chinese characters fine. Well I found a quick workaround for my indent problem by using the default Python Editor which is IDLE:

1. Edit -> Select ALL
2. Format -> Untabify Region
3. Specify “4” spaces for the tabs.
4. To run your program, just press F5.

Well, just recently I managed some time and went to the ShowMeDo site for Python. There I found out about PyDev, please watch the screencast, its worth it! Firing Eclipse, I immediately added the plugin from the update site: http://pydev.sourceforge.net/updates/.

PyDev Plugin For Eclipse

Once you have PyDev set, you need to tell Eclipse where your PYTHON bin, PYTHONPATH and other settings.
1. Go to Window -> Preferences
2. Collapse PyDev from left panel
3. Select “Interpreter-Python”
4. Click on “New” on the “Python Interpreters” Group.
5. Specify where python.exe.

Note: It would automatically add the libraries in your PYTHONPATH. Again, I insist you watch the screencast from Fabio to guide you through. To run your program just hit “F9″.

Python Config