Re: [Tutor] Python Editors (particualrly Vim)
3. scite (very simple) All are great and I use all of the three. Just back from vacation or I would have had a lot more to say! :-) But I have to agree with scite as an option, its very lightweight and fast and is basically the editor portion opf Pythonwin(*). That means you get all the editor features, but for many languages. But you lose the IDE Features - debugger integration, some code completion, keyword suggestion etc. Emacs can of course do all of the requested things but you may have to invest a lot of configuration time getting it just so. THe other feature you may want to look for is tags support (vim and emacs at least), ie the ability to put the cursor on a fuinction name and go to its definition with a single leap. This is very good for exploring other peoples code! (*)Scite was originally just a demostrator for the Scintilla editor component for GUIs but it has taken on a life of its own! HTH, -- Alan G Author of the Learn to Program web tutor http://www.freenetpages.co.uk/hp/alan.gauld ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Python Editors (particualrly Vim)
Okay, I've also found this: http://cream.sourceforge.net/features.html Which is amazing! It's an easy-to-use mod for Vim. It's modeless and lots of other doubtless heretical things, but it includes an outstanding auto-complete mode for text files! Ctrl-Space auto completes the word you're typing based on what you've already written in the file. I've also been trying SPE and that looks to be the most pleasing editor so far. It's also written in Python (AFAICT) which will probably have benefits in the future. Ed On 21/09/05, Ed Singleton [EMAIL PROTECTED] wrote: I don't believe there's any kinds of wars on this mailing group. :) I found this Python Vim code completion thing in my searches today: http://freshmeat.net/projects/pydiction/ Don't know how good it is, but it looks like it'd do the job. Ed On 21/09/05, Gabriel Farrell [EMAIL PROTECTED] wrote: Uh oh, looks like you're begging for an editor war. That said, I'm in the vim camp. It can do everything you specified for all of the languages you mention (well, I'm not sure about collapsible code...web search...aha![1]). After using it for four years, I'm still learning new tricks (see, for example, this page I found today on indentation[2]). vim's extendable with python scripts, but a lot of what you need for coding is already built in. I find most of my info either in the help manual that comes with it (:h) or at vim.org. gsf [1] http://www.dgp.toronto.edu/~mjmcguff/learn/vim/folding.txt [2] http://www.vim.org/tips/tip.php?tip_id=83 On Wed, Sep 21, 2005 at 02:00:20PM +0100, Ed Singleton wrote: I've been trying to decide which editor to use to edit Python (on Windows mostly). My wishlist of features would be: - automatic code formatting (indentation etc) - collapsible code (to collapse def's etc) - automatic code coloring (that's easily changeable) - auto-completion of namespaces - easy to run scripts from the editor (a shortcut key to run them or something) As I also do a lot of html, css and javascript it would be cool to have an editor that could also handle them, in which case I would want the same features for those languages, as well as the ability to write macros, scripts, etc in python. Having looked at loads of editors, I've ended up looking at emacs and vim. Emacs seems too difficult with not enough support for using the mouse. Vim seemed better, and I get the impression that it is possible to use python to script the editor, but I can't find much information on using vim as a python editor on windows. My various questions are: What other features should I be looking for? What would be the best editor for a beginner to start using, with a view to the long term? Where can I find some authoritative information about setting emacs or vim up as a fully featured python editor? Thanks Ed ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Python Editors (particualrly Vim)
jedit is also good. I use that. The only thing is that you can't execute the script from there. It is great for collapsing at indentions. www.jedit.org Johan On Thu, 2005-09-22 at 13:54 +0100, Ed Singleton wrote: Okay, I've also found this: http://cream.sourceforge.net/features.html Which is amazing! It's an easy-to-use mod for Vim. It's modeless and lots of other doubtless heretical things, but it includes an outstanding auto-complete mode for text files! Ctrl-Space auto completes the word you're typing based on what you've already written in the file. I've also been trying SPE and that looks to be the most pleasing editor so far. It's also written in Python (AFAICT) which will probably have benefits in the future. Ed On 21/09/05, Ed Singleton [EMAIL PROTECTED] wrote: I don't believe there's any kinds of wars on this mailing group. :) I found this Python Vim code completion thing in my searches today: http://freshmeat.net/projects/pydiction/ Don't know how good it is, but it looks like it'd do the job. Ed On 21/09/05, Gabriel Farrell [EMAIL PROTECTED] wrote: Uh oh, looks like you're begging for an editor war. That said, I'm in the vim camp. It can do everything you specified for all of the languages you mention (well, I'm not sure about collapsible code...web search...aha![1]). After using it for four years, I'm still learning new tricks (see, for example, this page I found today on indentation[2]). vim's extendable with python scripts, but a lot of what you need for coding is already built in. I find most of my info either in the help manual that comes with it (:h) or at vim.org. gsf [1] http://www.dgp.toronto.edu/~mjmcguff/learn/vim/folding.txt [2] http://www.vim.org/tips/tip.php?tip_id=83 On Wed, Sep 21, 2005 at 02:00:20PM +0100, Ed Singleton wrote: I've been trying to decide which editor to use to edit Python (on Windows mostly). My wishlist of features would be: - automatic code formatting (indentation etc) - collapsible code (to collapse def's etc) - automatic code coloring (that's easily changeable) - auto-completion of namespaces - easy to run scripts from the editor (a shortcut key to run them or something) As I also do a lot of html, css and _javascript_ it would be cool to have an editor that could also handle them, in which case I would want the same features for those languages, as well as the ability to write macros, scripts, etc in python. Having looked at loads of editors, I've ended up looking at emacs and vim. Emacs seems too difficult with not enough support for using the mouse. Vim seemed better, and I get the impression that it is possible to use python to script the editor, but I can't find much information on using vim as a python editor on windows. My various questions are: What other features should I be looking for? What would be the best editor for a beginner to start using, with a view to the long term? Where can I find some authoritative information about setting emacs or vim up as a fully featured python editor? Thanks Ed ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Python Editors (particualrly Vim)
Ed Singleton wrote: Okay, I've also found this: http://cream.sourceforge.net/features.html It seems to me that all the functionality listed here can easily be done in regular vim. I would still recommend investing time in learning plain old vim or gvim. The payoff for proficiency is high. -- Poor Yorick ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Python Editors (particualrly Vim)
* Poor Yorick [EMAIL PROTECTED] [050922 06:29]: Ed Singleton wrote: Okay, I've also found this: http://cream.sourceforge.net/features.html It seems to me that all the functionality listed here can easily be done in regular vim. I would still recommend investing time in learning plain old vim or gvim. The payoff for proficiency is high. grin I'd be a poor war-fighter when it came to editors. Personally, I use all of vim, gvim, emacs and Xemacs and I work in a multiple-language environment mainly on Linux. *but* if I were programming only in python and doing so on Windows, I'd probably use pythonwin. I've used it in the past and was very impressed, a real python IDE. MTCW tim -- Tim Johnson [EMAIL PROTECTED] http://www.alaska-internet-solutions.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Python Editors (particualrly Vim)
I've been trying to decide which editor to use to edit Python (on Windows mostly). My wishlist of features would be: - automatic code formatting (indentation etc) - collapsible code (to collapse def's etc) - automatic code coloring (that's easily changeable) - auto-completion of namespaces - easy to run scripts from the editor (a shortcut key to run them or something) As I also do a lot of html, css and javascript it would be cool to have an editor that could also handle them, in which case I would want the same features for those languages, as well as the ability to write macros, scripts, etc in python. Having looked at loads of editors, I've ended up looking at emacs and vim. Emacs seems too difficult with not enough support for using the mouse. Vim seemed better, and I get the impression that it is possible to use python to script the editor, but I can't find much information on using vim as a python editor on windows. My various questions are: What other features should I be looking for? What would be the best editor for a beginner to start using, with a view to the long term? Where can I find some authoritative information about setting emacs or vim up as a fully featured python editor? Thanks Ed ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Python Editors (particualrly Vim)
comments are inline... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ed Singleton Sent: Wednesday, September 21, 2005 9:00 AM To: tutor@python.org Subject: [Tutor] Python Editors (particualrly Vim) I've been trying to decide which editor to use to edit Python (on Windows mostly). My wishlist of features would be: - automatic code formatting (indentation etc) [george]: Emacs works great with this if you have python mode. Eclispe is the same. - collapsible code (to collapse def's etc) [george]: Eclipse is a little easier to perform this, but you can hide lines in Emacs as well. In emacs things are just a bit, less visual than eclipse. - automatic code coloring (that's easily changeable) [george]: Pretty much any editor will provide with this type of functionality. - auto-completion of namespaces [george]: Emacs does not (or I should say I have not found) any type of mode for code complete in python. There are rumors with improvements with CEDET(intellisense) for python, I haven't been able to use them. Eclipse with PyDEV works great, and if you are hardcore linux Eric3 will work too. Although you can run Eric3 on win32 there are a few extra steps needed to install. Also if you work in a commercial development shop, QT licensing for Eric3 might be an issue? - easy to run scripts from the editor (a shortcut key to run them or something) [george]: Emacs provides you a shell for which you can execute a script. You can extend lisp in Emacs as well, which is extremely flexible. I am not sure with eclipse regarding external scripts since I have just recently converted to eclipse from emacs(gasp!).I know you can call up python in interactive mode from eclipse, but I not sure how to call something likemyfoo.bat or myfoo.sh. As with anything in eclipseI am sure there has to be some type of plug-in or something for it. As I also do a lot of html, css and javascript it would be cool to have an editor that could also handle them, in which case I would want the same features for those languages, as well as the ability to write macros, scripts, etc in python. [george]: Lots of editors will support various mode. As for the code completion in javascipt and html I do not have an answer for those. Having looked at loads of editors, I've ended up looking at emacs and vim. Emacs seems too difficult with not enough support for using the mouse. [george]: Even though I am some what moving away from emacs, it is still a great editor. I am sure vim is good too, just my preference to use emacs. For mouse support Try including this in your .emacs file (autoload 'mwheel-install mwheel Enable wheely mouse) (mwheel-install) Vim seemed better, and I get the impression that it is possible to use python to script the editor, but I can't find much information on using vim as a python editor on windows. [george]: I think that is fine, I do not have much experience with vim. I only use it about 5% out of the day, hopefully someone else could help you out. My various questions are: What other features should I be looking for? [george]: I think you have them covered You might want to look at integrations with source control (cvs, svn, etc.) too. Also debuggers should be included as well. What would be the best editor for a beginner to start using, with a view to the long term? [george]: I think that is really user preference. Try them all out, you will most likely fall into which one fits your own needs. Where can I find some authoritative information about setting emacs or vim up as a fully featured python editor? [george]: check out sourceforge or freshmeat for add-ons and other modes. [george] Good luck [/george] Thanks Ed ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Python Editors (particualrly Vim)
Uh oh, looks like you're begging for an editor war. That said, I'm in the vim camp. It can do everything you specified for all of the languages you mention (well, I'm not sure about collapsible code...web search...aha![1]). After using it for four years, I'm still learning new tricks (see, for example, this page I found today on indentation[2]). vim's extendable with python scripts, but a lot of what you need for coding is already built in. I find most of my info either in the help manual that comes with it (:h) or at vim.org. gsf [1] http://www.dgp.toronto.edu/~mjmcguff/learn/vim/folding.txt [2] http://www.vim.org/tips/tip.php?tip_id=83 On Wed, Sep 21, 2005 at 02:00:20PM +0100, Ed Singleton wrote: I've been trying to decide which editor to use to edit Python (on Windows mostly). My wishlist of features would be: - automatic code formatting (indentation etc) - collapsible code (to collapse def's etc) - automatic code coloring (that's easily changeable) - auto-completion of namespaces - easy to run scripts from the editor (a shortcut key to run them or something) As I also do a lot of html, css and javascript it would be cool to have an editor that could also handle them, in which case I would want the same features for those languages, as well as the ability to write macros, scripts, etc in python. Having looked at loads of editors, I've ended up looking at emacs and vim. Emacs seems too difficult with not enough support for using the mouse. Vim seemed better, and I get the impression that it is possible to use python to script the editor, but I can't find much information on using vim as a python editor on windows. My various questions are: What other features should I be looking for? What would be the best editor for a beginner to start using, with a view to the long term? Where can I find some authoritative information about setting emacs or vim up as a fully featured python editor? Thanks Ed ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Python Editors (particualrly Vim)
No editor wars here, my suggestion as I tried to state below is use what you like. Try'em all and take them for a test spin. Granted I might be slightly biased towards eclipse/emacs.but that is just my world :) Just out of curiosity, does vim have code completion for python? Cheers -george -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gabriel Farrell Sent: Wednesday, September 21, 2005 12:56 PM To: tutor@python.org Subject: Re: [Tutor] Python Editors (particualrly Vim) Uh oh, looks like you're begging for an editor war. That said, I'm in the vim camp. It can do everything you specified for all of the languages you mention (well, I'm not sure about collapsible code...web search...aha![1]). After using it for four years, I'm still learning new tricks (see, for example, this page I found today on indentation[2]). vim's extendable with python scripts, but a lot of what you need for coding is already built in. I find most of my info either in the help manual that comes with it (:h) or at vim.org. gsf [1] http://www.dgp.toronto.edu/~mjmcguff/learn/vim/folding.txt [2] http://www.vim.org/tips/tip.php?tip_id=83 On Wed, Sep 21, 2005 at 02:00:20PM +0100, Ed Singleton wrote: I've been trying to decide which editor to use to edit Python (on Windows mostly). My wishlist of features would be: - automatic code formatting (indentation etc) - collapsible code (to collapse def's etc) - automatic code coloring (that's easily changeable) - auto-completion of namespaces - easy to run scripts from the editor (a shortcut key to run them or something) As I also do a lot of html, css and javascript it would be cool to have an editor that could also handle them, in which case I would want the same features for those languages, as well as the ability to write macros, scripts, etc in python. Having looked at loads of editors, I've ended up looking at emacs and vim. Emacs seems too difficult with not enough support for using the mouse. Vim seemed better, and I get the impression that it is possible to use python to script the editor, but I can't find much information on using vim as a python editor on windows. My various questions are: What other features should I be looking for? What would be the best editor for a beginner to start using, with a view to the long term? Where can I find some authoritative information about setting emacs or vim up as a fully featured python editor? Thanks Ed ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Python Editors (particualrly Vim)
I don't believe there's any kinds of wars on this mailing group. :) I found this Python Vim code completion thing in my searches today: http://freshmeat.net/projects/pydiction/ Don't know how good it is, but it looks like it'd do the job. Ed On 21/09/05, Gabriel Farrell [EMAIL PROTECTED] wrote: Uh oh, looks like you're begging for an editor war. That said, I'm in the vim camp. It can do everything you specified for all of the languages you mention (well, I'm not sure about collapsible code...web search...aha![1]). After using it for four years, I'm still learning new tricks (see, for example, this page I found today on indentation[2]). vim's extendable with python scripts, but a lot of what you need for coding is already built in. I find most of my info either in the help manual that comes with it (:h) or at vim.org. gsf [1] http://www.dgp.toronto.edu/~mjmcguff/learn/vim/folding.txt [2] http://www.vim.org/tips/tip.php?tip_id=83 On Wed, Sep 21, 2005 at 02:00:20PM +0100, Ed Singleton wrote: I've been trying to decide which editor to use to edit Python (on Windows mostly). My wishlist of features would be: - automatic code formatting (indentation etc) - collapsible code (to collapse def's etc) - automatic code coloring (that's easily changeable) - auto-completion of namespaces - easy to run scripts from the editor (a shortcut key to run them or something) As I also do a lot of html, css and javascript it would be cool to have an editor that could also handle them, in which case I would want the same features for those languages, as well as the ability to write macros, scripts, etc in python. Having looked at loads of editors, I've ended up looking at emacs and vim. Emacs seems too difficult with not enough support for using the mouse. Vim seemed better, and I get the impression that it is possible to use python to script the editor, but I can't find much information on using vim as a python editor on windows. My various questions are: What other features should I be looking for? What would be the best editor for a beginner to start using, with a view to the long term? Where can I find some authoritative information about setting emacs or vim up as a fully featured python editor? Thanks Ed ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor