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