<div dir="ltr">Xiaogang, <div><br></div><div>As Linus already noted, you propably forgot the `/g` flag. The g flag means global – each occurrence in the line is changed, rather than just the first. </div><div>I guess you got this, because you&#39;re accustomed to have the default setting for the &#39;gdefault&#39; option on in your Vimrc configuration. Without the `gdefault`  option, it requires that the g flag should be included in %s///g to perform a global substitute. I recommend to set your gdefault to be turned off, it creates confusion because then %s/// is global, whereas %s///g is not (that is, g reverses its meaning). Thus as expected, Evil is showing the correct behaviour of a Vim implementation. <br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-24 4:35 GMT+02:00 LiuXiaogang <span dir="ltr">&lt;<a href="mailto:xiaogang_liu@hotmail.com" target="_blank">xiaogang_liu@hotmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Hi,<div><br></div><div>I isntalled evil-mode version 20150511.146 from melpa yesterday. I tried the following command line</div><div><br></div><div><i>:%s/get-line/getLine/</i></div><div><br></div><div>As you can see from the attached picture, the last match was not highlighted (and not replaced when I hit Enter). I have haskell-mode installed and was editing a simple haskell file. Below is the source code. The green text was the one missed by the command.</div><div><br></div><div><div><i>getLines :: (Num a) =&gt; [String] -&gt; a -&gt; [String]</i></div><div><i>getLines [] n = []</i></div><div><i>getLines xs@(x:_) n</i></div><div><i>  | length xs &lt; n = [] -- Ignore remainder</i></div><div><i>  | otherwise     = (get-line (take n xs)) : (getLines (drop n xs))</i></div><div><i><br></i></div><div><i>get-line :: [String] -&gt; String</i></div><div><i>get-line [] = &quot;\n&quot;</i></div><div><i>get-line (x:xs) = (show x) + &quot;,&quot; + <span style="background-color:rgb(0,255,0)">(get-line</span> xs)</i></div><div><br></div></div><div><br></div><div>Best regards,</div><div>Xiaogang</div><div><br></div><div><br></div>                                               </div></div>
<br>_______________________________________________<br>
implementations-list mailing list<br>
<a href="mailto:implementations-list@lists.ourproject.org">implementations-list@lists.ourproject.org</a><br>
<a href="https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list" target="_blank">https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><a href="http://danielchoi.com/software/vmail.html" target="_blank">Sent from my Vmail client.</a><br></div></div>
</div>