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

Re: [linux-team] apparence des tab dans vi



:set ts=4

Change l'indentation a 4.

Tu peux placer/modifier ton fichier config vim (~/.vimrc) de tel sorte
qu'il prenne une valeur définie, voici un extrait de mon .vimrc:


"=============
"==  Conf   ==
"=============

"-- Set tab to 4 chars
:set ts=4

"-- Set Destructive Backspace ON
:set bs=2

"-- Set show ruler
:set ru

:nmap ² 0i#
:vmap ² :s/^/#/


(Les commentaires commencent par des doubles guillemets)

J'ai aussi mapé la touche '²' pour qu'elle place le caractère '#' en début
de ligne et passe à la ligne suivante (pratique en Perl, fichiers config,
etc)

---
ClaudIO

On Tue, 30 Jan 2001, P. Vranckx wrote:

> Bonjour,
> 
> La question peut paraitre stupide : lorsque je met un
> tab dans vi, ca equivaut a une longueur de 8 blancs sur
> l'ecran. Comment faire pour qu'un tab apparaisse plus
> court (plus facile pour indenter un programme ! )
> 
> Patrick
> 
> [ linux-team@rtfm.be and linux@lists.linuxbe.org in ONE :)         ]
> [ To subscribe or unsubscribe, go to http://linuxbe.org/ml.php     ]
> [ http://LinuxBe.org - http://OpenBe.net - listmaster@linuxbe.org  ]
> 


[ linux-team@rtfm.be and linux@lists.linuxbe.org in ONE :)         ]
[ To subscribe or unsubscribe, go to http://linuxbe.org/ml.php     ]
[ http://LinuxBe.org - http://OpenBe.net - listmaster@linuxbe.org  ]