On Fri, 2012-08-17 at 11:02 -0500, Les Mikesell wrote: > On Fri, Aug 17, 2012 at 10:35 AM, John Doe <jdmls at yahoo.com> wrote: > >>> > >>>> When I use copy/paste text into a window running vi, if there is a > >>>> single line starting with '#', in the pasted content, it adds a > >> # to > >>>> all subsequent lines and indents each an additional level. Is there > >>>> some way to eliminate this bizarre behavior, preferably globally and > >>>> permanently so I don't have to repeat some change for every > >>>> machine/user where I might log in? > >>> > >>> If you do not want to change the defaults, you could temporarily call vim > >>> without the initializations: > >>> vim -u NONE ... > >> > >> That's the effect I want, since I log into a lot of different machines > >> and paste stuff into scripts. But, it doesn't seem to work. With > >> 'vim -u NONE /tmp/test.pl' it still does the auto-comment stuff. > > > > Works for me at least to avoid "crazy" double auto-indent... > > And it turns off syntax highlighting too. > > But I have no auto-comment in either modes... > > That's interesting - I don't think I've ever changed any defaults. > I'm using the text mode version in a gnome-terminal window in case > that makes a difference. Of course, if you don't care for vim, you can always use the old, simple version by using the command "/bin/vi" instead of "vim" and that should do away with most of the enhancements. > -- Ron Loftin reloftin at twcny.rr.com "God, root, what is difference ?" Piter from UserFriendly