annotate runtime/tutor/tutor.pt @ 10182:40f6ce4fe30e v7.4.2361

commit https://github.com/vim/vim/commit/ee39ef0b93d31763d05e54ba99801e3f1a254c0d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 10 19:17:42 2016 +0200 patch 7.4.2361 Problem: Checking for last_timer_id to overflow is not reliable. (Ozaki Kiichi) Solution: Check for the number not going up.
author Christian Brabandt <cb@256bit.org>
date Sat, 10 Sep 2016 19:30:06 +0200
parents 1e8ebf870720
children c391bfbdb452
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 ===============================================================================
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2 = B e m V i n d o a o V I M T u t o r - Versão 1.7 pt_BR =
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 ===============================================================================
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 Vim é um poderoso editor que possui muitos comandos, tantos que seria
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 impossível ensinar num tutorial como este. Este tutorial é planejado para
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 apresentar os comandos suficientes para você ficar habilitado a usar
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 facilmente o Vim como um editor de textos genérico.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 O tempo aproximado requerido para completar o tutorial é de 25-30 minutos,
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 dependendo de quanto tempo é gasto praticando os comandos.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 ATENÇÃO:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 Os comandos nas lições vão modificar o texto. Utilize uma cópia deste
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 arquivo para praticar os comandos (se você iniciou o "vimtutor", esta já
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 é uma cópia).
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 É importante lembrar que este tutorial é planejado para ensinar através da
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 prática. Isso significa que você precisa executar os comandos para
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 aprendê-los adequadamente. Se você somente ler o texto, esquecerá os
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 comandos!
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 Agora, certifique-se de que sua tecla Shift-Lock (ou Caps Lock) não esteja
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 ativada e pressione a tecla j o bastante para mover o cursor até que a
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 Lição 1.1 esteja completamente na tela.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 Lição 1.1: MOVENDO O CURSOR
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 ** Para mover o cursor, pressione as teclas h,j,k,l conforme indicado. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31 ^
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 k Dica: A tecla h está à esquerda e move para a esquerda.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33 < h l > A tecla l está à direita e move para a direita.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 j A tecla j se parece com uma seta para baixo.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35 v
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36 1. Mova o cursor pela tela até que você se sinta confortável.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
38 2. Segure pressionada a tecla (j) até haver repetição.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
39 Agora você já sabe como ir para a próxima lição.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
40
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
41 3. Usando a tecla j, mova até a lição 1.2.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
42
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
43 NOTA: Se você está inseguro sobre o que digitou, pressione <ESC> para
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
44 colocá-lo no modo Normal. Então redigite o comando que você queria.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
45
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
46 NOTA: As teclas de cursor devem funcionar também. Mas usando hjkl, tão logo
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
47 esteja acostumado, você poderá se mover muito mais rapidamente.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
48
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
49 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
50 Lição 1.2: SAINDO DO VIM
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
51
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
52
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
53 !! NOTA: Antes de executar qualquer dos passos abaixo, leia a lição inteira !!
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
54
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
55 1. Pressione <ESC> (para ter certeza de que está no modo Normal).
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
56
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
57 2. Digite :q! <ENTER>.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
58 Isso sai do editor SEM salvar qualquer mudança que tenha sido feita.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
59 Se quiser salvar as alterações e sair, digite :wq <ENTER>
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
60
5697
c2098c3095e7 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2539
diff changeset
61 3. Repita o procedimento que lhe trouxe a este tutorial. O procedimento pode
c2098c3095e7 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2539
diff changeset
62 ter sido a digitação de: vimtutor <ENTER>.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
63
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
64 4. Se você memorizou estes passos e está confiante, execute os passos de
5697
c2098c3095e7 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2539
diff changeset
65 1 a 3 para sair e reentrar no editor.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
66
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
67 NOTA: :q! <ENTER> descarta qualquer mudança. Em uma próxima lição será
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
68 ensinado como salvar as mudanças feitas em um arquivo.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
69
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
70 5. Desça o cursor até a Lição 1.3.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
71
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
72 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
73 Lição 1.3: EDITANDO TEXTOS - DELEÇÃO
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
74
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
75 ** No modo Normal, pressione x para deletar o caractere sob o cursor. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
76
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
77
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
78 1. Mova o cursor para a linha abaixo marcada com --->.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
79
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
80 2. Para corrigir os erros, mova o cursor até que ele esteja sobre o
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
81 caractere a ser deletado.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
82
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
83 3. Pressione a tecla x para deletar o caractere indesejado.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
84
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
85 4. Repita os passos 2 até 4 até que a sentença esteja correta.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
86
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
87 ---> A vvaca pullouu por ccimaa dda luuua.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
88
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
89 5. Agora que a sentença está correta, vá para a Lição 1.4.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
90
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
91 NOTA: Enquanto segue este tutorial, não tente memorizar, aprenda pelo uso.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
92
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
93
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
94
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
95 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
96 Lição 1.4: EDITANDO TEXTOS - INSERÇÃO
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
97
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
98 ** Pressione i para inserir texto. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
99
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
100
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
101 1. Mova o cursor até a primeira linha abaixo marcada com --->.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
102
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
103 2. Para fazer a primeira linha ficar igual à segunda, mova o cursor para
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
104 o primeiro caractere DEPOIS de onde o texto deverá ser inserido.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
105
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
106 3. Pressione i e digite as adições necessárias.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
107
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
108 4. Assim que cada erro for corrigido pressione <ESC> para retornar ao modo
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
109 Normal. Repita os passos 2 até 4 para corrigir a sentença.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
110
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
111 ---> Tem text fatado desta .
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
112 ---> Tem algum texto faltando desta linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
113
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
114 5. Quando se sentir confortável com a inserção de texto, mova o cursor para
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
115 a lição 1.5.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
116
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
117
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
118 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
119 Lição 1.5: EDITANDO TEXTO - ADICIONANDO
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
120
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
121 ** Pressione A para adicionar texto. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
122
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
123 1. Mova o curso para a primeira linha abaixo marcada com --->.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
124 Não importa sobre qual caractere o cursor estará na linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
125
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
126 2. Pressione A e digite as adições necessárias.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
127
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
128 3. Quando adicionar o texto, pressione <ESC> para retornar ao modo Normal.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
129
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
130 4. Mova o cursor para a segunda linha marcada ---> e repita os passos 2 e 3
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
131 para corrigir o texto.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
132
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
133 ---> Há algum texto faltando des
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
134 Há algum texto faltando desta linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
135 Há algum texto faltan
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
136 ---> Há algum texto faltando aqui.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
137
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
138 5. Quando se sentir confortável adicionando texto, mova para a lição 1.6.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
139
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
140
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
141 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
142 Lição 1.6: EDITANDO UM ARQUIVO
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
143 ** Use :wq para salvar um arquivo e sair. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
144
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
145 !! NOTA: Antes de executar qualquer um dos passos abaixo,
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
146 leia esta lição completamente!!
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
147
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
148 1. Saia deste tutorial como o fez na lição 1.2: :q!
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
149 Ou, se tiver acesso a outro terminal, faça o seguinte nele.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
150
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
151 2. No prompt do shell, digite esse comando: vim tutor <ENTER>
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
152 'vim' is é comando para iniciar o editor Vim e 'tutor' é o nome do
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
153 arquivo que você deseja editar. Use um arquivo que possa ser modificado.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
154
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
155 3. Insira e delete texto tal como aprendeu com as lições anteriores.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
156
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
157 4. Salve o arquivo com as mudanças e saia do Vim com: :wq <ENTER>
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
158
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
159 5. Se você tiver saído do vimtutor no passo 1, reinicie o vimtutor e vá para
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
160 o sumário seguinte.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
161
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
162 6. Após ler os passos acima e compreendê-los, execute-os.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
163
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
164 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
165 SUMÁRIO DA LIÇÃO 1
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
166
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
167 1. O cursor é movido usando tanto as teclas de seta quanto as teclas hjkl.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
168 h (esquerda) j (para baixo) k (para cima) l (direita)
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
169
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
170 2. Para entrar no Vim a partir de um shell digite: vim NOMEDOARQUIVO <ENTER>
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
171
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
172 3. Para sair do Vim digite: <ESC> :q! <ENTER> para descartar as alterações.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
173 OU digite: <ESC> :wq <ENTER> para salvar as alterações.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
174
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
175 4. Para deletar um caractere sob o cursor no modo Normal digite: x
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
176
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
177 5. Para inserir texto na posição do cursor enquanto estiver no modo Normal
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
178 digite:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
179 i digite o texto <ESC> inserir depois do cursor
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
180 A digite o texto <ESC> adicionar no final da linha
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
181
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
182 NOTA: Pressionando <ESC> você irá para o modo Normal ou cancelará um comando
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
183 ainda incompleto.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
184
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
185 Agora continue com a Lição 2.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
186
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
187 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
188 Lição 2.1: COMANDOS DE DELEÇÃO
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
189
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
190 ** Digite dw para deletar até o final de uma palavra. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
191
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
192
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
193 1. Pressione <ESC> para ter certeza de que está no modo Normal.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
194
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
195 2. Mova o cursor até a linha abaixo marcada com --->.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
196
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
197 3. Mova o cursor até o começo da palavra que precisa ser deletada.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
198
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
199 4. Digite dw para fazer a palavra desaparecer.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
200
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
201 NOTA: A letra d vai aparece na última linha da tela enquanto você a
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
202 digita. O Vim está lhe esperando digitar um w . Se você digitou
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
203 alguma coisa errada, pressione <ESC> e comece de novo.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
204
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
205 ---> Tem a algumas oi palavras diversão que não pertencem papel a esta sentença.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
206
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
207 5. Repita os passos 3 ao 4 até que a sentença esteja correta e vá para a
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
208 Lição 2.2.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
209
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
210 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
211 Lição 2.2: MAIS COMANDOS DE DELEÇÃO
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
212
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
213 ** Digite d$ para deletar até o final da linha. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
214
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
215
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
216
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
217 1. Pressione <ESC> para ter certeza de estar no modo Normal.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
218
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
219 2. Mova o cursor até a linha abaixo marcada com --->.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
220
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
221 3. Mova o cursor até o fim da linha correta (DEPOIS do primeiro .).
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
222
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
223 4. Digite d$ para deletar até o final da linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
224
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
225 ---> Alguém digitou o final desta linha duas vezes. desta linha duas vezes.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
226
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
227 5. Vá para a lição 2.3 para entender o que está acontecendo.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
228
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
229
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
230
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
231
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
232
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
233 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
234 Lição 2.3: SOBRE OPERADORES E MOVIMENTOS
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
235
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
236 Muitos comandos que mudam texto são feitos de um operador e um movimento.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
237 O formato para um comando deletar com o operador de deleção d tem a
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
238 seguinte forma:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
239
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
240 d movimento
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
241 Onde:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
242 d - é o operador deletar.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
243 movimento - é como o operador vai operar (listado abaixo).
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
244
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
245 Uma pequena lista de teclas de movimento:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
246 w - do cursor até o fim da palavra, incluindo o espaço.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
247 e - do cursor até o fim da palavra, NÃO incluindo o espaço.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
248 $ - do cursor até o fim da linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
249
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
250 Portanto, digitando de irá deletar do cursor ao fim da palavra.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
251
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
252 NOTA: Pressionando apenas a tecla de movimento enquanto em modo Normal, sem o
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
253 operador, irá mover o cursor como especificado na lista de teclas de
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
254 movimento.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
255
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
256 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
257 Lição 2.4: USANDO UM CONTADOR PARA UM MOVIMENTO
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
258
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
259 ** Digitando um número antes de um movimento repete-o muitas vezes. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
260
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
261
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
262 1. Mova o cursor para o começo da linha marcada com ---> abaixo.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
263
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
264 2. Digite 2w para mover o cursor duas palavras adiante.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
265
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
266 3. Digite 3e para mover o cursor para o fim da terceira palavra adiante.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
267
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
268 4. Digite 0 (zero) para mover para o início da linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
269
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
270 5. Repita os passos 2 e 3 com diferentes números.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
271
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
272 ---> Esta é uma linha com algumas palavras para lhe permitir fazer movimentos.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
273
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
274 6. Vá para a Lição 2.5.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
275
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
276
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
277
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
278
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
279 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
280 Lição 2.5: USANDO UM CONTADOR PARA DELETAR MAIS
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
281
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
282 ** Digitando um número com um operador repete-o esse número de vezes. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
283
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
284
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
285 Você deve inserir um contador entre o operador de deleção e o movimento
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
286 mencionados acima para para deletar mais:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
287 d número movimento
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
288
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
289 1. Movimente o cursor para a primeira palavra com LETRAS MAIÚSCULAS na
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
290 linha marcada com --->.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
291
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
292 2. Digite d2w para deletar as duas palavras com LETRAS MAIÚSCULAS.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
293
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
294 3. Repita os passos 1 e 2 com diferentes contadores para deletar as
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
295 palavras de LETRAS MAIÚSCULAS com um comando.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
296
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
297 ---> esta ABC DE linha FGHI JK LMN OP de palavras está Q RS TUV limpa.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
298
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
299
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
300
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
301
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
302 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
303 Lição 2.6: OPERANDO SOBRE LINHAS
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
304
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
305 ** Digite dd para deletar uma linha inteira. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
306
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
307 Em virtude da frequência em deletar uma linha inteira, os projetistas do Vi
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
308 decidiram que seria mais simples digitar dois d's numa linha para deletá-la.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
309
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
310 1. Mova o cursor até a segunda linha na lista a baixo.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
311 2. Digite dd para deletar a linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
312 3. Agora mova até a quarta linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
313 4. Digite 2dd para deletar duas linhas.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
314
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
315 ---> 1) Rosas são vermelhas,
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
316 ---> 2) Lama é divertida,
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
317 ---> 3) Violetas são azuis,
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
318 ---> 4) Eu tenho um carro,
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
319 ---> 5) Relógios dizem as horas,
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
320 ---> 6) Açúcar é doce,
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
321 ---> 7) E assim é você.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
322
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
323 Notas do tradutor: Lama (mud) em inglês pode significar fofoca, difamação.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
324 Há rima no texto original.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
325 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
326 Lição 2.7: O COMANDO UNDO (DESFAZER)
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
327
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
328 ** Pressione u para desfazer os últimos comandos, U restaura linha inteira.**
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
329
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
330
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
331 1. Mova o cursor para a linha abaixo marcada com ---> e posicione-o sobre o
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
332 primeiro erro.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
333 2. Digite x para deletar o primeiro caractere indesejado.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
334 3. Agora, digite u para desfazer o último comando executado.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
335 4. Desta vez, corrija todos os erros na linha usando o comando x .
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
336 5. Agora, digite um U maiúsculo para retornar a linha ao seu estado original.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
337 6. Digite u algumas vezes para desfazer o U e os comandos anteriores.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
338 7. Digite CTRL-R (segurando a tecla CTRL enquanto digita R) algumas vezes
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
339 para refazer os comandos (desfazer os undo's).
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
340
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
341 ---> Corriija os erros nnesta linha e reetorne-os com undo.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
342
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
343 8. Esses comandos são muito úteis. Agora vá para o sumário da Lição 2.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
344
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
345
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
346
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
347
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
348 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
349 SUMÁRIO DA LIÇÃO 2
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
350
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
351
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
352 1. Para deletar do cursor até o fim de uma palavra digite: dw
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
353 2. Para deletar do cursor até o fim de uma linha digite: d$
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
354 3. Para deletar uma linha inteira digite: dd
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
355 4. Para repetir um movimento adicione antes um número: 2w
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
356 5. O formato para um comando no modo Normal é:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
357 operador [número] movimento
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
358 onde:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
359 operador - é o que será feito, como d para deletar
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
360 número - é quantas vezes o comando será repetido
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
361 movimento - movimento sobre o texto que sofrerá a operação, como
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
362 w (palavra), $ (até o final da linha), etc.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
363
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
364 5. Para desfazer um ação anterior, digite: u (minúsculo)
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
365 Para desfazer todas as modificações em uma linha digite: U (maiúsculo)
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
366 Para desfazer o que foi desfeito digite: CTRL-R
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
367
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
368
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
369
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
370
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
371 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
372 Lição 3.1: O COMANDO PUT (PÔR)
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
373
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
374 ** Digite p para colocar a última deleção após o cursor. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
375
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
376
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
377 1. Mova o cursor até a primeira linha na lista abaixo.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
378
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
379 2. Digite dd para deletar a linha e guardá-la no buffer do Vim.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
380
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
381 3. Mova o cursor até a linha ACIMA de onde a linha deletada deve ficar.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
382
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
383 4. No modo Normal, digite p para inserir a linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
384
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
385 5. Repita os passos 2 ao 4 para pôr todas as linhas na ordem correta.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
386
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
387 d) Você pode aprender também?
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
388 b) Violetas são azuis,
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
389 c) Inteligência se aprende,
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
390 a) Rosas são vermelhas,
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
391
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
392 Nota do tradutor: Há rima no original.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
393
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
394 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
395 Lição 3.2: O COMANDO REPLACE (SUBSTITUIR)
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
396
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
397 ** Digite rx para substituir o caractere sob o cursor por x . **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
398
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
399
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
400 1. Mova o cursor até a primeira linha abaixo marcada com --->.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
401
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
402 2. Mova o cursor até que ele esteja sobre o primeiro erro.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
403
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
404 3. Digite r e então o caractere que deveria estar lá.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
405
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
406 4. Repita os passos 2 e 3 até que a primeira linha esteja correta.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
407
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
408 ---> Quendo este limha foi dugitada, alguem pressioniu algumas teclas erradzs!
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
409 ---> Quando esta linha foi digitada, alguém pressionou algumas teclas erradas!
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
410
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
411 5. Agora vá para a Lição 3.3.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
412
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
413 NOTA: Lembre-se que você deve aprender pelo uso, não pela memorização.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
414
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
415
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
416
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
417 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
418 Lição 3.3: O OPERADOR CHANGE (MUDAR)
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
419
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
420 ** Para mudar toda uma palavra ou parte dela, digite cw . **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
421
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
422
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
423 1. Mova o cursor até a primeira linha abaixo marcada com --->.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
424
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
425 2. Posicione o cursor sobre o u em lunba.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
426
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
427 3. Digite cw e a palavra correta (nesse caso, digite 'inha'.)
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
428
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
429 4. Pressione <ESC> e mova para o próximo caractere a ser alterado.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
430
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
431 5. Repita os passos 3 e 4 até que a primeira sentença esteja igual à segunda.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
432
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
433 ---> Essa lunba tem pwlesmfr que ocrimmm soi alteradas cup o comando change.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
434 ---> Essa linha tem palavras que precisam ser alteradas com o comando change.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
435
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
436 Note que cw não somente substitui a palavra, mas também lhe coloca no modo
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
437 de inserção.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
438
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
439
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
440 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
441 Lição 3.4: MAIS MUDANÇAS USANDO c
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
442
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
443 ** O operador change é usado com os mesmos objetos que delete. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
444
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
445 1. O operador change trabalha da mesma maneira que o delete. O formato é:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
446
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
447 c [número] movimento
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
448
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
449 2. Os movimentos também são os mesmos: w (palavra), $ (fim da linha), etc.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
450
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
451 3. Mova até a primeira linha abaixo marcada com --->.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
452
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
453 4. Mova o cursor até o primeiro erro.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
454
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
455 5. Digite c$ para fazer o resto da linha ficar igual à segunda e pressione
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
456 <ESC>.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
457
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
458 ---> O fim desta linha precisa de ajuda para ficar igual à segunda.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
459 ---> O fim desta linha precisa ser corrigido usando o comando c$.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
460
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
461 NOTA: Você pode usar a tecla Backspace para corrigir erros enquanto digita.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
462
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
463 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
464 SUMÁRIO DA LIÇÃO 3
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
465
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
466
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
467 1. Para inserir um texto que já foi deletado, digite p . Isso coloca o texto
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
468 deletado APÓS o cursor (se uma linha é deletada ela será inserida na linha
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
469 abaixo do cursor).
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
470
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
471 2. Para substituir o caractere sob o cursor, digite r e então o caractere
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
472 que irá substituir o original.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
473
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
474 3. O comando change possibilita mudar do cursor até onde o movimento for.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
475 Ex: Digite cw para mudar do cursor até o fim de uma palavra, c$ para
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
476 mudar até o fim da linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
477
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
478 4. O formato para uma operação change é:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
479
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
480 c [número] movimento
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
481
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
482 Agora vá para a próxima lição.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
483
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
484
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
485
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
486 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
487 Lição 4.1: LOCALIZAÇÃO DO CURSOR E STATUS DO ARQUIVO
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
488
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
489 ** Digite CTRL-G para mostrar sua localização no arquivo e seu status.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
490 Digite G para mover para uma linha do arquivo. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
491
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
492 Nota: Leia esta lição inteira antes de executar qualquer um dos passos!!
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
493
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
494 1. Segure pressionada a tecla Ctrl e pressione g . Nós chamamos isso de
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
495 CTRL-G. Uma mensagem aparecerá no rodapé da página com o nome do arquivo
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
496 e a sua posição no arquivo. Lembre-se do número da linha para o Passo 3.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
497
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
498 NOTA: A posição do cursor pode estar visível no canto direito inferior da
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
499 tela. Isso acontece quando a opção 'ruler' está ativa
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
500 (veja :help 'ruler' ).
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
501
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
502 2. Pressione G para mover para o final do arquivo.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
503 Digite gg para mover para o início do arquivo.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
504
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
505 3. Digite o número da linha em que você estava e então G . Isto
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
506 retornará o cursor à linha em que você estava quando pressionou CTRL-G.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
507
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
508 4. Se você estiver confiante para fazer isto, execute os passos 1 ao 3.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
509 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
510 Lição 4.2: O COMANDO SEARCH (PROCURA)
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
511
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
512 ** Digite / seguido por uma string para procurar pela string. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
513
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
514 1. No modo Normal digite o caractere / . Note que ele e o cursor aparecem
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
515 no rodapé da tela, como ocorre com o comando : .
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
516
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
517 2. Agora digite 'errroo' <ENTER>. Esta é a palavra que você quer procurar.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
518
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
519 3. Para procurar pela mesma palavra de novo, simplesmente tecle n .
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
520 Para procurar pela mesma palavra na direção oposta, tecle N .
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
521
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
522 4. Se você quer procurar por uma string no sentido de frente para trás, use
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
523 ? em vez de / .
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
524
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
525 5. Para voltar para onde estava, pressione CTRL-O (mantenha a tecla Ctrl
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
526 pressionada e pressione a tecla o). Repita para voltar outras posições.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
527 CTRL-I segue para posições mais recentes.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
528
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
529 ---> "errroo" não é uma maneira de escrever erro; errroo é um erro.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
530 NOTA: Quando a busca atinge o final do arquivo ela continuará do começo, a
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
531 menos que a opção 'wrapscan' esteja desativada.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
532 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
533 Lição 4.3: PROCURA POR CASAMENTO DE PARÊNTESES
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
534
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
535 ** Digite % para achar um casamento de ),], ou } . **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
536
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
537
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
538 1. Posicione o cursor em qualquer (, [, ou { na linha abaixo marcada com --->.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
540 2. Agora digite o caractere % .
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
541
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
542 3. O cursor deve estar no parênteses ou colchetes que casa com o primeiro.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
543
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
544 4. Digite % para mover o cursor de volta ao primeiro colchete ou parênteses
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
545 (por casamento).
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
546
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
547 ---> Isto ( é uma linha de teste contendo ('s, ['s ] e {'s }. ))
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
548
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
549 Nota: Isso é muito útil para corrigir um programa com parênteses não-casados!
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
550
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
551
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
552
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
553
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
554
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
555 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
556 Lição 4.4: O COMANDO SUBSTITUIR
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
557
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
558 ** Digite :s/velho/novo/g para substituir 'velho' por 'novo'. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
559
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
560
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
561 1. Mova o cursor para a linha abaixo marcada com --->.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
562
5697
c2098c3095e7 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2539
diff changeset
563 2. Digite :s/aa/a <ENTER> . Note que este comando somente muda a
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
564 primeira ocorrência na linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
565
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
566 3. Agora digite :s/aa/a/g significando substituir globalmente na linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
567 Isto muda todas as ocorrências na linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
568
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
569 ---> aa melhor época para ver aas flores é aa primavera.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
570
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
571 4. Para mudar toda ocorrência de uma string entre duas linhas,
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
572 digite :#,#s/velho/novo/g onde #,# são os números das duas linhas.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
573 Digite :%s/velho/novo/g para mudar todas as ocorrências no arquivo
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
574 inteiro.
6153
1e8ebf870720 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 5697
diff changeset
575 Digite :%s/velho/novo/gc para mudar todas as ocorrência no arquivo
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
576 inteiro, com a opção de confirmar cada
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
577 substituição.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
578 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
579 SUMÁRIO DA LIÇÃO 4
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
580 1. CTRL-G mostra a sua localização no arquivo e o status do mesmo.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
581 G move para o final do arquivo.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
582 número G move para esta linha com esse número.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
583 gg move para a primeira linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
584
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
585 2. Digitando / seguido por uma expressão procura À FRENTE por ela.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
586 Digitando ? seguido por uma expressão procura pela expressão de TRÁS
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
587 PARA FRENTE.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
588 Após uma busca, digite n para achar a próxima ocorrência na mesma direção
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
589 ou N para procurar na direção oposta.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
590 CTRL-O leva a posições antigas e CTRL-I a posições mais recentes.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
591
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
592 3. Digitando % enquanto o cursor está sobre um (,),[,],{, ou } localiza
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
593 o par que casa com ele.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
594
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
595 4. Para substituir:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
596 o primeiro 'velho' de uma linha por 'novo' digite :s/velho/novo
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
597 todos os 'velho's em uma linha por 'novo' digite :s/velho/novo/g
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
598 expressões entre dois números (#) de linhas digite :#,#s/velho/novo
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
599 todas as ocorrências no arquivo digite :%s/velho/novo/g
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
600 Para confirmar cada substituição adicione 'c' :%s/velho/novo/gc
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
601 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
602 Lição 5.1: COMO EXECUTAR UM COMANDO EXTERNO
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
603
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
604
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
605 ** Digite :! seguido por um comando externo para executar esse comando. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
606
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
607 1. Digite o familiar comando : para levar o cursor ao rodapé da tela. Isso
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
608 lhe permite entrar um comando.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
609
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
610 2. Agora digite o caractere ! (ponto de exclamação). Isso lhe permite
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
611 executar qualquer comando do shell.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
612
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
613 3. Como um exemplo digite ls seguindo o ! e então tecle <ENTER>. Isto
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
614 irá mostrar uma listagem do seu diretório, como se você estivesse no
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
615 prompt do shell. Ou use :!dir se ls não funcionar.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
616
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
617 NOTA: É possível executar qualquer comando externo dessa maneira, inclusive
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
618 com argumentos.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
619
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
620 NOTA: Todos os comandos : devem ser finalizados teclando-se <ENTER>
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
621 Daqui em diante não iremos mencionar isso sempre.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
622
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
623
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
624 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
625 Lição 5.2: MAIS SOBRE SALVAR ARQUIVOS
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
626
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
627 ** Para salvar as alterações no texto, digite :w NOMEDOARQUIVO. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
628
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
629
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
630 1. Digite :!dir ou :!ls para ter uma listagem de seu diretório.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
631 Você já deve saber que precisa teclar <ENTER> depois disso.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
632
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
633 2. Escolha um nome de arquivo que ainda não exista, como TESTE.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
634
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
635 3. Agora digite: :w TESTE (onde TESTE é o nome que você escolheu.)
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
636
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
637 4. Isto salva o arquivo inteiro (o Vim Tutor) com o nome TESTE.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
638 Para verificar isso, digite :!ls de novo para ver seu diretório
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
639
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
640 NOTA: Se você sair do Vim e entrar de novo com o nome do arquivo TESTE,
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
641 o arquivo deve ser uma cópia exata do tutor quando você o salvou.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
642
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
643 5. Agora remova o arquivo digitando (MS-DOS): :!del TESTE
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
644 ou (Unix): :!rm TESTE
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
645
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
646
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
647 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
648 Lição 5.3: SELECIONANDO O TEXTO A SER SALVO
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
649
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
650 ** Para salvar parte de um arquivo, digite v movimento NOMEDOARQUIVO **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
651
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
652 1. Mova o cursor para esta linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
653
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
654 2. Pressione v e mova o cursor para o quinto item abaixo. Note que o texto
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
655 é realçado.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
656
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
657 3. Pressione o caractere : e note que aparecerá :'<,'> no lado inferior
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
658 da tela.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
659
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
660 4. Digite w TESTE , sendo TESTE um nome de arquivo que não existe ainda.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
661 Você deverá ver :'<,'>w TESTE antes de pressionar <ENTER>.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
662
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
663 5. O Vim salvará as linhas selecionadas no arquivo TESTE. Use :!dir ou
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
664 !:ls para vê-lo. Não o apague agora! Nós o usaremos na próxima lição.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
665
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
666 NOTA: Pressionando v inicia o modo Visual de seleção. Você pode mover o
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
667 cursor pela tela para tornar a seleção maior ou menor. Pode, então, usar um
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
668 operador para executar alguma ação. Por exemplo, d deleta o texto.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
669
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
670 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
671 Lição 5.4: RECUPERANDO E JUNTANDO ARQUIVOS
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
672
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
673 ** Para inserir o conteúdo de um arquivo, digite :r NOMEDOARQUIVO **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
674
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
675
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
676 1. Posicione o cursor logo acima desta linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
677
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
678 NOTA: Depois de executar o Passo 2 você verá a lição 5.3. Então DESÇA o
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
679 cursor para ver esta lição novamente.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
680
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
681 2. Agora recupere o arquivo TESTE usando o comando :r TESTE onde TESTE é o
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
682 nome do arquivo.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
683 O arquivo recuperado é colocado abaixo da linha atual do cursor.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
684
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
685 3. Para verificar que o arquivo foi recuperado, volte com o cursor e verifique
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
686 que agora existem duas cópias da Lição 5.3, a original e a versão do
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
687 arquivo.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
688
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
689 NOTA: Você também pode ler a saída de um comando externo. Por exemplo, :r !ls
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
690 lê a saída do comando ls e coloca o resultado abaixo do cursor.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
691
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
692
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
693 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
694 SUMÁRIO DA LIÇÃO 5
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
695
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
696
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
697 1. :!comando executa um comando externo.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
698
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
699 Alguns exemplos úteis são:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
700 (MS-DOS) (UNIX)
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
701 :!dir :!ls - lista conteúdo do diretório.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
702 :!del ARQUIVO :!rm ARQUIVO - remove ARQUIVO.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
703
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
704 2. :w ARQUIVO salva o atual arquivo do Vim para o disco com o nome ARQUIVO.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
705
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
706 3. v movimento :w ARQUIVO salva as linhas Visualmente selecionadas em
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
707 ARQUIVO.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
708
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
709 4. :r ARQUIVO recupera ARQUIVO do disco e o insere dentro do arquivo atual
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
710 na posição do cursor.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
711
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
712 5. :r !dir lê a saída do comando dir e coloca o resultado abaixo da posição
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
713 atual do cursor.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
714
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
715
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
716 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
717 Lição 6.1: O COMANDO OPEN (ABRIR)
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
718
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
719 ** Digite o para abrir uma linha embaixo do cursor e ir para o modo de
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
720 Inserção (INSERT). **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
721
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
722 1. Mova o cursor para a linha abaixo marcada com --->.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
723
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
724 2. Digite o (minúsculo) para abrir uma linha ABAIXO do cursor e ir para o
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
725 modo de Inserção (INSERT).
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
726
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
727 3. Agora digite algum texto e pressione <ESC> para sair do modo de
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
728 Inserção.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
729
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
730 ---> Após teclar o o cursor é colocado na linha aberta no modo de Inserção.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
731
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
732 4. Para abrir uma linha ACIMA do cursor, simplesmente tecle um O maiúsculo,
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
733 em vez de um o minúsculo. Tente isso na linha abaixo.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
734
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
735 ---> Abra uma linha acima desta teclando O enquanto o cursor está nesta linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
736
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
737
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
738
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
739 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
740 Lição 6.2: O COMANDO APPEND
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
741
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
742 ** Digite a para inserir texto DEPOIS do cursor. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
743
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
744 1. Mova o cursor para o início da linha marcada com ---> .
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
745
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
746 2. Pressione e até o cursor ficar sobre o final de li .
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
747
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
748 3. Digite um a (minúsculo) para adicionar texto DEPOIS do caractere sob o
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
749 cursor.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
750
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
751 4. Complete a palavra conforme a linha abaixo. Pressione <ESC> para sair do
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
752 modo de Inserção.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
753
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
754 5. Use e para mover para a próxima palavra incompleta repita os passos 3
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
755 e 4.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
756
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
757 ---> Esta lin lhe permite pratic a adiç de texto a uma linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
758 ---> Esta linha lhe permite praticar a adição de texto a uma linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
759
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
760 NOTA: a, i e A levam ao mesmo modo de Inserção, a única diferença é onde os
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
761 caracteres são inseridos.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
762 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
763 Lição 6.3: UMA OUTRA VERSÃO DO REPLACE (SUBSTITUIR)
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
764
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
765 ** Digite um R maiúsculo para substituir mais de um caractere. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
766
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
767
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
768 1. Mova o cursor para a primeira linha abaixo marcada com --->. Mova o
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
769 cursor para o início do primeiro xxx .
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
770
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
771 2. Agora pressione R e digite os números que estão abaixo dele, na segunda
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
772 linha, para substituir o xxx .
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
773
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
774 3. Pressione <ESC> para sair do modo de Substituição. Note que o resto da
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
775 linha permanece inalterada.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
776
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
777 4. Repita os passos para substituir os xxx restantes.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
778
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
779 ---> Adicionando 123 a xxx resulta em xxx.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
780 ---> Adicionando 123 a 456 resulta em 579.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
781
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
782 NOTA: O modo de Substituição é como o modo de Inserção, mas cada caractere
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
783 digitado deleta um caractere existente.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
784
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
785 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
786 Lição 6.4: COPIAR E COLAR TEXTO
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
787
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
788 ** Use o operador y para copiar texto e p para colá-lo. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
789
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
790 1. Vá para a linha marcada com ---> abaixo e posicione o cursor após "a)".
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
791
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
792 2. Inicie o modo Visual com v e mova o cursor para logo antes de
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
793 "primeiro".
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
794
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
795 3. Digite y para copiar o texto selecionado.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
796
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
797 4. Mova o cursor para o final da próxima linha: j$
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
798
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
799 5. Digite p par pôr (colar) o texto. Então, digite: o segundo <ESC> .
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
800
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
801 6. Use o modo Visual para selecionar " item.", copie-o com y , mova para
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
802 o fina da próxima linha com j$ e ponha (cole) o texto com p .
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
803
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
804 ---> a) esse é o primeiro item.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
805 b)
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
806 NOTA: Você também pode usar y como um operador; por exemplo, yw copia uma
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
807 palavra.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
808 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
809 Lição 6.5: CONFIGURAR PREFERÊNCIAS
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
810
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
811 ** Configurar uma preferência de modo que um search ou substitute
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
812 ignora se as letras estão em maiúsculas ou minúsculas. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
813
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
814 1. Procure por 'ignore' entrando: /ignore <ENTER>
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
815 Repita várias vezes teclando n .
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
816 2. Configure a opção 'ic' (Ignore case) digitando:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
817 :set ic
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
818 3. Agora procure por 'ignore' de novo teclando: n
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
819 Repita várias vezes.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
820 4. Configure as opções 'hlsearch' e 'incsearch':
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
821 :set hls is
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
822 5. Agora entre com o comando search de novo, e veja o que acontece:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
823 /ignore
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
824 6. Para desabilitar a desconsideração de maiúsculas e minúsculas:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
825 :set noic
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
826
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
827 NOTA: Para remover o realce dos termos localizados entre: :nohlsearch
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
828 NOTA: Se quiser ignorar a diferença entre maiúsculas e minúsculas em apenas
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
829 uma pesquisa, use \c no comando: /ignore\c <ENTER>
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
830
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
831 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
832 SUMÁRIO DA LIÇÃO 6
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
833
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
834 1. Digite o para abrir uma linha ABAIXO do cursor e iniciar o modo de
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
835 Inserção.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
836 Digite O para abrir uma linha ACIMA da linha onde o cursor está.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
837
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
838 2. Digite a para adicionar texto DEPOIS do caractere onde está o cursor.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
839 Digite A para adicionar texto ao final da linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
840
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
841 3. O comando e move o cursor para o final de uma palavra.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
842
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
843 4. O operador y copia texto, p põe (cola) o texto copiado.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
844
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
845 5. Digitando R entra-se no modo de Substituição até que <ESC> seja
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
846 pressionado.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
847
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
848 6. Digitando ":set xxx" modifica-se a opção "xxx". Algumas opções são:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
849 'ic' 'ignorecase' ignora diferença entre maiúsculas/minúsculas
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
850 'is' 'incsearch' realiza a busca enquanto se digita
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
851 'hls' 'hlsearch' realça todos os trechos localizados
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
852 Você tanto pode usar o nome curto quanto o nome longo da opção.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
853 7. Adicione o prefixo "no" para desabilitar uma opção: :set noic
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
854 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
855 LIÇÃO 7.1: OBTENDO AJUDA
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
856
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
857 ** Usar o sistema de ajuda do próprio Vim **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
858
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
859 O Vim possui sistema de ajuda abrangente. Para começar, tente algum
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
860 desses três:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
861 - pressione a tecla <HELP> (se você tiver uma)
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
862 - pressione a tecla <F1> (se você tiver uma)
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
863 - digite :help <ENTER>
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
864
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
865 Leia o texto da ajuda para aprender como o sistema de ajuda funciona.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
866 Digite CTRL-W CTRL-W para pular de uma janela para outra.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
867 Digite :q <ENTER> para fechar a janela da ajuda.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
868
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
869 Você pode achar ajuda sobre qualquer assunto, fornecendo um argumento para
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
870 o comando ":help". Tente isto (não esqueça de pressionar <ENTER>):
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
871
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
872 :help w
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
873 :help c_CTRL-D
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
874 :help insert-index
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
875 :help user-manual
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
876
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
877 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
878 Lição 7.2: CRIAR UM SCRIPT DE INICIALIZAÇÃO
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
879
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
880 ** Habilitar recursos do Vim **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
881
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
882 O Vim tem muito mais recursos do que o Vi, mas na sua maioria eles são
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
883 desabilitados por padrão. Para usar mais recursos, você tem que criar um
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
884 arquivo "vimrc".
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
885
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
886 1. Comece a editar o arquivo "vimrc". Isso depende do sistema:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
887 :e ~/.vimrc para Unix
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
888 :e $VIM/_vimrc para MS-Windows
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
889
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
890 2. Agora, leia o conteúdo do arquivo "vimrc" de exemplo:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
891 :r $VIM/vimrc_example.vim
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
892
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
893 3. Salve o arquivo com:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
894 :w
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
895
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
896 Da próxima vez que o Vim for iniciado, ele irá usar realce de sintaxe. Você
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
897 pode adicionar suas configurações preferidas para esse arquivo "vimrc". Para
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
898 maiores informações, digite: :help vimrc-intro
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
899
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
900 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
901 Lição 7.3: COMPLETAÇÃO
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
902
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
903 ** Completação da linha de comando com CTRL-D e <TAB> **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
904
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
905 1. Certifique-se de que o Vim não está no modo compatível: :set nocp
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
906
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
907 2. Olhe quais arquivos existem no diretório: :!ls ou :!dir
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
908
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
909 3. Digite o início de um comando: :e
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
910
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
911 4. Pressione CTRL-D e o Vim irá mostrar a lista dos comandos iniciados
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
912 com "e".
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
913
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
914 5. Pressione <TAB> e o Vim irá completar o nome do comando para ":edit".
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
915
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
916 6. Agora, adicione um espaço e o início do nome de um arquivo existente:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
917 :edit ARQ
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
918
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
919 7. Pressione <TAB>. O Vim irá completar o nome (se ele for único).
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
920
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
921 NOTA: A completação funciona com muitos comandos. Basta pressionar CTRL-D e
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
922 <TAB>. Isso é especialmente útil para :help .
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
923 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
924 SUMÁRIO DA LIÇÃO 7
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
925
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
926
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
927 1. Digite :help ou pressione <F1> ou <Help> para abrir a janela de ajuda.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
928
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
929 2. Digite :help cmd para achar a ajuda sobre cmd .
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
930
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
931 3. Digite CTRL-W CTRL-W para pular de uma janela para outra.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
932
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
933 4. Digite :q para fechar a janela de ajuda.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
934
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
935 5. Crie um script de inicialização vimrc para ativar automaticamente as suas
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
936 configurações preferidas.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
937
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
938 6. Quando pressionando um comando : , pressione CTRL-D para ver as
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
939 possibilidade de completação.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
940
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
941
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
942
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
943
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
944
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
945 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
946
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
947 Isto conclui o Vim tutor. Ele pretendeu dar uma breve apresentação do editor
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
948 Vim, somente o bastante para que você possa usar o editor com facilidade.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
949 Ele está longe de ser completo, uma vez que o Vim possui muitos, muitos mais
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
950 comandos. O próximo passo é ler o manual: ":help user-manual".
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
951
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
952 Livro recomendado em Português sobre o Vim:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
953 O editor de texto Vim - de Sérgio Luiz Araújo da Silva et al.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
954 http://code.google.com/p/vimbook/
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
955
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
956 Para futura leitura e estudo, este livro é recomendado:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
957 Vim - Vi Improved - de Steve Oualline
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
958 Editora: New Riders
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
959 Este é o primeiro livro completamente dedicado ao Vim. Especialmente útil
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
960 para iniciantes, com muitos exemplos e ilustrações.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
961 Veja http://iccf-holland.org/click5.html
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
962
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
963 Esse livro é mais antigo e mais sobre o Vi do que sobre o Vim, mas também é
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
964 recomendado:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
965 Learning the Vi Editor - de Linda Lamb
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
966 Editora: O'Reilly & Associates Inc.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
967 Este é um bom livro para aprender quase tudo o que você quer fazer com o Vi.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
968 A sexta edição também inclui informações sobre o Vim.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
969
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
970 Este tutorial foi escrito por Michael C. Pierce e Robert K. Ware,
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
971 Colorado School of Mines, usando idéias fornecidas por Charles Smith,
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
972 Colorado State University. E-mail: bware@mines.colorado.edu.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
973
6153
1e8ebf870720 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 5697
diff changeset
974 Modificado para o Vim por Bram Moolenaar.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
975
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
976 Versão 1.4 traduzida para o português por Marcelo Drudi Miranda, Escola
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
977 Politécnica da Universidade de São Paulo.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
978
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
979 Revisão e atualização da tradução para a versão 1.7 por Jakson Aquino,
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
980 Universidade Federal do Ceará: E-mail: jalvesaq@gmail.com
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
981
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
982 Last Change: 2010 Jul 27
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
983
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
984 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~