On 2017-01-24 20:04, Dennis Lee Bieber wrote:
>>You don't know that. If this has been pasted from elsewhere, you
>>need to match up the indentation level with the current code.
> 
>       So? The editor(s) I tend to use have the ability to shift
> indent in/out for selected blocks. Do the paste, highlight the
> pasted content, and shift the indent as needed.

The editor I use (vim) doesn't even require me to re-select the range
to shift it.  Just using

  >']

or

  <']

will indent/dedent from the cursor to the line where your paste ended.

Hurray for laziness :-)

-tkc


-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to