[SGVLUG] vim paste (was Re: Soliciting speakers)

Dan Kegel dank at kegel.com
Sun Jan 13 13:19:09 PST 2013


On Sun, Jan 13, 2013 at 12:45 PM, Akkana Peck <akkana at shallowsky.com> wrote:
> Lan Dang writes:
>> I can share a vim tip right now that will prove quite useful to certain people.  (I have heard complaints relating to this two or three times.)  If you want to paste text into vim and you don't want any auto-formatting to be done to it--like autoindent--you need to use paste mode, which you access through command mode using
>>
>> :set paste
>> Go into insert mode and paste your text.
>>
>> When you're done,  go back to command mode and type:
>> :set nopaste

This is what :set noautoindent used to be for, back in the day before vim.
I've been annoyed that it didn't work properly in vim.
I'm still annoyed, but at least now I know what the workaround is.  Thanks.
- Dan



More information about the SGVLUG mailing list