Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.04; 'folks': 0.04; 'rejected': 0.04; 'scripting': 0.05; 'subject:editor': 0.05; 'python': 0.07; 'coding.': 0.09; 'output': 0.12; 'am,': 0.14; 'gui': 0.14; 'wrote:': 0.14; '-tkc': 0.16; 'emacs': 0.16; 'finney': 0.16; 'fits': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'message- id:@tim.thechases.com': 0.16; 'received:70.251': 0.16; 'received:dsl.rcsntx.swbell.net': 0.16; 'received:rcsntx.swbell.net': 0.16; 'received:swbell.net': 0.16; 'row': 0.16; 'subject:IDE': 0.16; 'dependent': 0.16; 'shell': 0.19; 'stick': 0.19; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'seems': 0.21; 'support,': 0.22; 'code': 0.22; 'header:In- Reply-To:1': 0.22; 'cc:addr:python-list': 0.22; 'version': 0.25; 'script': 0.26; 'there.': 0.26; 'supports': 0.29; 'are.': 0.29; 'list': 0.30; 'cc:addr:python.org': 0.31; '(so': 0.31; 'buffer,': 0.31; 'skip:! 10': 0.31; 'second': 0.31; 'does': 0.31; 'another': 0.32; 'idea': 0.32; "i've": 0.33; 'things': 0.33; 'bit': 0.33; 'several': 0.33; 'using': 0.34; 'received:70': 0.34; 'header:User- Agent:1': 0.35; 'pull': 0.35; 'running': 0.36; 'subject:/': 0.36; 'think': 0.36; 'either': 0.37; 'run': 0.37; 'but': 0.38; 'pretty': 0.38; 'used': 0.38; 'though': 0.38; 'built': 0.39; '[1]': 0.39; 'likely': 0.39; 'add': 0.39; 'subject:text': 0.40; "it's": 0.40; 'bring': 0.62; 'marked': 0.65; 'capabilities': 0.72; 'evaluate': 0.72; 'skip:\xe2 10': 0.72; '02:17': 0.84; 'console,': 0.84; 'invested': 0.84; 'mouse': 0.93 Date: Sat, 16 Apr 2011 06:35:47 -0500 From: Tim Chase User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Ben Finney Subject: Re: Python IDE/text-editor References: <8739lij2h7.fsf@benfinney.id.au> <87r59269y4.fsf@castleamber.com> <87wriuhdgh.fsf@benfinney.id.au> In-Reply-To: <87wriuhdgh.fsf@benfinney.id.au> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Source: X-Source-Args: X-Source-Dir: Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 59 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1302953763 news.xs4all.nl 41102 [::ffff:82.94.164.166]:41818 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3313 On 04/16/2011 02:17 AM, Ben Finney wrote: > Emacs can run Python in a buffer, and has “tabbar-mode” to > display a row of tabs > > Likely the same features are available in Vim, by I've never > used Vim for lots of Python coding. Vim since v7 has offered tabs, though I personally stick mostly to split-panes ("windows" in vim parlance). :help tab-page The GUI version (gvim) offers mouse support; the console version supports the mouse as well, but may be a bit more fiddly as mouse/console interactions often are. :help mouse-using As for running a python shell within Vim, the idea of an embedded pseudo-tty (so that means an embedded console, python shell, or just running any other console program) has been pretty resolutely rejected by the maintainers. I think there's an unofficial patch[1] to add the support, but most folks just bring up a second console/terminal and run things there. For me, it's either using "screen" or just another xterm/rxvt window. :help shell-window That said, Vim does have Python scripting capabilities as well, so you can control vim with Python code :help python and Vim can evaluate python if it was built as such (check the output of ":version" for "+python"). Additionally, you can always run your Vim script and pull the output into a buffer somewhere: :r !my_script.py :r !python my_script.py (form dependent on whether your script is marked executable) To the OP, try both Vim & Emacs and see which fits your head better. They're both great editors and will provide a lifetime of returns on the time invested learning them. Vim fits me better; Emacs seems to better fit several of the other folks on the list who responded. -tkc [1] http://www.wana.at/vimshell/ http://stackoverflow.com/questions/2782752/how-can-i-open-a-shell-inside-a-vim-window