Skip to content

Instantly share code, notes, and snippets.

@lucianobezerra
Last active December 21, 2015 12:38
Show Gist options
  • Save lucianobezerra/6306711 to your computer and use it in GitHub Desktop.
Save lucianobezerra/6306711 to your computer and use it in GitHub Desktop.
Substituir Texto no VIM
Substituir texto no VIM:
:%S/$/\'\)\;/
Texto em Qualquer Lugar:
:%s/windows/linux/g
Remover Ultimo da Linha:
:%s/.\{1}$//
Texto no final da Linha:
:%s/$/text/
Texto no inicio da Linha
:%s/^/text/
: -> Entra em modo de linha
% -> Percorre todas as linhas do arquivo
s -> Comando de Inserção
^ -> Indicativo de inserir no INÍCIO da linha
text -> Texto a ser inserido
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment