vendredi 20 juin 2008

Quelques trucs pour vi // Some tips for using vi

Voici quelques petit truc a utiliser sous vi en mode commande:

/[MODELE] Recherche [MODELE] dans le fichier.
n Prochaine occurrence de la dernière recherche.

[x]yy Met [x] caractere dans le tampon
p Insert le tampon apres le curseur
P Insert le tampon avant le curseur

[x]b Recule de [x] mots
[x]e Avance a la fin du [x]eme mot

=== English ===

/[PATERN] Search [PATERN] in the current file
n Redo last search (go to next occurence)

[x]yy Put [x] line in buffer
p Insert buffer after the cursor
P Insert buffer before the cursor

[x]b Go back [x] words
[x]e Go to the end on the [x]th word.