[plug] vi(m): inserting with hanging indents

ryan at is.as.geeky.as ryan at is.as.geeky.as
Wed Aug 21 07:30:25 WST 2002


The recent vi(m) discussion reminded me of a question:

Is there a way to temporarily turn off the hanging indent feature so as
to allow indented text to be pasted without it running off into the
sunset?

Example:

Pasting this into a terminal window:

line 1
    line 2
    line 3
	    line 4
    line 5
line 6

When pasted into vim the hanging-ident causes it to do this:

line 1
    line 2
        line 3
	            line 4
		        line 5
			line 6

Is there a special insert mode to overcome this or do I have to turn
hanging indents off altogether?  Or perhaps I'm the only person to have
this problem?

Thanks.

Ryan



More information about the plug mailing list