Debian vi disable autoindent when pasting
December 23rd, 2007 by eCliPs
Today i finally found how to stop vi to insert tab or comment my text when i paste something:
simply input the command
:set paste
then paste what you want to paste and
:set nopaste
Hoo and by the way, from now on, i will start posting only in english
Posted in linux
March 4th, 2008 at 0:14
Thanks for the tip. I was wondering how to do this for ages!
April 16th, 2008 at 15:32
sweet! finally got annoyed with this today, and… answered. Thanks!
July 16th, 2008 at 12:05
[...] (Quelle: blog.exeko.com) [...]
July 25th, 2008 at 11:31
yeah,
i was using :set !autoindent but your solution is far more better.
January 9th, 2009 at 18:10
is this the same as :set noai
??
April 12th, 2009 at 4:41
Great tip. I used :set noai before but that messed up after the first one line comment. This one rocks big time
June 2nd, 2009 at 23:16
This is great thanks!! Haha so funny how i used to just deal with it
October 6th, 2009 at 16:37
Awesome tip! This has been bugging me forever and you finally gave me the answer. It’s easy to remember, too!