Hot subject: a good python editor and/or IDE?

Samuel newsgroups at debain.org
Sun Aug 19 15:08:35 CEST 2007


On Sun, 19 Aug 2007 11:47:03 +0200, Sébastien wrote:

> Hi folks,
> 
> I am currently using Eclipse+PyDev when developping Python projects but
> I lack a fast, simple editor for tiny bit of scripts. So here is my
> question: what is, for you, the current best ( but still kind of light!
> ) Python editor/IDE ? A tiny precision, I am on Ubuntu so I am looking
> for a linux compatible editor.

Vim with SnippetsEMU works great with Python. I made a demo of this in
action here:

http://debain.org/?p=198

Installation/configuration example on Ubuntu:

---------------
$ sudo apt-get install vim

$ mkdir -p $HOME/.vim/ftplugin/

$ mkdir -p $HOME/.vim/after/ftplugin/

$ wget http://www.vim.org/scripts/download_script.php?src_id=6951 -O se.vba

$ vim se.vba
:so %
:wq

$ echo "setlocal sw=4
setlocal ts=4
noremap <buffer> <LocalLeader>py o/**************<CR><CR>/<Esc>
" >> ~/.vim/ftplugin/python.vim

$ wget http://code.google.com/p/snippetsemu/issues/attachment?aid=-6063627743376712928&name=python_snippets.vim

$ cp python_snippets.vim $HOME/.vim/after/ftplugin/

$ echo "syntax on 
set sw=2
set ts=2
set nu 
set nuw=3
set autoindent
set expandtab" >> $HOME/.vimrc
---------------

(not tested, but it should work)

-Samuel



More information about the Python-list mailing list