Re: vi defaults in 6.x

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Fri, Aug 17, 2012 at 5:22 AM, John Doe <jdmls@xxxxxxxxx> wrote:
> From: Les Mikesell <lesmikesell@xxxxxxxxx>
>
>> 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.

-- 
   Les Mikesell
     lesmikesell@xxxxxxxxx
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux