Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Tim Chase Newsgroups: comp.lang.python Subject: Re: Which Python editor has this feature? Date: Mon, 11 Jan 2016 05:59:53 -0600 Lines: 20 Message-ID: References: <830f6f97-22dd-488c-9dd6-e9cd92844307@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de ObSZW+cyta/RHRqtHZRmiA4dRA5IPNxoa1/RZWz63RGA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'string.': 0.04; 'subject:Python': 0.05; "'',": 0.07; 'subject:editor': 0.07; '-tkc': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'messy': 0.16; 'read?': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'creates': 0.18; 'bit': 0.23; '(you': 0.23; 'tim': 0.24; 'header:In-Reply-To:1': 0.24; 'command': 0.26; "skip:' 10": 0.28; 'chase': 0.29; "skip:' 20": 0.34; 'skip:( 30': 0.35; 'mapping': 0.35; 'but': 0.36; 'too': 0.36; 'created': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'being': 0.37; "won't": 0.38; 'goes': 0.39; 'whatever': 0.39; 'to:addr:python.org': 0.40; 'your': 0.60; 'received:50': 0.66; 'subject:this': 0.85 X-Sender-Id: wwwh|x-authuser|tim@thechases.com X-Sender-Id: wwwh|x-authuser|tim@thechases.com X-MC-Relay: Neutral X-MailChannels-SenderId: wwwh|x-authuser|tim@thechases.com X-MailChannels-Auth-Id: wwwh X-MC-Loop-Signature: 1452513729912:3732424016 X-MC-Ingress-Time: 1452513729912 In-Reply-To: X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) X-AuthUser: tim@thechases.com X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:101476 On 2016-01-11 03:08, jfong@ms4.hinet.net wrote: > Tim Chase at 2016/1/11 UTC+8 11:16:27AM wrote=EF=BC=9A > > :nnoremap Q '?^'.repeat(' ', > > (strlen(substitute(getline('.'), '\S.*', '', > > ''))-&sw)).'\S?e'."\" >=20 > But, but... this line??? won't it goes too far for a human being to > read? Yes, it's a bit obscure. But it's a mapping that creates a "Q" command (feel free to map to whatever other key you have available), so once you've created that mapping (you can put it in your vimrc), all you have to remember is that "Q", not the whole messy string. -tkc