Re: [CentOS] vi defaults in 6.x
On 20.8.2012 19:16, Gordon Messmer wrote: On 08/20/2012 04:07 AM, Joerg Schilling wrote: Gordon Messmeryiny...@eburg.com wrote: Actually, it's a shell alias. And then, only if vim is installed, which it isn't in some configurations. IIRC, desktop systems have him by default, but server installations do not. It is neither a symlink nor a shell alias - execpt maybe for platforms that for some reason don't include vi. On a CentOS system, vi will be a shell alias when the vim package is installed. Otherwise it will be a variant of vim which is more compatible with the POSIX description of vi (though not 100%). As we are discussing CentOS, I believe my statements did not require correction. Thanks. I got curious ;-) vim-minimal installs /bin/vi vim-enhanced installs /usr/bin/vim and sets the alias (the vim package) [falb@xxx ~]$ which vi alias vi='vim' /usr/bin/vim [falb@xxx ~]$ which vim /usr/bin/vim [falb@xxx ~]$ whereis vi vi: /bin/vi /usr/share/man/man1/vi.1.gz /usr/share/man/man1p/vi.1p.gz But the alias is not set for root! [root@xxx ~]# which vi /bin/vi [root@xxx ~]# which vim /usr/bin/vim -- Kind Regards, Markus Falb signature.asc Description: OpenPGP digital signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
On Sun, 26 Aug 2012 08:26:48 Markus Falb markus.f...@fasel.at wrote: On 20.8.2012 19:16, Gordon Messmer wrote: On 08/20/2012 04:07 AM, Joerg Schilling wrote: Gordon Messmeryiny...@eburg.com wrote: Actually, it's a shell alias. And then, only if vim is installed, which it isn't in some configurations. IIRC, desktop systems have him by default, but server installations do not. It is neither a symlink nor a shell alias - execpt maybe for platforms that for some reason don't include vi. On a CentOS system, vi will be a shell alias when the vim package is installed. Otherwise it will be a variant of vim which is more compatible with the POSIX description of vi (though not 100%). As we are discussing CentOS, I believe my statements did not require correction. Thanks. I got curious ;-) vim-minimal installs /bin/vi vim-enhanced installs /usr/bin/vim and sets the alias (the vim package) [falb@xxx ~]$ which vi alias vi='vim' /usr/bin/vim [falb@xxx ~]$ which vim /usr/bin/vim [falb@xxx ~]$ whereis vi vi: /bin/vi /usr/share/man/man1/vi.1.gz /usr/share/man/man1p/vi.1p.gz But the alias is not set for root! FWIW, If you comment out the line [ -n $ID -a $ID -le 200 ] return in /etc/profile.d/vim.sh then the alias will be set at login. Regards, -- Tom m...@tdiehl.org Spamtrap address me...@tdiehl.org ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
Gordon Messmer yiny...@eburg.com wrote: On 08/16/2012 04:55 PM, SilverTip257 wrote: vi is generally a symlink to vim these days. Actually, it's a shell alias. And then, only if vim is installed, which it isn't in some configurations. IIRC, desktop systems have him by default, but server installations do not. It is neither a symlink nor a shell alias - execpt maybe for platforms that for some reason don't include vi. vi is OSS and the OSS vi is fully POSIX compliant. and BTW: vi does not read .vimrc but .exrc Jörg -- EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin j...@cs.tu-berlin.de(uni) joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
Reindl Harald h.rei...@thelounge.net wrote: Am 20.08.2012 13:07, schrieb Joerg Schilling: Gordon Messmer yiny...@eburg.com wrote: On 08/16/2012 04:55 PM, SilverTip257 wrote: vi is generally a symlink to vim these days. Actually, it's a shell alias. And then, only if vim is installed, which it isn't in some configurations. IIRC, desktop systems have him by default, but server installations do not. It is neither a symlink nor a shell alias - execpt maybe for platforms that for some reason don't include vi. you are aware that you are posting to the CENTOS-list? Of course the topic is about vi default in CENTOS 6.x so what You seem to missunderstand that there is a program called vi and another program called vim. Jörg -- EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin j...@cs.tu-berlin.de(uni) joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
On Mon, Aug 20, 2012 at 7:19 AM, Joerg Schilling joerg.schill...@fokus.fraunhofer.de wrote: Reindl Harald h.rei...@thelounge.net wrote: you are aware that you are posting to the CENTOS-list? Of course the topic is about vi default in CENTOS 6.x so what You seem to missunderstand that there is a program called vi and another program called vim. Not on a standard CentOS system. [whooper@chef ~]$ /bin/vi --version VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Apr 5 2012 10:17:55) On a machine that has the vim-enhanced package installed (care of the files dropped in /etc/profile.d/vim.*: $ which vi alias vi='vim' /usr/bin/vim -- William Hooper ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
William Hooper whooper...@gmail.com wrote: On Mon, Aug 20, 2012 at 7:19 AM, Joerg Schilling joerg.schill...@fokus.fraunhofer.de wrote: Reindl Harald h.rei...@thelounge.net wrote: you are aware that you are posting to the CENTOS-list? Of course the topic is about vi default in CENTOS 6.x so what You seem to missunderstand that there is a program called vi and another program called vim. Not on a standard CentOS system. [whooper@chef ~]$ /bin/vi --version VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Apr 5 2012 10:17:55) This just verifies that you don't have a vi. Jörg -- EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin j...@cs.tu-berlin.de(uni) joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
Reindl Harald h.rei...@thelounge.net wrote: This just verifies that you don't have a vi boah how often should we explain it until you understand taht on CENTOS there is NO vi package there is only VIM Nice to see, that you finally realized it too. Jörg -- EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin j...@cs.tu-berlin.de(uni) joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
Joerg Schilling wrote: William Hooper whooper...@gmail.com wrote: On Mon, Aug 20, 2012 at 7:19 AM, Joerg Schilling joerg.schill...@fokus.fraunhofer.de wrote: Reindl Harald h.rei...@thelounge.net wrote: you are aware that you are posting to the CENTOS-list? Of course the topic is about vi default in CENTOS 6.x so what You seem to missunderstand that there is a program called vi and another program called vim. Not on a standard CentOS system. [whooper@chef ~]$ /bin/vi --version VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Apr 5 2012 10:17:55) This just verifies that you don't have a vi. This just verifies that you're playing word games. If you want vi that's not vim, may I ask which *version* of vi you would consider to be vi - one from, say, Sun OS 3? Or from the Irix that ran on our Indigo in the early/mid-nineties? or one from Tru-64 in the late nineties? or were you insisting on one that ran on a system from the early-to-mid-eighties? mark ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
m.r...@5-cent.us wrote: This just verifies that you're playing word games. If you want vi that's not vim, may I ask which *version* of vi you would consider to be vi - one from, say, Sun OS 3? Or from the Irix that ran on our Indigo in the early/mid-nineties? or one from Tru-64 in the late nineties? or were you insisting on one that ran on a system from the early-to-mid-eighties? SunOS 3 Vi source not available to the public. IrixVi source not available to the public. Tru-64 Vi source not available to the public. You currently may have the vi source from aprox. 1979 under a 4 clause BSD license or the current Solaris vi under the CDDL. The latter was POSIX compliant approved. Jörg -- EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin j...@cs.tu-berlin.de(uni) joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
Joerg Schilling wrote: m.r...@5-cent.us wrote: This just verifies that you're playing word games. If you want vi that's not vim, may I ask which *version* of vi you would consider to be vi - one from, say, Sun OS 3? Or from the Irix that ran on our Indigo in the early/mid-nineties? or one from Tru-64 in the late nineties? or were you insisting on one that ran on a system from the early-to-mid-eighties? SunOS 3 Vi source not available to the public. Irix Vi source not available to the public. Tru-64Vi source not available to the public. You currently may have the vi source from aprox. 1979 under a 4 clause BSD license or the current Solaris vi under the CDDL. The latter was POSIX compliant approved. And so you assert that if you don't have a version of vi that is strictly compatible with the 1979 source, and has no improvements or bugfixes, it's not vi? mark ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
m.r...@5-cent.us wrote: You currently may have the vi source from aprox. 1979 under a 4 clause BSD license or the current Solaris vi under the CDDL. The latter was POSIX compliant approved. And so you assert that if you don't have a version of vi that is strictly compatible with the 1979 source, and has no improvements or bugfixes, it's not vi? Nobody forces you to use the 1979 version that is not 8 bit clean anyway. Recent vi versions of course have improvements and bug-fixes. BTW: I don't use vi as I am using my ved that is faster than vi. People who use the vi however complained that vim is not fully vi compatible and that they prefer to have a real vi under the name vi. People who prefer vim could still call vim. Jörg -- EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin j...@cs.tu-berlin.de(uni) joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
On Mon, Aug 20, 2012 at 10:43 AM, Joerg Schilling joerg.schill...@fokus.fraunhofer.de wrote: People who use the vi however complained that vim is not fully vi compatible and that they prefer to have a real vi under the name vi. People who prefer vim could still call vim. My complaint that started this thread turns out to be not so much about vim not being vi compatible when executed with the vi name as that non-root users get a default alias of vi='vim', with surprising results. Even though they are both part of the vim package, they act differently. -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
On 08/20/2012 04:07 AM, Joerg Schilling wrote: Gordon Messmeryiny...@eburg.com wrote: Actually, it's a shell alias. And then, only if vim is installed, which it isn't in some configurations. IIRC, desktop systems have him by default, but server installations do not. It is neither a symlink nor a shell alias - execpt maybe for platforms that for some reason don't include vi. On a CentOS system, vi will be a shell alias when the vim package is installed. Otherwise it will be a variant of vim which is more compatible with the POSIX description of vi (though not 100%). As we are discussing CentOS, I believe my statements did not require correction. Thanks. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
On 08/16/2012 04:55 PM, SilverTip257 wrote: vi is generally a symlink to vim these days. Actually, it's a shell alias. And then, only if vim is installed, which it isn't in some configurations. IIRC, desktop systems have him by default, but server installations do not. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
On Sun, Aug 19, 2012 at 2:31 AM, Gordon Messmer yiny...@eburg.com wrote: On 08/16/2012 04:55 PM, SilverTip257 wrote: vi is generally a symlink to vim these days. Actually, it's a shell alias. And then, only if vim is installed, which it isn't in some configurations. IIRC, desktop systems have him by default, but server installations do not. The systems where I'd be pasting script contents mostly have the software development package group installed. The aliasing explains why it happens seemingly randomly since I'd sometimes have root's environment, sometimes not. In any case, the ':set paste mode behavior is what I want. I don't mind syntax highlighting but it seems extremely bizarre for something pretending to be vi with a default setting to ever, under any conditions, insert something you didn't type. -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
* Les Mikesell lesmikes...@gmail.com [08/16/2012 14:23]: 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? to avoid this behavior during paste, just do: :set paste just before pasting. Daniel. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
From: Les Mikesell lesmikes...@gmail.com 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 ... JD ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
On Fri, Aug 17, 2012 at 5:22 AM, John Doe jd...@yahoo.com wrote: From: Les Mikesell lesmikes...@gmail.com 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 lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
From: Les Mikesell lesmikes...@gmail.com On Fri, Aug 17, 2012 at 5:22 AM, John Doe jd...@yahoo.com wrote: From: Les Mikesell lesmikes...@gmail.com 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... JD ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
On Fri, Aug 17, 2012 at 10:35 AM, John Doe jd...@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. -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
On Fri, 2012-08-17 at 11:02 -0500, Les Mikesell wrote: On Fri, Aug 17, 2012 at 10:35 AM, John Doe jd...@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 relof...@twcny.rr.com God, root, what is difference ? Piter from UserFriendly ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
On Thu, 16 Aug 2012 13:23:28 -0500 Les Mikesell 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. -- MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com www.creekfm.com - FIFTY THOUSAND WATTS of POW WOW POWER! ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
Frank Cox wrote: On Thu, 16 Aug 2012 13:23:28 -0500 Les Mikesell 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. mark ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
From: Les Mikesell lesmikes...@gmail.com To: CentOS mailing list centos@centos.org Sent: Thursday, August 16, 2012 11:23 AM Subject: [CentOS] vi defaults in 6.x 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? -- Les Mikesell === To make vi less annoying, I always create a .vimrc in the homedir of the account in question. It contains: syntax off set nohlsearch set noincsearch :let loaded_matchparen = 1 set noai set paste set mouse= set noautoindent Hope this helps! __ If life gives you lemons, keep them-- because hey.. free lemons. ♥ Sticker fixer: http://microflush.org/stuff/stickers/heartFix.html ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
On Thu, Aug 16, 2012 at 1:44 PM, m.r...@5-cent.us 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. -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
Les Mikesell wrote: On Thu, Aug 16, 2012 at 1:44 PM, m.r...@5-cent.us 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@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
On Thu, 16 Aug 2012, Les Mikesell wrote: It is probably trying to be smarter than we are and doing something context-sensitive. Try naming the file you are editing something.pl. That is exactly what it isdoing. A .pl file will probably syntaxted as a perl script. From man vim: /usr/share/vim/vimrc System wide Vim initializations. -- Michael henne...@web.cs.ndsu.nodak.edu On Monday, I'm gonna have to tell my kindergarten class, whom I teach not to run with scissors, that my fiance ran me through with a broadsword. -- Lily ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
+1 for .vimrc config files vi is generally a symlink to vim these days. @Les, I've seen the auto-comment behavior you speak of. You may want to set formatoptions [0] in your .vimrc [0] http://vimdoc.sourceforge.net/htmldoc/change.html#fo-table @Joseph: You have autoindent specified twice - once in its abbreviated form and then the long version. set noai set noautoindent ---~~.~~--- Mike // SilverTip257 // On Thu, Aug 16, 2012 at 3:08 PM, Joseph Spenner joseph85...@yahoo.com wrote: From: Les Mikesell lesmikes...@gmail.com To: CentOS mailing list centos@centos.org Sent: Thursday, August 16, 2012 11:23 AM Subject: [CentOS] vi defaults in 6.x 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? -- Les Mikesell === To make vi less annoying, I always create a .vimrc in the homedir of the account in question. It contains: syntax off set nohlsearch set noincsearch :let loaded_matchparen = 1 set noai set paste set mouse= set noautoindent Hope this helps! __ If life gives you lemons, keep them-- because hey.. free lemons. ♥ Sticker fixer: http://microflush.org/stuff/stickers/heartFix.html ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] vi defaults in 6.x
SilverTip257 wrote: +1 for .vimrc config files vi is generally a symlink to vim these days. @Les, I've seen the auto-comment behavior you speak of. You may want to set formatoptions [0] in your .vimrc [0] http://vimdoc.sourceforge.net/htmldoc/change.html#fo-table @Joseph: You have autoindent specified twice - once in its abbreviated form and then the long version. set noai set noautoindent Also, unless you want it to act like vi, use `set nocompatible` so that it is then full vim then your vimrc will have full effect. Cheers, Phil... -- currently (ab)using CentOS 6.3, Debian Squeeze, Fedora Beefy, OS X Snow Leopard, Ubuntu Precise ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos