[arch-general] vi went Orange on me?? Never seen it before -- what is it?
Listmates: I'm kind of chuckling at this one. I did a simple substitution in vi on 2009.02 to comment out a few samba shares I wasn't going to use from a smb.conf I copied over. I simply used ':35,72s/^/# /' and then -- Orange appeared over all the comments and leading whitespace in the file. See (38k): http://nirvana.3111skyline.com/download/screenshots/archlinux/vi-orange.jpg What is the magic that makes this happen and ... more important ... how do I turn it off? I don't even know what setting to start looking for on this one? Anybody else run across this? In case the environment is important to the answer, I on my laptop running openSuSE 11.0 using konsole on kde 3.5.10 and using ssh to open a terminal to my new archlinux box. Dunno? Maybe that makes a difference? Any thoughts on this one are welcomed. Thanks. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
On Tue, Apr 21, 2009 at 1:28 PM, David C. Rankin <drankinatty@suddenlinkmail.com> wrote:
Listmates:
I'm kind of chuckling at this one. I did a simple substitution in vi on 2009.02 to comment out a few samba shares I wasn't going to use from a smb.conf I copied over. I simply used ':35,72s/^/# /' and then -- Orange appeared over all the comments and leading whitespace in the file. See (38k):
http://nirvana.3111skyline.com/download/screenshots/archlinux/vi-orange.jpg
What is the magic that makes this happen and ... more important ... how do I turn it off? I don't even know what setting to start looking for on this one? Anybody else run across this?
In case the environment is important to the answer, I on my laptop running openSuSE 11.0 using konsole on kde 3.5.10 and using ssh to open a terminal to my new archlinux box. Dunno? Maybe that makes a difference?
Any thoughts on this one are welcomed. Thanks.
:set nohlsearch
I'm kind of chuckling at this one. I did a simple substitution in vi on 2009.02 to comment out a few samba shares I wasn't going to use from a smb.conf I copied over. I simply used ':35,72s/^/# /' and then -- Orange appeared over all the comments and leading whitespace in the file. See (38k):
Any thoughts on this one are welcomed. Thanks.
Hi. You have turned on hlsearch, which is matching every /^/ and showing it to you. You can hide the orange hilight with the :nohl[search] command every time it appears or turn of hlsearch for good in your vimrc file. -- IJ
János Illés wrote:
I'm kind of chuckling at this one. I did a simple substitution in vi on 2009.02 to comment out a few samba shares I wasn't going to use from a smb.conf I copied over. I simply used ':35,72s/^/# /' and then -- Orange appeared over all the comments and leading whitespace in the file. See (38k):
Any thoughts on this one are welcomed. Thanks.
Hi.
You have turned on hlsearch, which is matching every /^/ and showing it to you. You can hide the orange hilight with the :nohl[search] command every time it appears or turn of hlsearch for good in your vimrc file.
Thanks Aaron and Janos: I found it in /etc/virc, I made the change as follows and all is well: " Switch syntax highlighting on, when the terminal has colors " Also switch on highlighting the last used search pattern. if &t_Co > 2 || has("gui_running") syntax on " set hlsearch endif -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
Erk, I'm always a bit iffy on editing system-wide configurations. If the package is updated, pacman won't update the edited configuration file (and start spawing .pacnew files), right? I also just don't like keeping configurations outside of home if at all possible. Does the current Arch VI respect .virc in your home dir? If so, put "set nohlsearch" in your .virc file instead. That just turns it off regardless of whether the system-wide one turns it on or not. Also, I would like to kindly suggest that you consider using full VIM instead of VI. It has a lot more features and is often much nicer to work with. Sorry if I'm telling you stuff you already know and don't need to hear again :) Cheers, -Andrei Thorp On Tue, Apr 21, 2009 at 2:58 PM, David C. Rankin <drankinatty@suddenlinkmail.com> wrote:
János Illés wrote:
I'm kind of chuckling at this one. I did a simple substitution in vi on 2009.02 to comment out a few samba shares I wasn't going to use from a smb.conf I copied over. I simply used ':35,72s/^/# /' and then -- Orange appeared over all the comments and leading whitespace in the file. See (38k):
Any thoughts on this one are welcomed. Thanks.
Hi.
You have turned on hlsearch, which is matching every /^/ and showing it to you. You can hide the orange hilight with the :nohl[search] command every time it appears or turn of hlsearch for good in your vimrc file.
Thanks Aaron and Janos:
I found it in /etc/virc, I made the change as follows and all is well:
" Switch syntax highlighting on, when the terminal has colors " Also switch on highlighting the last used search pattern. if &t_Co > 2 || has("gui_running") syntax on " set hlsearch endif
-- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
Andrei Thorp wrote:
Erk,
I'm always a bit iffy on editing system-wide configurations. If the package is updated, pacman won't update the edited configuration file (and start spawing .pacnew files), right? I also just don't like keeping configurations outside of home if at all possible.
Does the current Arch VI respect .virc in your home dir? If so, put "set nohlsearch" in your .virc file instead. That just turns it off regardless of whether the system-wide one turns it on or not.
Also, I would like to kindly suggest that you consider using full VIM instead of VI. It has a lot more features and is often much nicer to work with.
Sorry if I'm telling you stuff you already know and don't need to hear again :)
Cheers,
-Andrei Thorp
Thanks Andrei, It doesn't matter how basic it is, never, ever underestimate my ability to either overlook it or have forgotten it ;-) On the system wide issue, If I can get a good config I like, that's generally my preference. That way when a user has a questions about X, I know what he is looking at and how whatever it is is configured. (my users are my family, kids and the office staff -- not too many, but anything helps) So far /etc/virc seems to be doing the job. I'll add my dark color scheme to ~/.virc and see if that works, but if /etc/virc will take care of the basic stuff, then I'm good! From reading the man page, pacman handles updates of config files in the same way rpm does, so that works fine for me. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
Sounds good. -AT On Tue, Apr 21, 2009 at 5:15 PM, David C. Rankin <drankinatty@suddenlinkmail.com> wrote:
Andrei Thorp wrote:
Erk,
I'm always a bit iffy on editing system-wide configurations. If the package is updated, pacman won't update the edited configuration file (and start spawing .pacnew files), right? I also just don't like keeping configurations outside of home if at all possible.
Does the current Arch VI respect .virc in your home dir? If so, put "set nohlsearch" in your .virc file instead. That just turns it off regardless of whether the system-wide one turns it on or not.
Also, I would like to kindly suggest that you consider using full VIM instead of VI. It has a lot more features and is often much nicer to work with.
Sorry if I'm telling you stuff you already know and don't need to hear again :)
Cheers,
-Andrei Thorp
Thanks Andrei,
It doesn't matter how basic it is, never, ever underestimate my ability to either overlook it or have forgotten it ;-) On the system wide issue, If I can get a good config I like, that's generally my preference. That way when a user has a questions about X, I know what he is looking at and how whatever it is is configured. (my users are my family, kids and the office staff -- not too many, but anything helps)
So far /etc/virc seems to be doing the job. I'll add my dark color scheme to ~/.virc and see if that works, but if /etc/virc will take care of the basic stuff, then I'm good!
From reading the man page, pacman handles updates of config files in the same way rpm does, so that works fine for me.
-- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
David C. Rankin wrote:
Listmates:
I'm kind of chuckling at this one. I did a simple substitution in vi on 2009.02 to comment out a few samba shares I wasn't going to use from a smb.conf I copied over. I simply used ':35,72s/^/# /' and then -- Orange appeared over all the comments and leading whitespace in the file. See (38k):
http://nirvana.3111skyline.com/download/screenshots/archlinux/vi-orange.jpg
What is the magic that makes this happen and ... more important ... how do I turn it off? I don't even know what setting to start looking for on this one? Anybody else run across this?
In case the environment is important to the answer, I on my laptop running openSuSE 11.0 using konsole on kde 3.5.10 and using ssh to open a terminal to my new archlinux box. Dunno? Maybe that makes a difference?
Any thoughts on this one are welcomed. Thanks.
or just seach for something non-existent (slash = search)
participants (5)
-
Aaron Griffin
-
Andrei Thorp
-
David C. Rankin
-
Hubert Grzeskowiak
-
János Illés