Re: pasting into vi inserts many indents
On Tue, Nov 18, 2003 at 12:27:33PM -0800, Brian wrote:
> Hi,
> Lately, if I open a file with vi from inside a gnome-terminal and then
> select a large chunk of text, (it doesn't matter where, e.g., Mozilla or
> the same vi session, both do it), it corrupts the formatting with many
> indents. The pasted output inserts more indents on each line than there
> were on the previous line to create a "cascading formatting". Can someone
> point me to how I can stop this?
Someone gave the following hint some time ago and it works for me:
:r !cat
Then paste
and
Cntrl-d
That works on the console.
Regards
Johann
--
Johann Spies Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch
"To show forth thy lovingkindness in the morning, and
thy faithfulness every night." Psalms 92:2
Reply to: