Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #101476

Re: Which Python editor has this feature?

From Tim Chase <python.list@tim.thechases.com>
Newsgroups comp.lang.python
Subject Re: Which Python editor has this feature?
Date 2016-01-11 05:59 -0600
Message-ID <mailman.8.1452513736.13488.python-list@python.org> (permalink)
References <830f6f97-22dd-488c-9dd6-e9cd92844307@googlegroups.com> <mailman.2.1452482175.13488.python-list@python.org> <a6bcf94b-fa85-4e23-8d11-67a0c32c3342@googlegroups.com>

Show all headers | View raw


On 2016-01-11 03:08, jfong@ms4.hinet.net wrote:
> Tim Chase at 2016/1/11 UTC+8 11:16:27AM wrote:
> >   :nnoremap <expr> Q '?^'.repeat(' ',
> > (strlen(substitute(getline('.'), '\S.*', '',
> > ''))-&sw)).'\S?e'."\<cr>"
> 
> 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




Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Which Python editor has this feature? jfong@ms4.hinet.net - 2016-01-10 17:59 -0800
  Re: Which Python editor has this feature? Chris Angelico <rosuav@gmail.com> - 2016-01-11 13:58 +1100
    Re: Which Python editor has this feature? jfong@ms4.hinet.net - 2016-01-11 03:04 -0800
      Re: Which Python editor has this feature? Terry Reedy <tjreedy@udel.edu> - 2016-01-11 16:21 -0500
        Re: Which Python editor has this feature? jfong@ms4.hinet.net - 2016-01-11 17:51 -0800
          Re: Which Python editor has this feature? Terry Reedy <tjreedy@udel.edu> - 2016-01-12 02:55 -0500
            Re: Which Python editor has this feature? wxjmfauth@gmail.com - 2016-01-12 00:28 -0800
              Re: Which Python editor has this feature? jfong@ms4.hinet.net - 2016-01-12 17:27 -0800
                Re: Which Python editor has this feature? Chris Angelico <rosuav@gmail.com> - 2016-01-13 12:51 +1100
                Re: Which Python editor has this feature? Steven D'Aprano <steve@pearwood.info> - 2016-01-13 13:04 +1100
                Re: Which Python editor has this feature? wxjmfauth@gmail.com - 2016-01-13 00:04 -0800
                Re: Which Python editor has this feature? wxjmfauth@gmail.com - 2016-01-13 07:24 -0800
            Re: Which Python editor has this feature? jfong@ms4.hinet.net - 2016-01-12 17:20 -0800
              Re: Which Python editor has this feature? Terry Reedy <tjreedy@udel.edu> - 2016-01-13 04:10 -0500
                Re: Which Python editor has this feature? jfong@ms4.hinet.net - 2016-01-13 16:48 -0800
      Re: Which Python editor has this feature? Chris Angelico <rosuav@gmail.com> - 2016-01-12 11:14 +1100
      Re: Which Python editor has this feature? Bernardo Sulzbach <mafagafogigante@gmail.com> - 2016-01-11 22:55 -0200
        Re: Which Python editor has this feature? Grant Edwards <invalid@invalid.invalid> - 2016-01-12 18:31 +0000
      Re: Which Python editor has this feature? Chris Angelico <rosuav@gmail.com> - 2016-01-12 12:09 +1100
      Re: Which Python editor has this feature? Terry Reedy <tjreedy@udel.edu> - 2016-01-12 03:27 -0500
      Re: Which Python editor has this feature? Chris Angelico <rosuav@gmail.com> - 2016-01-12 21:18 +1100
      Re: Which Python editor has this feature? Terry Reedy <tjreedy@udel.edu> - 2016-01-13 04:05 -0500
      Re: Which Python editor has this feature? Chris Angelico <rosuav@gmail.com> - 2016-01-13 21:09 +1100
  Re: Which Python editor has this feature? Tim Chase <python.list@tim.thechases.com> - 2016-01-10 20:37 -0600
    Re: Which Python editor has this feature? jfong@ms4.hinet.net - 2016-01-11 03:08 -0800
      Re: Which Python editor has this feature? Tim Chase <python.list@tim.thechases.com> - 2016-01-11 05:59 -0600
  Re: Which Python editor has this feature? Rustom Mody <rustompmody@gmail.com> - 2016-01-10 19:49 -0800
    Re: Which Python editor has this feature? Frank Haun <fh@fhaun.de> - 2016-01-11 11:54 +0000
  Re: Which Python editor has this feature? Gordon Levi <gordon@address.invalid> - 2016-01-11 19:40 +1100
    Re: Which Python editor has this feature? jfong@ms4.hinet.net - 2016-01-11 03:16 -0800
    Re: Which Python editor has this feature? Fabio Zadrozny <fabiofz@gmail.com> - 2016-01-26 16:10 -0200
  Re: Which Python editor has this feature? Fabio Zadrozny <fabiofz@gmail.com> - 2016-01-26 16:09 -0200

csiph-web