From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 96813 invoked by alias); 9 Oct 2018 11:33:59 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 96803 invoked by uid 89); 9 Oct 2018 11:33:59 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=UD:jpg, tapas, Tapas, H*UA:6.1 X-HELO: mail-ed1-f47.google.com Received: from mail-ed1-f47.google.com (HELO mail-ed1-f47.google.com) (209.85.208.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 09 Oct 2018 11:33:57 +0000 Received: by mail-ed1-f47.google.com with SMTP id y20-v6so1339042eds.10 for ; Tue, 09 Oct 2018 04:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=8inUZJ3lRbHif4p6o1oOETgrXyiXbjukIqvlAhAxMls=; b=vZRme6rFEjZF0e4j00QPNAcWNzK/RBEdcfgY/cxe0JCq8t0KmGDcggB1uBUbFSn+Tf wNnNtzByScxtBtHRq+bTw9nGxmQqELMUmk9WnVBszoUbMvcsG2GQUx1ctlk0C1Ql6r3w hM9rP/Y4Ev50dWWssxd7AcaNQY32ZOJh79KIubIyb90N+M4rN5QAjpFOS+Of09U+1Qub 4hPPgKZ3ceLSxr7gpLfBpan798fLDCr1ZZVZ47mliiTKegFkqiHT5Av4Em9dPxhct/zR ifIah7q5enCFvV9bZJQ2wUiLQCJqgPoMZzA7QKwl+AHMiKz18vjW71a6JZHDKvSiJleF KULw== Return-Path: Received: from ?IPv6:2a02:1811:41e:dc00:1cd8:568c:c4e2:7ddb? (ptr-7sz70r04hgrbd1il0wr.18120a2.ip6.access.telenet.be. [2a02:1811:41e:dc00:1cd8:568c:c4e2:7ddb]) by smtp.googlemail.com with ESMTPSA id o38-v6sm4809777edo.40.2018.10.09.04.33.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Oct 2018 04:33:54 -0700 (PDT) Subject: Re: vim yellow lines problem To: cygwin@cygwin.com References: From: James Darnley Message-ID: <336fc452-2081-66d8-47ad-a4325ddd835e@gmail.com> Date: Tue, 09 Oct 2018 11:33:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-10/txt/msg00074.txt.bz2 On 2018-10-09 10:49, Tapas Mishra wrote: > I had a C program which I copy pasted and there were line numbers in code. > So I replaced line numbers in vi by following command > :%s/\d*. (<-- last of * is a dot) > > Now I am opening vim in cygwin then all typed lines are coming yellow. > https://i.stack.imgur.com/Dxd8h.jpg > > How do I fix this problem, :noh or :nohlsearch It looks like it is highlighting the matches of the last search you made which was "digit class, 0 or more, and any char". I would not expect Vim to highlight on opening a new file though, only when you tell it to search. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple