9

Is it possible to copy and paste muti-line python into Git Bash? (in Windows 10)

Currently, if I have Python in Sublime text

enter image description here

when I paste it into Git Bash (I'm running Git Bash inside ConEmu), the line breaks are ignored.

enter image description here

I know about execfile(), but in my case I need to be able to be able see both the pasted code and result.

Thanks!

Dave Molinero
  • 474
  • 1
  • 4
  • 13
  • Why not just do like a split screen setup – Natecat Jan 19 '17 at 03:31
  • Well, this is for class, and I'm frequently asked to copy and paste (it works fine in teminal on Macs, which my instructor uses). I also have to submit console transcripts for assignments. I know it's a weird situation. – Dave Molinero Jan 19 '17 at 03:40

1 Answers1

11

ConeMu has two paste modes

Instead of ctrl+ v (paste mode #1) you can use paste mode #2 by

  • shift+insert or

  • right click

L Y E S - C H I O U K H
  • 4,765
  • 8
  • 40
  • 57
Frank Fu
  • 3,483
  • 2
  • 28
  • 38