Re: vim syntax highlight F9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Thu, Jul 31, 2008 at 6:14 PM, Armin <feng.shaun@xxxxxxxxx> wrote:
On Thursday 31 July 2008 17:31:23 Aaron Konstam wrote:
> On Thu, 2008-07-31 at 16:20 -0300, Armin wrote:
> > On Thursday 31 July 2008 06:16:17 Marcelo M. Garcia wrote:
> > > Hi
> > >
> > > How to enable syntax highlighting in vim? I tried to put "syntax
on" on
> > > /etc/vimrc and on my "~/.vimrc" and does not work.  I have the
> >
> > following
> >
> > > vim packages installed:
> > > [root@newt set_new_machine]# yum list installed vim*
> > > Loaded plugins: refresh-packagekit
> > > Installed Packages
> > > vim-common.i386                          2:7.1.291-1.fc9
> > > installed
> > > vim-enhanced.i386                        2:7.1.291-1.fc9
> > > installed
> > > vim-minimal.i386                         2:7.1.291-1.fc9
> > > installed
> > >
> > > Does anyone know how to solve this?
> > >
> > > Thanks
> > >
> > > Marcelo
> >
> > I have this in my ~/.vimrc
> >
> > :syn on  (note the semicolon)
>
> What semicolon? I had to say that. Do you mean colon?
>
> > and it should work, also if you want the gui version of vim, do
> >
> > $ yum install  gvim
> >
> > --
> > Armin
>
> --
>

The problem is for serching/replacing, for instance:

:%s/something/anotherthing/gc

In the past, using /bin/vi, the cursor could be seen
on the current instance to be replaced.

Now, the cursor just disappears. It works with vim,
but it uses some nasty colors in this case. The advantage
of /bin/vi was that just a white cursor was on the word
to be replaced, and the user could just type 'y' or 'n'.

The funny thing is that for pure searches the cursor is there,
and typing 'n', makes it go to the next instance.
 
The behavior changed on F8. It used to work on F6, though.

--
Paulo Roma Cavalcanti
LCG - UFRJ
-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux