Avoiding jagged text when pasting into vi?

Posted by overtherainbow on Stack Overflow See other posts from Stack Overflow or by overtherainbow
Published on 2010-06-10T13:47:24Z Indexed on 2010/06/10 13:52 UTC
Read the original article Hit count: 210

Filed under:
|
|

Hello

Although I have no problem using SecureCRT (5.1.2 build 274) to work from Windows and connect to PC's running Linux, I have a problem when connecting to an embedded Asterisk appliance that provides"vi" through BusyBox 1.4.1 (2008-03-10).

The issue I'm having, is that when I paste code into vi, the text appears jagged like this:

<?php                                                                                                                               
try {                                                                                                                               
        $dbh = new PDO("sqlite:./db.sqlite");                                                                                       
                $dbh->exec("CREATE TABLE IF NOT EXISTS customer (id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR(255))");        

Does someone what the problem is? Is there a way to reconfigure either BusyBox or SecureCRT so that I can paste successfully?

Thank you.

© Stack Overflow or respective owner

Related posts about vim

Related posts about appliance