shell-script-pt
[Top][All Lists]
Advanced

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

Shellscript & VI - comentando várias linhas


From: Jose Silva
Subject: Shellscript & VI - comentando várias linhas
Date: Wed, 9 Nov 2005 12:10:02 -0200

Companheiros,
esbarei nesta dica que provavelmente será útil a todos que usam VI.

<ESC>:x,ys/^/#/

onde: x = Linha Inicial
y = Linha Final

OU
<ESC>:.,.+5s/^/#/
. = Linha Atual
.+5 = Linha Atual + 5 Linhas

Derivações:

<ESC>:x,ys/^#// Serve para descomentar

<ESC>:x,ys/^/ / Serve para indetar (shifitando para direita)

<ESC>:x,ys/^ // Serve para indetar (shifitando para esquerda)

Fonte: http://gentil.bortoli.com.br/pmwiki/pmwiki.php/Tralha/Tralha


[As partes desta mensagem que não continham texto foram removidas]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]