Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Michael Torrie Newsgroups: comp.lang.python Subject: Re: best text editor for programming Python on a Mac Date: Sat, 18 Jun 2016 18:50:11 -0600 Lines: 42 Message-ID: References: <55237bfb-17d4-d7a6-5d81-1db0c38c7731@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de AQ2An776obQ4rj9Yz+j5KAwQ8ZgB94N4KH7yBXNOtDZg== 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:text': 0.04; 'subject:Python': 0.05; 'character,': 0.07; 'exit': 0.07; 'subject:editor': 0.07; 'works.': 0.07; 'before.': 0.09; 'cursor': 0.09; 'editor.': 0.09; 'indeed,': 0.09; 'inserted': 0.09; 'insertion': 0.09; 'suggest': 0.15; 'file,': 0.15; '2016': 0.16; 'adjacent': 0.16; 'doesn\xe2\x80\x99t': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'inserting': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'sense:': 0.16; 'subject:Mac': 0.16; 'subject:programming': 0.16; 'there?': 0.16; 'wrote:': 0.16; 'stick': 0.18; '>>>': 0.20; 'all,': 0.20; 'windows': 0.20; 'commands,': 0.22; 'lawrence': 0.22; 'insert': 0.23; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'example': 0.26; 'chris': 0.26; 'point.': 0.27; 'separate': 0.27; 'idea': 0.28; 'character.': 0.29; 'editors': 0.29; 'another': 0.32; 'point': 0.33; 'source': 0.33; 'michael': 0.33; 'lets': 0.33; 'open': 0.33; 'message-id:@gmail.com': 0.34; 'editor': 0.34; 'trouble': 0.35; 'text': 0.35; 'but': 0.36; 'there': 0.36; '(and': 0.36; 'mode': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'two': 0.37; 'received:org': 0.37; 'mac': 0.37; 'anything': 0.38; 'why': 0.39; 'does': 0.39; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'him': 0.60; 'your': 0.60; 'side': 0.62; 'back': 0.62; 'matter': 0.63; 'python-list': 0.66; 'talking': 0.67; 'earth.': 0.84; 'insert,': 0.84; 'positions:': 0.84; 'thing...': 0.84; 'why?': 0.91; 'choice.': 0.93 X-Virus-Scanned: amavisd-new at torriefamily.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <55237bfb-17d4-d7a6-5d81-1db0c38c7731@gmail.com> X-Mailman-Original-References: Xref: csiph.com comp.lang.python:110122 On 06/18/2016 06:12 PM, Lawrence D’Oliveiro wrote: > On Sunday, June 19, 2016 at 11:07:23 AM UTC+12, Michael Torrie > wrote: >> >> On 06/17/2016 05:52 PM, Chris via Python-list wrote: >>> >>> Any suggestions for a good open source text editor for the Mac >>> out there? For now, I am going to stick with vim. >> >> Good choice. > > The trouble with vim/vi/whatever, is that it doesn’t work like any > other editor on Earth. The fact that the OP is using vim would suggest this doesn't really matter to him all that much. > Pull up any old GUI-based editor you like, for example Windows > (shudder) Notepad. If there are N characters in your file, then the > insertion point can be placed at N + 1 positions: in-between two > adjacent characters, or before the first character, or after the last > character. And this makes sense: anything you type is inserted at the > insertion point. All rational text editors (and word processors) work > this way. Indeed, so does vi/vim. Why do you think otherwise? > But not vi/vim. It only lets you place your cursor *on* a character, > not *in-between* characters. That’s why you need two separate > insertion commands, insert-before and insert-after. And one of those > has the interesting side effect where, if you exit insertion mode > without inserting anything, it doesn’t put you back in the same > position as before. Why? > > As to why you need insertion commands at all, that’s another > thing... Having used vim for years and also normal editors including word processors, I have no idea what you're talking about by how insert works. It works the exactly the same. I put my cursor under a letter, hit insert, and I am inserting text before that letter, just like any other text editor.