Which Python editor has this feature?

Tim Chase python.list at tim.thechases.com
Mon Jan 11 06:59:53 EST 2016


On 2016-01-11 03:08, jfong at 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








More information about the Python-list mailing list