Last active
December 21, 2015 12:38
-
-
Save lucianobezerra/6306711 to your computer and use it in GitHub Desktop.
Substituir Texto no VIM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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