PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > Enable vim color?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

Enable vim color?

Réponse
 
LinkBack Outils de la discussion
Vieux 17/06/2007, 14h40   #1
Vladimir Strycek
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Enable vim color?

Hi all,

i used vim before on debian and when i was editing my python scripts ( i
use vim mainly for python coding ) i've got nice colored syntax and so
on... here in debian i have only black and white.

I tried command :syntax enable or :syntax on but it say " Sorry, the
command is not available in this version: syntax on" but mine version of
vim is 7.0.122 which is not that old i think.

Any idea how to enable this ? or better yet any specialized colored
python editor for console ssh ?

Best regards
Vladimir


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 17/06/2007, 14h50   #2
Nelson Castillo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Enable vim color?

On 6/17/07, Vladimir Strycek <vladoportos@vladoportos.sk> wrote:
> Hi all,
>
> i used vim before on debian and when i was editing my python scripts ( i
> use vim mainly for python coding ) i've got nice colored syntax and so
> on... here in debian i have only black and white.
>
> I tried command :syntax enable or :syntax on but it say " Sorry, the
> command is not available in this version: syntax on" but mine version of
> vim is 7.0.122 which is not that old i think.


Make sure that you have "vim" installed. You get a minimal one by default.

aptitude install vim

Regards.

--
http://arhuaco.org
http://emQbit.com


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 17/06/2007, 15h50   #3
Vladimir Strycek
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Enable vim color?

Nelson Castillo wrote / napísal(a):
> On 6/17/07, Vladimir Strycek <vladoportos@vladoportos.sk> wrote:
>> Hi all,
>>
>> i used vim before on debian and when i was editing my python scripts ( i
>> use vim mainly for python coding ) i've got nice colored syntax and so
>> on... here in debian i have only black and white.
>>
>> I tried command :syntax enable or :syntax on but it say " Sorry, the
>> command is not available in this version: syntax on" but mine version of
>> vim is 7.0.122 which is not that old i think.

>
> Make sure that you have "vim" installed. You get a minimal one by
> default.
>
> aptitude install vim
>
> Regards.
>

Thanks i installed vim-python and its working like charm now :-)


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 17/06/2007, 15h50   #4
Nelson Castillo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Enable vim color?

> >
> Thanks i installed vim-python and its working like charm now :-)


Good

It's good to know that you only need "vim-python" if you actually wish to
use vim scripts written in python. To edit python files you'll be fine
with "vim".

Regards.


--
http://arhuaco.org
http://emQbit.com


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 17/06/2007, 17h40   #5
Wayne Topa
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Enable vim color?

Vladimir Strycek(vladoportos@vladoportos.sk) is reported to have said:
> Hi all,
>
> i used vim before on debian and when i was editing my python scripts ( i
> use vim mainly for python coding ) i've got nice colored syntax and so
> on... here in debian i have only black and white.
>
> I tried command :syntax enable or :syntax on but it say " Sorry, the
> command is not available in this version: syntax on" but mine version of
> vim is 7.0.122 which is not that old i think.
>
> Any idea how to enable this ? or better yet any specialized colored
> python editor for console ssh ?


I am runing vim/vim-common 1:7.0-219+1 in testing. ISTR that on a
recent upgrade, I to, lost syntax highlighting. Looking in the .vimrc
I found this, which was commented out.
---------
" Vim5 and later versions support syntax highlighting. Uncommenting the next
" 3 lines enables syntax highlighting by default.
if has("syntax") && &t_Co > 2
syntax on
syntax on
au FileType c syntax on
-------

HTH

Wayne

--
"Imagine if every Thursday your shoes exploded if you tied them the
usual way. This happens to us all the time with computers, and nobody
thinks of complaining."
-- Jeff Raskin, interviewed in Doctor Dobb's Journal
__________________________________________________ _____


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 05h16.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10117 seconds with 13 queries