About
Swaroop C H is 29 years of age. He is a coder and startupper. He has previously worked at Yahoo!, Adobe, his own startup and Infibeam.
Views
Support
Personal tools
COLLECTION
Collection
Talk:Python en:First Steps
From Notes
I'm having a time setting up vim as an IDE. The tutorial doesn't seem to be doing it for python3.0. Running ":syntax enable" raises an error. ~"patern delimiter not found ^s*\finally\s*$ display" My install doesn't have proper highlighting, I'm just trying to get the highlighting.
- Disregard my initial suspicion. Your tut helped me decide it must be a problem on my machine.
- I purged the vim files and reinstalled them, but things :still aren't working. I have partial highlighting, but it's incomplete. It works ok for .vim files though. It's just .py files that it is incomplete for.
- I tried 'echo $VIMRUNTIME' and I get a blank response. I get the correct response with echo $PWD or echo $HOME so it must be me. I give up, I'm going back to learning. --Thanks
- Have you tried contacting the maintainer of the Python syntax file?
- Have you referred to the Programmer's Editor chapter of my other Book A Byte of Vim?
-- Swaroop 05:53, 6 January 2009 (UTC)
Hi there. I think there is something worth writing down here for calrity.
As a total newbie, I am using Ubuntu for the programming. To set up a good IDE for python 3.0, we need to use synaptic package manager to install IDE3 for python3. (Vim and Emacs is too difficult for beginners)
You mentioned in the book we can have both python 2.6.2 and 3.0 installed. BUT, we can NOT uninstall python 3.0, otherwise the system will crash. (This must be quite obvious to you, but not for me).
Also, if we have both version of python installed, we need to use $ python3 filename.pyaprog for the execution of the program in the command line.
I've tried $ python3 filename.py it does not work;BUT using #!/usr/bin/env python3 as the first line of a programme does work and lets you write a programme in 3 ,furthermore programmes already written in 3 and showing errors will now run as they should.