annotate runtime/tutor/tutor.pt.utf-8 @ 12541:fcb11cfca8b3 v8.0.1149

patch 8.0.1149: libvterm colors differ from xterm commit https://github.com/vim/vim/commit/a8fc0d3817f69b3599a1b56d74a2ddbd3139f40c Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 26 13:59:47 2017 +0200 patch 8.0.1149: libvterm colors differ from xterm Problem: libvterm colors differ from xterm. Solution: Use the xterm colors for libvterm.
author Christian Brabandt <cb@256bit.org>
date Tue, 26 Sep 2017 14:00:06 +0200
parents 49c12c93abf3
children 3b26420fc639
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 ===============================================================================
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
2 = B e m - v i n d o ao t u t o r i a l do V I M - Versão 1.8 pt_BR =
2539
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
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
6 impossível ensiná-los num tutorial como este, que é concebido para
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
7 apresentar os comandos suficientes para permiti-lo usar facilmente o
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
8 Vim como um editor de textos genérico.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
10 O tempo necessário para completar o tutorial é de cerca de 25-30 minutos,
2539
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:
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
14 Os comandos nas lições modificam este texto. Faça uma cópia deste
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
15 arquivo para praticar os comandos (se usou o "vimtutor", esta já
2539
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
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
18 É importante lembrar que este tutorial é concebido para ensinar pela
2539
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
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
25 Lição 1.1 apareça inteiramente na tela.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
27 Lição 1.1: MOVER O CURSOR
2539
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 ^
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
32 k Dica: A tecla h está à esquerda e move à esquerda.
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
33 < h l > A tecla l está à direita e move à direita.
2539
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
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
41 3. Usando a tecla j, vá para a Lição 1.2.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
42
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
43 NOTA: Se está inseguro sobre o que digitou, pressione <ESC> para
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
44 colocá-lo no modo Normal. Então redigite o comando que queria.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
45
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
46 NOTA: As teclas de cursor funcionam também. Mas usando hjkl, tão logo
2539
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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
50 Lição 1.2: SAIR DO VIM
2539
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
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
53 !! NOTA: Antes de executar quaisquer dos passos abaixo, leia a lição inteira !!
2539
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
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
57 2. Digite: :q! <ENTER>.
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
58 Assim, sai do editor SEM salvar qualquer mudança feita.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
59
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
60 3. Repita o procedimento que o trouxe a este tutorial. O procedimento pode
5697
c2098c3095e7 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2539
diff changeset
61 ter sido a digitação de: vimtutor <ENTER>.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
62
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
63 4. Se memorizou estes passos e está confiante, execute os passos de
5697
c2098c3095e7 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2539
diff changeset
64 1 a 3 para sair e reentrar no editor.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
65
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
66 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
67 ensinado como salvar as mudanças feitas em um arquivo.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
68
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
69 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
70
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
71 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
72 Lição 1.3: EDITAR TEXTOS - REMOÇÃO
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
73
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
74 ** Pressione x para deletar o caractere sob o cursor. **
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
75
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 1. Mova o cursor para a linha abaixo marcada com --->.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
78
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
79 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
80 caractere a ser deletado.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
81
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
82 3. Pressione a tecla x para remover o caractere incorreto.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
83
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
84 4. Repita os passos 2 até 4 até que a frase esteja correta.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
85
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
86 ---> A vvaca pullouu por ccimaa dda luuua.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
87
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
88 5. Agora que a frase está correta, prossiga para a Lição 1.4.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
89
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
90 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
91
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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
95 Lição 1.4: EDITAR TEXTOS - INSERÇÃO
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
96
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
97 ** Pressione i para inserir texto. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
98
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 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
101
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
102 2. Para deixar a primeira linha igual à segunda, mova o cursor para
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
103 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
104
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
105 3. Pressione i e digite as adições necessárias.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
106
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
107 4. Assim que cada erro for corrigido pressione <ESC> para retornar ao modo
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
108 Normal. Repita os passos 2 até 4 para corrigir a frase.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
109
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
110 ---> Tem text fatado nesta .
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
111 ---> Tem algum texto faltando nesta linha.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
112
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
113 5. Quando se sentir à vontade com a inserção de texto, mova o cursor para
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
114 a Lição 1.5.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
115
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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
118 Lição 1.5: EDITAR TEXTO - ADICIONAR
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
119
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
120 ** Pressione A para adicionar texto. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
121
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
122 1. Mova o cursor para a primeira linha abaixo marcada com --->.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
123 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
124
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
125 2. Pressione A e digite as adições necessárias.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
126
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
127 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
128
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
129 4. Mova o cursor para a segunda linha marcada ---> e repita os passos 2 e 3
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
130 para corrigir a frase.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
131
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
132 ---> Há algum texto faltando nes
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
133 Há algum texto faltando nesta linha.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
134 Há algum texto faltan
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
135 ---> Há algum texto faltando aqui.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
136
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
137 5. Quando se sentir confortável adicionando texto, vá para a Lição 1.6.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
138
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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
141 Lição 1.6: EDITAR UM ARQUIVO
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
142
2539
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
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
145 !! NOTA: Leia toda a lição antes de executar as instruções!!
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
146
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
147 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
148 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
149
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
150 2. No prompt do shell, digite esse comando: vim tutor <ENTER>
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
151 'vim' é o comando para iniciar o editor Vim e 'tutor' é o nome do
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
152 arquivo que você quer editar. Use um arquivo que possa ser modificado.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
153
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
154 3. Insira e apague texto tal como aprendeu nas lições anteriores.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
155
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
156 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
157
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
158 5. Se tiver saído do vimtutor no passo 1, reinicie o vimtutor e vá para
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
159 o resumo seguinte.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
160
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
161 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
162
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
163 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
164 RESUMO DA LIÇÃO 1
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
165
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
166 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
167 h (esquerda) j (para baixo) k (para cima) l (direita)
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
168
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
169 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
170
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
171 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
172 OU digite: <ESC> :wq <ENTER> para salvar as alterações.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
173
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
174 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
175
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
176 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
177 digite:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
178 i digite o texto <ESC> inserir depois do cursor
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
179 A digite o texto <ESC> adicionar no final da linha
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
180
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
181 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
182 ainda incompleto.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
183
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
184 Agora continue com a Lição 2.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
185
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
186 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
187 Lição 2.1: COMANDOS DE REMOÇÃO
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
188
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
189 ** Digite dw para apagar uma palavra. **
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
190
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 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
193
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
194 2. Mova o cursor até a linha abaixo marcada com --->.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
195
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
196 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
197
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
198 4. Digite dw para fazer a palavra desaparecer.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
199
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
200 NOTA: A letra d vai aparecer na última linha da tela enquanto você a
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
201 digita. O Vim o está esperando digitar um w . Se digitou
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
202 alguma coisa errada, pressione <ESC> e comece de novo.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
203
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
204 ---> Tem a algumas oi palavras diversão que não pertencem papel a esta frase.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
205
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
206 5. Repita os passos 3 ao 4 até que a frase esteja correta e vá para a
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
207 Lição 2.2.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
208
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
209 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
210 Lição 2.2: MAIS COMANDOS DE REMOÇÃO
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
211
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
212 ** Digite d$ para deletar até o fim da linha. **
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
213
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 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
217
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
218 2. Mova o cursor até a linha abaixo marcada com --->.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
219
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
220 3. Mova o cursor até o fim da linha correta (DEPOIS do primeiro . ).
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
221
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
222 4. Digite d$ para apagar até o fim da linha.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
223
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
224 ---> Alguém digitou o fim desta linha duas vezes. desta linha duas vezes.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
225
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
226 5. Vá para a lição 2.3 para entender o funcionamento deste comando.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
227
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 Lição 2.3: SOBRE OPERADORES E MOVIMENTOS
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
234
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
235 Muitos comandos que mudam texto são feitos de um operador e de um movimento.
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
236 O formato para um comando apagar com o operador de remoção d tem a
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
237 seguinte forma:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
238
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
239 d movimento
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
240
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
241 Onde:
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
242 d - é o operador apagar.
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
243 movimento - é o movimento sobre o qual o operador age (listado abaixo).
2539
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:
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
246 w - até o início da próxima palavra, excluindo seu primeiro caractere.
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
247 e - até o fim da palavra atual, incluindo seu último caractere.
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
248 $ - até o fim da linha, incluindo seu último caractere.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
249
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
250 Portanto, digitar de apaga do cursor ao fim da palavra.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
251
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
252 NOTA: Pressionar apenas a tecla de movimento em modo Normal, sem o
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
253 operador, faz o cursor se mover como especificado na lista de teclas de
2539
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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
257 Lição 2.4: USAR UM CONTADOR PARA UM MOVIMENTO
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
258
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
259 ** Digitar um número antes de um movimento repete-o o tanto de vezes. **
2539
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
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
272 ---> Esta é uma linha com algumas palavras para permiti-lo fazer movimentos.
2539
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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
280 Lição 2.5: USAR UM CONTADOR PARA APAGAR MAIS
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
281
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
282 ** Digitar um número com um operador repete-o esse número de vezes. **
2539
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
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
285 Você deve inserir um contador entre o operador de remoção e o de movimento
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
286 mencionados acima para apagar mais:
2539
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
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
289 1. Movimente o cursor para a primeira palavra em LETRAS MAIÚSCULAS na
2539
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
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
292 2. Digite d2w para deletar as duas palavras em LETRAS MAIÚSCULAS.
2539
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
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
295 palavras em LETRAS MAIÚSCULAS com um comando.
2539
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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
303 Lição 2.6: TRABALHAR COM LINHAS
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
304
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
305 ** Digite dd para apagar uma linha inteira. **
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
306
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
307 Em virtude da frequência em deletar uma linha inteira, os desenvolvedores
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
308 do Vi decidiram que seria mais simples digitar dois d para apagar uma linha.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
309
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
310 1. Mova o cursor até a segunda linha da frase abaixo.
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
311 2. Digite dd para apagar a linha.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
312 3. Agora mova até a quarta linha.
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
313 4. Digite 2dd para apagar duas linhas.
2539
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,
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
321 ---> 7) Assim como você.
2539
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
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
328 ** Pressione u para desfazer os últimos comandos, U recupera a linha inteira.**
2539
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.
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
333 2. Digite x para deletar o primeiro caractere errado.
2539
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
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
339 para refazer os comandos (desfazer os undos).
2539
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
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
343 8. Esses comandos são muito úteis. Agora vá para o resumo da Lição 2.
2539
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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
349 RESUMO DA LIÇÃO 2
2539
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
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
352 1. Para apagar do cursor até a próxima palavra, digite: dw
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
353 2. Para apagar do cursor até o fim de uma linha, digite: d$
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
354 3. Para apagar uma linha inteira, digite: dd
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
355 4. Para repetir um movimento, adicione antes um número: 2w
2539
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:
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
359 operador - é o que será feito, como d para apagar
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
360 [número] - quantas vezes o comando será repetido
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
361 movimento - movimento sobre o texto que receberá a operação, como
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
362 w (palavra), $ (até o fim da linha), etc.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
363
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
364 6. Para ir ao início da linha, use um zero: 0
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
365
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
366 7. Para desfazer uma ação anterior, digite: u (minúsculo)
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
367 Para desfazer todas as alterações em uma linha, digite: U (maiúsculo)
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
368 Para desfazer o que foi desfeito, digite: CTRL-R
2539
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
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
373 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
374 Lição 3.1: O COMANDO COLAR
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
375
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
376 ** Digite p para colar após o cursor o que acabou de apagar. **
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
377
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
378
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
379 1. Mova o cursor até a primeira linha marcada com --->.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
380
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
381 2. Digite dd para apagar a linha e guardá-la num registro do Vim.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
382
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
383 3. Mova o cursor até a linha c) ACIMA de onde a linha apagada deveria estar.
2539
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 4. No modo Normal, digite p para inserir a linha.
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 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
388
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
389 ---> d) Você pode aprender também?
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
390 ---> b) Violetas são azuis,
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
391 ---> c) Inteligência se aprende,
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
392 ---> a) Rosas são vermelhas,
2539
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 Nota do tradutor: Há rima no original.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
395
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
396 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
397 Lição 3.2: O COMANDO SUBSTITUIR
2539
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 ** 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
400
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 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
403
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
404 2. Mova o cursor até que esteja sobre o primeiro erro.
2539
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 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
407
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
408 4. Repita os passos 2 e 3 até que a primeira linha esteja igual à segunda.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
409
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
410 ---> Quendo este limha foi dugitada, alguem pressioniu algumas teclas erradzs!
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
411 ---> 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
412
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
413 5. Agora vá para a Lição 3.3.
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 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
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
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 Lição 3.3: O OPERADOR CHANGE (MUDAR)
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
421
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
422 ** Para alterar até o fim de uma palavra, digite ce . **
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
423
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 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
426
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
427 2. Posicione o cursor sobre o u em lunba.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
428
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
429 3. Digite ce e a palavra correta (nesse caso, digite 'inha'.)
2539
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 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
432
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
433 5. Repita os passos 3 e 4 até que a primeira frase esteja igual à segunda.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
434
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
435 ---> 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
436 ---> 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
437
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
438 Note que ce não somente substitui a palavra, mas também o coloca no modo
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
439 de Inserção.
2539
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
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 Lição 3.4: MAIS MUDANÇAS USANDO c
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
444
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
445 ** O operador change é usado com os mesmos movimentos que o delete. **
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
446
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
447
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
448 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
449
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
450 c [número] movimento
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
451
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
452 2. Os movimentos também são os mesmos: w (palavra) e $ (fim da linha).
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
453
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
454 3. Mova até a primeira linha abaixo marcada com --->.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
455
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
456 4. Mova o cursor até o primeiro erro.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
457
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
458 5. Digite c$ para tornar o resto da linha igual à segunda e pressione
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
459 <ESC>.
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 ---> 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
462 ---> 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
463
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
464 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
465
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
466 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
467 RESUMO DA LIÇÃO 3
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
468
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
469
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
470 1. Para reinserir um texto que já foi apagado, digite p . Isso coloca o texto
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
471 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
472 abaixo do cursor).
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 2. Para substituir o caractere sob o cursor, digite r e então o caractere
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
475 que substituirá o original.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
476
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
477 3. O comando change possibilita mudar do cursor até onde o movimento for.
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
478 Ex: Digite ce para mudar do cursor até o fim de uma palavra, c$ para
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
479 mudar até o fim da linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
480
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
481 4. O formato para uma operação change é:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
482
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
483 c [número] movimento
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 Agora vá para a próxima lição.
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
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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
490 Lição 4.1: LOCALIZAÇÃO DO CURSOR E ESTADO DO ARQUIVO
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
491
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
492 ** Digite CTRL-G para mostrar sua localização no arquivo e seu estado.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
493 Digite G para mover para uma linha do arquivo. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
494
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
495 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
496
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
497 1. Segure pressionada a tecla Ctrl e pressione g . Chamamos isso de
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
498 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
499 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
500
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
501 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
502 tela. Isso acontece quando a opção 'ruler' está ativa
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
503 (veja :help 'ruler' ).
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
504
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
505 2. Pressione G para se mover até o fim do arquivo.
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
506 Digite gg para se mover até o início do arquivo.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
507
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
508 3. Digite o número da linha em que estava e então G . Assim o cursor retornará
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
509 à linha em que estava quando pressionou CTRL-G.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
510
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
511 4. Se estiver seguro para fazê-los, execute os passos 1 a 3.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
512 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
513 Lição 4.2: O COMANDO BUSCAR
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
514
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
515 ** Digite / seguido por uma frase para procurar por ela. **
2539
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 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
518 no rodapé da tela, como ocorre com o comando : .
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
519
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
520 2. Agora digite 'errroo' <ENTER>. Esta é a palavra que quer procurar.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
521
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
522 3. Para buscar a mesma palavra de novo, simplesmente tecle n .
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
523 Para buscar a mesma palavra na direção oposta, tecle N .
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
524
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
525 4. Se quer procurar por uma frase de trás para frente, use ? em vez de / .
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
526
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
527 5. Para voltar aonde estava, pressione CTRL-O (mantenha a tecla Ctrl
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
528 pressionada e pressione a tecla o). Repita para voltar a outras posições.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
529 CTRL-I segue para posições mais recentes.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
530
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
531 ---> "errroo" não é uma maneira de escrever erro; errroo é um erro.
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
532
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
533 NOTA: Quando a busca atinge o fim do arquivo ela continuará do começo, a
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
534 menos que a opção 'wrapscan' esteja desativada.
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
535
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
536 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
537 Lição 4.3: BUSCA DE PARÊNTESES CORRESPONDENTES
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
538
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
539 ** Digite % para encontrar um ),], ou } correspondente. **
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
540
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 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
543
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
544 2. Agora digite o caractere % .
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
545
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
546 3. O cursor deve estar no parêntese ou colchete que casa com o primeiro.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
547
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
548 4. Digite % para mover o cursor de volta ao primeiro colchete ou parêntese
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
549 (por casamento).
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
550
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
551 ---> Isto ( é uma linha de teste contendo (, [ ] e { }. ))
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
552
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
553 Nota: Isso é muito útil para corrigir um programa com parêntese não-casado!
2539
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
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
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 Lição 4.4: O COMANDO SUBSTITUIR
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
561
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
562 ** Digite :s/velho/novo/g para substituir 'velho' por 'novo'. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
563
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
564
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
565 1. Mova o cursor para a linha abaixo marcada com --->.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
566
5697
c2098c3095e7 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2539
diff changeset
567 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
568 primeira ocorrência na linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
569
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
570 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
571 Isto muda todas as ocorrências na linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
572
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
573 ---> aa melhor época para ver aas flores é aa primavera.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
574
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
575 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
576 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
577 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
578 inteiro.
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
579 Digite :%s/velho/novo/gc para mudar todas as ocorrências no arquivo
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
580 inteiro, com a opção de confirmar cada
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
581 substituição.
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
582
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
583 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
584 RESUMO DA LIÇÃO 4
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
585
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
586
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
587 1. CTRL-G mostra em que ponto do arquivo está e o estado dele.
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
588 G move para o fim do arquivo.
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
589 número G move para a linha com esse número.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
590 gg move para a primeira linha.
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 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
593 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
594 PARA FRENTE.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
595 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
596 ou N para procurar na direção oposta.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
597 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
598
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
599 3. Digitando % enquanto o cursor está sobre um (,),[,],{, ou } localiza
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
600 o par que casa com ele.
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 4. Para substituir:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
603 o primeiro 'velho' de uma linha por 'novo' digite :s/velho/novo
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
604 todos os 'velho' em uma linha por 'novo' digite :s/velho/novo/g
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
605 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
606 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
607 Para confirmar cada substituição adicione 'c' :%s/velho/novo/gc
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
608
2539
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 Lição 5.1: COMO EXECUTAR UM COMANDO EXTERNO
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
611
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
612
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
613 ** Digite :! seguido por um comando externo para executá-lo. **
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
614
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
615 1. Digite o familiar comando : para levar o cursor ao rodapé da tela. Isso
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
616 o permite entrar um comando.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
617
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
618 2. Agora digite o caractere ! (ponto de exclamação). Isso o permite
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
619 executar qualquer comando do shell.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
620
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
621 3. Como um exemplo digite ls seguindo o ! e então tecle <ENTER>. Isto
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
622 mostrará uma listagem do seu diretório, como se você estivesse no
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
623 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
624
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
625 NOTA: É possível executar qualquer comando externo dessa maneira, inclusive
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
626 com argumentos.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
627
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
628 NOTA: Todos os comandos : devem ser finalizados teclando-se <ENTER>
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
629 Daqui em diante não mencionaremos isso todas as vezes.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
630
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
631
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 Lição 5.2: MAIS SOBRE SALVAR ARQUIVOS
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 ** Para salvar as alterações no texto, digite :w NOMEDOARQUIVO. **
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
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
638 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
639 Você já deve saber que precisa teclar <ENTER> depois disso.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
640
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
641 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
642
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
643 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
644
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
645 4. Isto salva o arquivo inteiro (o Vim Tutor) com o nome TESTE.
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
646 Para verificar isso, digite :!ls de novo para ver seu diretório.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
647
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
648 NOTA: Se sair do Vim e entrar de novo com o nome do arquivo TESTE,
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
649 o arquivo deve ser uma cópia exata do tutorial quando você o salvou.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
650
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
651 5. Agora remova o arquivo digitando (MS-DOS): :!del TESTE
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
652 ou (Unix): :!rm TESTE
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
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
655 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
656 Lição 5.3: SELECIONAR O TEXTO A SER SALVO
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
657
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
658 ** Para salvar parte de um arquivo, digite v movimento :w NOMEDOARQUIVO **
2539
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 1. Mova o cursor para esta linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
661
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
662 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
663 é realçado.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
664
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
665 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
666 da tela.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
667
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
668 4. Digite w TESTE , sendo TESTE um nome de arquivo que não existe ainda.
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
669 Certifique-se de ver :'<,'>w TESTE antes de pressionar <ENTER>.
2539
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 5. O Vim salvará as linhas selecionadas no arquivo TESTE. Use :!dir ou
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
672 !:ls para vê-lo. Não o apague ainda! Nós o usaremos na próxima lição.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
673
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
674 NOTA: Pressionar v inicia o modo Visual de seleção. Você pode mover o
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
675 cursor pela tela para tornar a seleção maior ou menor. Pode, então, usar um
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
676 operador para executar alguma ação. Por exemplo, d apaga o texto.
2539
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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
679 Lição 5.4: RECUPERAR E UNIR ARQUIVOS
2539
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 ** 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
682
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
683
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
684 1. Posicione o cursor logo acima desta linha.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
685
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
686 NOTA: Depois de executar o Passo 2 você verá a Lição 5.3. Então DESÇA o
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
687 cursor para ver esta lição novamente.
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 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
690 nome do arquivo.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
691 O arquivo recuperado é colocado abaixo da linha atual do cursor.
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 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
694 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
695 arquivo.
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 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
698 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
699
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
700
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
701 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
702 RESUMO DA LIÇÃO 5
2539
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
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
705 1. :!comando executa um comando externo.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
706
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
707 Alguns exemplos úteis são:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
708 (MS-DOS) (UNIX)
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
709 :!dir :!ls - lista conteúdo do diretório.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
710 :!del ARQUIVO :!rm ARQUIVO - remove ARQUIVO.
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 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
713
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
714 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
715 ARQUIVO.
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 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
718 na posição do cursor.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
719
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
720 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
721 atual do cursor.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
722
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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
725 Lição 6.1: O COMANDO ABRIR
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
726
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
727 ** Digite o para abrir uma linha em baixo do cursor e ir para o modo de
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
728 Inserção. **
2539
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 1. Mova o cursor para a linha abaixo marcada com --->.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
731
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
732 2. Digite o (minúsculo) para abrir uma linha ABAIXO do cursor e ir para o
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
733 modo de Inserção.
2539
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 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
736 Inserção.
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 ---> 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
739
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
740 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
741 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
742
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
743 ---> 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
744
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
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
747 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
748 Lição 6.2: O COMANDO ADICIONAR
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
749
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
750 ** Digite a para inserir texto DEPOIS do cursor. **
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
751
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
752 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
753
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
754 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
755
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
756 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
757 cursor.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
758
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
759 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
760 modo de Inserção.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
761
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
762 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
763 e 4.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
764
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
765 ---> Esta lin o permite pratic a adiç de texto a uma linha.
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
766 ---> Esta linha o permite praticar a adição de texto a uma linha.
2539
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 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
769 caracteres são inseridos.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
770 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
771 Lição 6.3: UMA OUTRA VERSÃO DO SUBSTITUIR
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
772
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
773 ** 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
774
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
775
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
776 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
777 cursor para o início do primeiro xxx .
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 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
780 linha, para substituir o xxx .
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 3. Pressione <ESC> para sair do modo de Substituição. Note que o resto da
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
783 linha permanece inalterado.
2539
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 4. Repita os passos para substituir os xxx restantes.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
786
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
787 ---> Adicionando 123 a xxx resulta em xxx.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
788 ---> Adicionando 123 a 456 resulta em 579.
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 NOTA: O modo de Substituição é como o modo de Inserção, mas cada caractere
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
791 digitado apaga um caractere existente.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
792
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
793 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
794 Lição 6.4: COPIAR E COLAR TEXTO
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
795
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
796 ** 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
797
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
798 1. Vá à linha marcada com ---> abaixo e posicione o cursor após "a)".
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
799
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
800 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
801 "primeiro".
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
802
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
803 3. Digite y para copiar o texto selecionado.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
804
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
805 4. Mova o cursor para o fim da próxima linha: j$
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
806
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
807 5. Digite p para colar o texto. Então, digite: o segundo <ESC> .
2539
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 6. Use o modo Visual para selecionar " item.", copie-o com y , mova para
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
810 o fim da próxima linha com j$ e cole o texto com p .
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
811
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
812 ---> a) esse é o primeiro item.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
813 b)
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
814
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
815 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
816 palavra.
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
817
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
818 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
819 Lição 6.5: CONFIGURAR PREFERÊNCIAS
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
820
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
821 ** Configure uma preferência de modo que uma busca ou substituição
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
822 ignore se as letras são maiúsculas ou minúsculas. **
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
823
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
824 1. Procure por 'ignore' entrando: /ignore <ENTER>
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
825 Repita várias vezes teclando n .
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
826
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
827 2. Configure a opção 'ic' (Ignore case) digitando: :set ic
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
828
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
829 3. Agora procure por 'ignore' de novo teclando: n
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
830 Repita várias vezes.
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
831
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
832 4. Configure as opções 'hlsearch' e 'incsearch': :set hls is
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
833
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
834 5. Agora entre com o comando buscar de novo, e veja o que acontece:
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
835 /ignore
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
836
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
837 6. Para desabilitar a diferenciação entre maiúsculas e minúsculas:
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
838 :set noic
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
839
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
840 NOTA: Para remover o realce dos termos localizados entre: :nohlsearch
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
841 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
842 uma pesquisa, use \c no comando: /ignore\c <ENTER>
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
843
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
844 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
845 RESUMO DA LIÇÃO 6
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
846
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
847 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
848 Inserção.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
849 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
850
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
851 2. Digite a para adicionar texto DEPOIS do caractere onde está o cursor.
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
852 Digite A para adicionar texto ao fim da linha.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
853
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
854 3. O comando e move o cursor para o fim de uma palavra.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
855
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
856 4. O operador y copia texto, p cola o texto copiado.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
857
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
858 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
859 pressionado.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
860
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
861 6. Digitando ":set xxx" modifica-se a opção "xxx". Algumas opções são:
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
862 'ic' 'ignorecase' ignora diferença entre maiúsculas/minúsculas
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
863 'is' 'incsearch' realiza a busca enquanto se digita
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
864 'hls' 'hlsearch' realça todos os trechos localizados
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
865 Você tanto pode usar o nome curto quanto o nome longo da opção.
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
866
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
867 7. Adicione o prefixo "no" para desabilitar uma opção: :set noic
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
868
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
869
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
870 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
871 LIÇÃO 7.1: OBTENDO AJUDA
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
872
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
873 ** Use o sistema de ajuda do próprio Vim **
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
874
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
875 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
876 desses três:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
877 - pressione a tecla <HELP> (se você tiver uma)
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
878 - pressione a tecla <F1> (se você tiver uma)
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
879 - digite :help <ENTER>
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
880
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
881 Leia o texto da ajuda para aprender como o sistema de ajuda funciona.
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
882 Digite CTRL-W CTRL-W para pular de uma janela a outra.
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
883 Digite :q <ENTER> para fechar a janela da ajuda.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
884
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
885 Você pode encontrar ajuda sobre qualquer assunto, fornecendo um argumento
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
886 para o comando ":help". Tente isto (não se esqueça de pressionar <ENTER>):
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
887
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
888 :help w
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
889 :help c_CTRL-D
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
890 :help insert-index
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
891 :help user-manual
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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
894 Lição 7.2: CRIAR UM SCRIPT DE INICIALIZAÇÃO
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
895
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
896 ** Habilite recursos do Vim **
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
897
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
898 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
899 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
900 arquivo "vimrc".
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
901
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
902 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
903 :e ~/.vimrc para Unix
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
904 :e $VIM/_vimrc para MS-Windows
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
905
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
906 2. Agora, leia o conteúdo do arquivo "vimrc" de exemplo:
11659
49c12c93abf3 Updated runtime files and translations.
Christian Brabandt <cb@256bit.org>
parents: 10895
diff changeset
907 :r $VIMRUNTIME/vimrc_example.vim
2539
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. Salve o arquivo com:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
910 :w
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
911
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
912 Da próxima vez que o Vim for iniciado, ele usará realce de sintaxe. Você
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
913 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
914 maiores informações, digite: :help vimrc-intro
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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
917 Lição 7.3: COMPLETAÇÃO
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 ** 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
920
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
921 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
922
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
923 2. Veja quais arquivos existem no diretório: :!ls ou :!dir
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
924
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
925 3. Digite o início de um comando: :e
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
926
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
927 4. Pressione CTRL-D e o Vim mostrará a lista dos comandos iniciados
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
928 com "e".
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
929
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
930 5. Pressione <TAB> e o Vim completará o nome do comando para ":edit".
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
931
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
932 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
933 :edit ARQ
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
934
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
935 7. Pressione <TAB>. O Vim completará o nome (se ele for único).
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
936
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
937 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
938 <TAB>. Isso é especialmente útil para :help .
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
939
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
940 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
941 RESUMO DA LIÇÃO 7
2539
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 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
945
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
946 2. Digite :help cmd para achar a ajuda sobre cmd .
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
947
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
948 3. Digite CTRL-W CTRL-W para pular de uma janela a outra.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
949
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
950 4. Digite :q para fechar a janela de ajuda.
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 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
953 configurações preferidas.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
954
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
955 6. Quando pressionar um comando : , pressione CTRL-D para ver as possibilidades
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
956 de completação. Pressione <TAB> para usá-la.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
957
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
958
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
959
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
960
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
961
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
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
964 Isto conclui o tutorial do Vim, uma breve apresentação do editor Vim,
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
965 somente o bastante para que você possa usar o editor com facilidade.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
966 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
967 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
968
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
969 Livro recomendado em Português sobre o Vim:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
970 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
971 http://code.google.com/p/vimbook/
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
972
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
973 Para futura leitura e estudo, este livro é recomendado:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
974 Vim - Vi Improved - de Steve Oualline
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
975 Editora: New Riders
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
976 Este é o primeiro livro completamente dedicado ao Vim. Especialmente útil
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
977 para iniciantes, com muitos exemplos e ilustrações.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
978 Veja http://iccf-holland.org/click5.html
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
979
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
980 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
981 recomendado:
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
982 Learning the Vi Editor - de Linda Lamb
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
983 Editora: O'Reilly & Associates Inc.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
984 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
985 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
986
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
987 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
988 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
989 Colorado State University. E-mail: bware@mines.colorado.edu.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
990
6153
1e8ebf870720 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 5697
diff changeset
991 Modificado para o Vim por Bram Moolenaar.
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
992
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
993 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
994 Politécnica da Universidade de São Paulo.
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
995
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
996 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
997 Universidade Federal do Ceará: E-mail: jalvesaq@gmail.com
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
998
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
999 Nova revisão e atualização para a versão 1.8 por Roní Gonçalves,
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
1000 Universidade Federal de Uberlândia.
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
1001
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6153
diff changeset
1002 Last Change: 2017 Feb 11
2539
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1003
4b51e4be14ab Updated translations. Added Portuguese tutor.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1004 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~