If you paste text with Ctrl+V and the text has tab characters, they are rendered with ^I, e.g. function foo { ^IWrite-Host "In foo" } Tabs should probably be replaced with a user configurable number of spaces.