<div dir="ltr"><br><br><div class="gmail_quote">On Thu, Jul 31, 2008 at 6:14 PM, Armin <span dir="ltr"><<a href="mailto:feng.shaun@gmail.com">feng.shaun@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Thursday 31 July 2008 17:31:23 Aaron Konstam wrote:<br>
> On Thu, 2008-07-31 at 16:20 -0300, Armin wrote:<br>
> > On Thursday 31 July 2008 06:16:17 Marcelo M. Garcia wrote:<br>
> > > Hi<br>
> > ><br>
> > > How to enable syntax highlighting in vim? I tried to put "syntax<br>
on" on<br>
> > > /etc/vimrc and on my "~/.vimrc" and does not work.  I have the<br>
> ><br>
> > following<br>
> ><br>
> > > vim packages installed:<br>
> > > [root@newt set_new_machine]# yum list installed vim*<br>
> > > Loaded plugins: refresh-packagekit<br>
> > > Installed Packages<br>
> > > vim-common.i386                          2:7.1.291-1.fc9<br>
> > > installed<br>
> > > vim-enhanced.i386                        2:7.1.291-1.fc9<br>
> > > installed<br>
> > > vim-minimal.i386                         2:7.1.291-1.fc9<br>
> > > installed<br>
> > ><br>
> > > Does anyone know how to solve this?<br>
> > ><br>
> > > Thanks<br>
> > ><br>
> > > Marcelo<br>
> ><br>
> > I have this in my ~/.vimrc<br>
> ><br>
> > :syn on  (note the semicolon)<br>
><br>
> What semicolon? I had to say that. Do you mean colon?<br>
><br>
> > and it should work, also if you want the gui version of vim, do<br>
> ><br>
> > $ yum install  gvim<br>
> ><br>
> > --<br>
> > Armin<br>
><br>
> --<br>
></div></div></blockquote><div><br>The problem is for serching/replacing, for instance:<br><br>:%s/something/anotherthing/gc<br><br>In the past, using /bin/vi, the cursor could be seen<br>on the current instance to be replaced.<br>
<br>Now, the cursor just disappears. It works with vim,<br>but it uses some nasty colors in this case. The advantage<br>of /bin/vi was that just a white cursor was on the word<br>to be replaced, and the user could just type 'y' or 'n'.<br>
<br>The funny thing is that for pure searches the cursor is there,<br>and typing 'n', makes it go to the next instance.<br> </div></div>The behavior changed on F8. It used to work on F6, though.<br><br>-- <br>Paulo Roma Cavalcanti<br>
LCG - UFRJ<br>
</div>