FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 07-31-2008, 09:16 AM
"Marcelo M. Garcia"
 
Default vim syntax highlight F9

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

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 07-31-2008, 12:49 PM
gerrynix
 
Default vim syntax highlight F9

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 assume you mean highlight search.... lhs. To control this:

hls and nohls
--
Nix

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 07-31-2008, 12:57 PM
Mogens Kjaer
 
Default vim syntax highlight F9

Marcelo M. Garcia wrote:
...

Does anyone know how to solve this?


When you're inside vim, can you then enable syntax highlighting by

:syntax on

Mogens

--
Mogens Kjaer, Carlsberg A/S, Computer Department
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Fax: +45 33 27 47 08
Email: mk@crc.dk Homepage: http://www.crc.dk

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 07-31-2008, 12:59 PM
"Marcelo M. Garcia"
 
Default vim syntax highlight F9

Hi

No. I mean have a colourful screen when I editing a Python script for
example.


I just tried in a opensuse 10.2 machine and "syntax on" works. What made
me think that is a Fedora specific issue.


Thanks

Marcelo

gerrynix 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


--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 07-31-2008, 03:42 PM
Aaron Konstam
 
Default vim syntax highlight F9

On Thu, 2008-07-31 at 13:59 +0100, Marcelo M. Garcia wrote:
> Hi
>
> No. I mean have a colourful screen when I editing a Python script for
> example.
>
> I just tried in a opensuse 10.2 machine and "syntax on" works. What
> made
> me think that is a Fedora specific issue.
>
> Thanks
>
> Marcelo
>
> gerrynix wrote:
When you read the relevant lines in /e/tc/vimrc you see:
" 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

Which implies that your termminal has to be configured with colors
before syntax on will work.
--
================================================== =====================
You're never too old to become younger. -- Mae West
================================================== =====================
Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam@sbcglobal.net

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 07-31-2008, 07:20 PM
Armin
 
Default vim syntax highlight F9

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)

and it should work, also if you want the gui version of vim, do

$ yum install gvim

--
Armin

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 07-31-2008, 08:31 PM
Aaron Konstam
 
Default vim syntax highlight F9

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
>
--
================================================== =====================
A real patriot is the fellow who gets a parking ticket and rejoices that
the system works.
================================================== =====================
Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam@sbcglobal.net

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 07-31-2008, 09:14 PM
Armin
 
Default vim syntax highlight F9

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
>
> --
>
================================================== =====================
> A real patriot is the fellow who gets a parking ticket and rejoices that
> the system works.
>
================================================== =====================
> Aaron Konstam telephone: (210) 656-0355 e-mail:
akonstam@sbcglobal.net
oh yes, I meant colon

--
Armin

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 08-01-2008, 10:20 AM
"Paulo Cavalcanti"
 
Default vim syntax highlight F9

On Thu, Jul 31, 2008 at 6:14 PM, Armin <feng.shaun@gmail.com> 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@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 

Thread Tools




All times are GMT. The time now is 06:30 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org