Re: vi defaults in 6.x

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



Les Mikesell wrote:
> On Thu, Aug 16, 2012 at 1:44 PM,  <m.roth@xxxxxxxxx> 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?
>>>
>>> I discovered exactly the same behaviour in the Sylpheed email editor a
>>> few
>>> weeks back. Not only with cut-and-paste, but just typing into the
>>> editor
>>> window.  If a line starts with # then every following line after that
>>> also
>>> gains one as you type.
>>
>> Huh. I just tried it, KDE, rxvt, CentOS 6.3, and don't see that.
>> # ipmitool -o supermicro sel list
>>    1 | 08/15/2012 | 20:06:32 | Physical Security #0xaa | General Chassis
>> intrusion | Asserted
>> gets just that.
>
> It is probably trying to be smarter than we are and doing something
> context-sensitive.  Try naming the file you are editing something.pl.
>
Odd. vi trythis.pl, then I highlight from another window
# semanage fcontext -a -t httpd_sys_content_t '/mipav-svn(/.*)?'
/etc/selinux/targeted/contexts/files/file_contexts.local:  line 5 has
invalid regex mipav-svn/(*):  Invalid preceding regular expression

, and that's what I get, with two lines.

       mark


_______________________________________________
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