annotate runtime/tutor/tutor.pl @ 4878:4c6f21f1cc92

Added tag v7-3-1184 for changeset 9e36c6b1ebf4
author Bram Moolenaar <bram@vim.org>
date Thu, 13 Jun 2013 19:47:07 +0200
parents 7bc41231fbc7
children e69e7133c9cf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
1 ===============================================================================
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
2 = W i t a j w t u t o r i a l u V I M - a - Wersja 1.7. =
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
3 ===============================================================================
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
4
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
5 Vim to potężny edytor, który posiada wiele poleceń, zbyt dużo, by
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
6 wyjaśnić je wszystkie w tym tutorialu. Ten przewodnik ma nauczyć
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
7 Cię posługiwać się wystarczająco wieloma komendami, byś mógł łatwo
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
8 używać Vima jako edytora ogólnego przeznaczenia.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
9
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
10 Czas potrzebny na ukończenie tutoriala to 25 do 30 minut i zależy
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
11 od tego jak wiele czasu spędzisz na eksperymentowaniu.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
12
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
13 UWAGA:
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
14 Polecenia wykonywane w czasie lekcji zmodyfikują tekst. Zrób
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
15 wcześniej kopię tego pliku do ćwiczeń (jeśli zacząłeś komendą
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
16 "vimtutor", to już pracujesz na kopii).
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
17
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
18 Pamiętaj, że przewodnik ten został zaprojektowany do nauki poprzez
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
19 ćwiczenia. Oznacza to, że musisz wykonywać polecenia, by nauczyć się ich
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
20 prawidłowo. Jeśli będziesz jedynie czytał tekst, szybko zapomnisz wiele
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
21 poleceń!
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
22
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
23 Teraz upewnij się, że nie masz wciśniętego Caps Locka i wciskaj j
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
24 tak długo dopóki Lekcja 1.1. nie wypełni całkowicie ekranu.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
25
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
26 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
27 Lekcja 1.1.: PORUSZANIE SIĘ KURSOREM
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
28
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
29 ** By wykonać ruch kursorem, wciśnij h, j, k, l jak pokazano. **
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
30
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
31 ^
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
32 k Wskazówka: h jest po lewej
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
33 < h l > l jest po prawej
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
34 j j wygląda jak strzałka w dół
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
35 v
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
36 1. Poruszaj kursorem dopóki nie będziesz pewien, że pamiętasz polecenia.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
37
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
38 2. Trzymaj j tak długo aż będzie się powtarzał.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
39 Teraz wiesz jak dojść do następnej lekcji.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
40
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
41 3. Używając strzałki w dół przejdź do następnej lekcji.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
42
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
43 Uwaga: Jeśli nie jesteś pewien czegoś co wpisałeś, wciśnij <ESC>, by wrócić do
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
44 trybu Normal. Wtedy powtórz polecenie.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
45
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
46 Uwaga: Klawisze kursora także powinny działać, ale używając hjkl będziesz
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
47 w stanie poruszać się o wiele szybciej, jak się tylko przyzwyczaisz.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
48 Naprawdę!
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
49
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
50 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
51 Lekcja 1.2.: WYCHODZENIE Z VIM-a
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
52
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
53 !! UWAGA: Przed wykonaniem jakiegokolwiek polecenia przeczytaj całą lekcję !!
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
54
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
55 1. Wciśnij <ESC> (aby upewnić się, że jesteś w trybie Normal).
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
56 2. Wpisz: :q!<ENTER>.
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
57 To spowoduje wyjście z edytora PORZUCAJĄC wszelkie zmiany, jakie
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
58 zdążyłeś zrobić. Jeśli chcesz zapamiętać zmiany i wyjść,
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
59 wpisz: :wq<ENTER>
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
60
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
61 3. Kiedy widzisz znak zachęty powłoki wpisz komendę, żeby wrócić
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
62 do tutoriala. Czyli: vimtutor<ENTER>
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
63
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
64 4. Jeśli chcesz zapamiętać polecenia, wykonaj kroki 1. do 3., aby
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
65 wyjść i wrócić do edytora.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
66
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
67 UWAGA: :q!<ENTER> porzuca wszelkie zmiany jakie zrobiłeś. W następnych
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
68 lekcjach dowiesz się jak je zapamiętywać.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
69
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
70 5. Przenieś kursor do lekcji 1.3.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
71
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
72
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
73 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
74 Lekcja 1.3.: EDYCJA TEKSTU - KASOWANIE
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
75
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
76 ** Wciśnij x aby usunąć znak pod kursorem. **
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
77
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
78 1. Przenieś kursor do linii poniżej oznaczonej --->.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
79
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
80 2. By poprawić błędy, naprowadź kursor na znak do usunięcia.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
81
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
82 3. Wciśnij x aby usunąć niechciany znak.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
83
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
84 4. Powtarzaj kroki 2. do 4. dopóki zdanie nie jest poprawne.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
85
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
86 ---> Kkrowa prrzeskoczyła prrzez ksiiężycc.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
87
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
88 5. Teraz, kiedy zdanie jest poprawione, przejdź do Lekcji 1.4.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
89
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
90 UWAGA: Ucz się przez ćwiczenie, nie wkuwanie.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
91
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
92
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
93
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
94
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
95
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
96 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
97 Lekcja 1.4.: EDYCJA TEKSTU - INSERT (wprowadzanie)
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
98
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
99
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
100 ** Wciśnij i aby wstawić tekst. **
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
101
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
102 1. Przenieś kursor do pierwszej linii poniżej oznaczonej --->.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
103
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
104 2. Aby poprawić pierwszy wiersz, ustaw kursor na pierwszym znaku PO tym,
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
105 gdzie tekst ma być wstawiony.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
106
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
107 3. Wciśnij i a następnie wpisz konieczne poprawki.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
108
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
109 4. Po poprawieniu błędu wciśnij <ESC>, by wrócić do trybu Normal.
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
110 Powtarzaj kroki 2. do 4., aby poprawić całe zdanie.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
111
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
112 ---> W tej brkje trochę .
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
113 ---> W tej linii brakuje trochę tekstu.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
114
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
115 5. Kiedy czujesz się swobodnie wstawiając tekst, przejdź do
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
116 podsumowania poniżej.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
117
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
118
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
119 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
120 Lekcja 1.5.: EDYCJA TEKSTU - APPENDING (dodawanie)
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
121
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
122
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
123 ** Wciśnij A by dodać tekst. **
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
124
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
125 1. Przenieś kursor do pierwszej linii poniżej oznaczonej --->.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
126 Nie ma znaczenia, który to będzie znak.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
127
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
128 2. Wciśnij A i wpisz odpowiednie dodatki.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
129
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
130 3. Kiedy tekst został dodany, wciśnij <ESC> i wróć do trybu Normalnego.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
131
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
132 4. Przenieś kursor do drugiej linii oznaczonej ---> i powtórz kroki 2. i 3.,
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
133 aby poprawić zdanie.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
134
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
135 ---> Brakuje tu tro
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
136 Brakuje tu trochę tekstu.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
137 ---> Tu też trochę bra
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
138 Tu też trochę brakuje.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
139
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
140 5. Kiedy już utrwaliłeś ćwiczenie, przejdź do lekcji 1.6.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
141
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
142 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
143 Lekcja 1.6.: EDYCJA PLIKU
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
144
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
145 ** Użyj :wq aby zapisać plik i wyjść. **
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
146
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
147 !! UWAGA: zanim wykonasz jakiekolwiek polecenia przeczytaj całą lekcję !!
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
148
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
149 1. Zakończ tutorial tak jak w lekcji 1.2.: :q!
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
150 lub, jeśli masz dostęp do innego terminala, wykonaj kolejne kroki tam.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
151
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
152 2. W powłoce wydaj polecenie: vim tutor<ENTER>
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
153 "vim" jest poleceniem uruchamiającym edytor Vim. 'tutor' to nazwa pliku,
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
154 jaki chcesz edytować. Użyj pliku, który może zostać zmieniony.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
155
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
156 3. Dodaj i usuń tekst tak, jak się nauczyłeś w poprzednich lekcjach.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
157
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
158 4. Zapisz plik ze zmianami i opuść Vima: :wq<ENTER>
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
159
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
160 5. Jeśli zakończyłeś vimtutor w kroku 1., uruchom go ponownie i przejdź
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1638
diff changeset
161 do podsumowania poniżej.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
162
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
163 6. Po przeczytaniu wszystkich kroków i ich zrozumieniu: wykonaj je.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
164
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
165 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
166 LEKCJA 1. PODSUMOWANIE
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
167
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
168 1. Poruszasz kursorem używając "strzałek" i klawiszy hjkl .
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
169 h (w lewo) j (w dół) k (do góry) l (w prawo)
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
170
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
171 2. By wejść do Vima, (z powłoki) wpisz:
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
172 vim NAZWA_PLIKU<ENTER>
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
173
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
174 3. By wyjść z Vima, wpisz:
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
175 <ESC> :q!<ENTER> by usunąć wszystkie zmiany.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
176 LUB: <ESC> :wq<ENTER> by zmiany zachować.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
177
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
178 4. By usunąć znak pod kursorem, wciśnij: x
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
179
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
180 5. By wstawić tekst przed kursorem lub dodać:
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
181 i wpisz tekst <ESC> wstawi przed kursorem
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
182 A wpisz tekst <ESC> doda na końcu linii
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
183
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
184 UWAGA: Wciśnięcie <ESC> przeniesie Cię z powrotem do trybu Normal
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
185 lub odwoła niechciane lub częściowo wprowadzone polecenia.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
186
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
187 Teraz możemy kontynuować i przejść do Lekcji 2.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
188 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
189 Lekcja 2.1.: POLECENIE DELETE (usuwanie)
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
190
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
191
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
192 ** Wpisz dw by usunąć wyraz. **
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
193
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
194 1. Wciśnij <ESC>, by upewnić się, że jesteś w trybie Normal.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
195
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
196 2. Przenieś kursor do linii poniżej oznaczonej --->.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
197
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
198 3. Przesuń kursor na początek wyrazu, który chcesz usunąć.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
199
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
200 4. Wpisz dw by usunąć wyraz.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
201
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
202 UWAGA: Litera d pojawi się na dole ekranu. Vim czeka na wpisanie w .
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
203 Jeśli zobaczysz inny znak, oznacza to, że wpisałeś coś źle; wciśnij
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
204 <ESC> i zacznij od początku.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
205
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
206 ---> Jest tu parę papier wyrazów, które kamień nie należą do nożyce tego zdania.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
207
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
208 5. Powtarzaj kroki 3. i 4. dopóki zdanie nie będzie poprawne, potem
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
209 przejdź do Lekcji 2.2.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
210
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
211 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
212 Lekcja 2.2.: WIĘCEJ POLECEŃ USUWAJĄCYCH
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
213
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
214
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
215 ** Wpisz d$ aby usunąć tekst do końca linii. **
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
216
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
217 1. Wciśnij <ESC> aby się upewnić, że jesteś w trybie Normal.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
218
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
219 2. Przenieś kursor do linii poniżej oznaczonej --->.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
220
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
221 3. Przenieś kursor do końca poprawnego zdania (PO pierwszej . ).
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
222
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
223 4. Wpisz d$ aby usunąć resztę linii.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
224
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
225 ---> Ktoś wpisał koniec tego zdania dwukrotnie. zdania dwukrotnie.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
226
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
227
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
228 5. Przejdź do Lekcji 2.3., by zrozumieć co się stało.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
229
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
230
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
231
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
232
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
233
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
234 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
235 Lekcja 2.3.: O OPERATORACH I RUCHACH
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
236
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
237
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
238 Wiele poleceń zmieniających tekst jest złożonych z operatora i ruchu.
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
239 Format dla polecenia usuwającego z operatorem d jest następujący:
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
240
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
241 d ruch
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
242
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
243 gdzie:
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
244 d - operator usuwania.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
245 ruch - na czym polecenie będzie wykonywane (lista poniżej).
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
246
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
247 Krótka lista ruchów:
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
248 w - do początku następnego wyrazu WYŁĄCZAJĄC pierwszy znak.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
249 e - do końca bieżącego wyrazu, WŁĄCZAJĄC ostatni znak.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
250 $ - do końca linii, WŁĄCZAJĄC ostatni znak.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
251
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
252 W ten sposób wpisanie de usunie znaki od kursora do końca wyrazu.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
253
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
254 UWAGA: Wpisanie tylko ruchu w trybie Normal bez operatora przeniesie kursor
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
255 tak, jak to określono.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
256
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
257 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
258 Lekcja 2.4.: UŻYCIE MNOŻNIKA DLA RUCHU
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
259
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
260
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
261 ** Wpisanie liczby przed ruchem powtarza ruch odpowiednią ilość razy. **
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
262
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
263 1. Przenieś kursor na początek linii poniżej zaznaczonej --->.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
264
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
265 2. Wpisz 2w aby przenieść kursor o dwa wyrazy do przodu.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
266
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
267 3. Wpisz 3e aby przenieść kursor do końca trzeciego wyrazu w przód.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
268
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
269 4. Wpisz 0 (zero), aby przenieść kursor na początek linii.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
270
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
271 5. Powtórz kroki 2. i 3. z innymi liczbami.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
272
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
273
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
274 ---> To jest zwykły wiersz z wyrazami, po których możesz się poruszać.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
275
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
276 6. Przejdź do lekcji 2.5.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
277
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
278
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
279
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
280 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
281 Lekcja 2.5.: UŻYCIE MNOŻNIKA, BY WIĘCEJ USUNĄĆ
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
282
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
283
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
284 ** Wpisanie liczby z operatorem powtarza go odpowiednią ilość razy. **
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
285
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
286 W wyżej wspomnianej kombinacji operatora usuwania i ruchu podaj mnożnik
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
287 przed ruchem, by więcej usunąć:
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
288 d liczba ruch
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
289
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
290 1. Przenieś kursor do pierwszego wyrazu KAPITALIKAMI w linii zaznaczonej --->.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
291
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
292 2. Wpisz 2dw aby usunąć dwa wyrazy KAPITALIKAMI.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
293
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
294 3. Powtarzaj kroki 1. i 2. z innymi mnożnikami, aby usunąć kolejne wyrazy
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
295 KAPITALIKAMI jednym poleceniem
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
296
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
297 ---> ta ASD WE linia QWE ASDF ZXCV FG wyrazów została ERT FGH CF oczyszczona.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
298
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
299 UWAGA: Mnożnik pomiędzy operatorem d i ruchem działa podobnie do ruchu bez
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
300 operatora.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
301
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
302
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
303 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
304 Lekcja 2.6.: OPEROWANIE NA LINIACH
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
305
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
306
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
307 ** Wpisz dd aby usunąć całą linię. **
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
308
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
309 Z powodu częstości usuwania całych linii, projektanci Vi zdecydowali, że
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
310 będzie łatwiej wpisać dwa razy d aby usunąć linię.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
311
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
312 1. Przenieś kursor do drugiego zdania z wierszyka poniżej.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
313 2. Wpisz dd aby usunąć wiersz.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
314 3. Teraz przenieś się do czwartego wiersza.
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
315 4. Wpisz 2dd aby usunąć dwa wiersze.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
316
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
317 ---> 1) Róże są czerwone,
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
318 ---> 2) Błoto jest fajne,
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
319 ---> 3) Fiołki są niebieskie,
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
320 ---> 4) Mam samochód,
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
321 ---> 5) Zegar podaje czas,
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
322 ---> 6) Cukier jest słodki,
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
323 ---> 7) I ty też.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
324
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
325
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
326 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
327 Lekcja 2.7.: POLECENIE UNDO (cofnij)
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
328
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
329
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
330 ** Wciśnij u aby cofnąć skutki ostatniego polecenia.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
331 U zaś, by cofnąć skutki dla całej linii. **
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
332
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
333 1. Przenieś kursor do zdania poniżej oznaczonego ---> i umieść go na
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
334 pierwszym błędzie.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
335 2. Wpisz x aby usunąć pierwszy niechciany znak.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
336 3. Teraz wciśnij u aby cofnąć skutki ostatniego polecenia.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
337 4. Tym razem popraw wszystkie błędy w linii używając polecenia x .
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
338 5. Teraz wciśnij wielkie U aby przywrócić linię do oryginalnego stanu.
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
339 6. Teraz wciśnij u kilka razy, by cofnąć U i poprzednie polecenia.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
340 7. Teraz wpisz CTRL-R (trzymaj równocześnie wciśnięte klawisze CTRL i R)
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
341 kilka razy, by cofnąć cofnięcia.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
342
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
343 ---> Poopraw błędyyy w teej liniii i zaamiień je prrzez coofnij.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
344
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
345 8. To są bardzo pożyteczne polecenia.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
346
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
347 Przejdź teraz do podsumowania Lekcji 2.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
348
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
349 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
350 LEKCJA 2. PODSUMOWANIE
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
351
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
352
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
353 1. By usunąć znaki od kursora do następnego wyrazu, wpisz: dw
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
354 2. By usunąć znaki od kursora do końca linii, wpisz: d$
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
355 3. By usunąć całą linię: dd
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
356 4. By powtórzyć ruch, poprzedź go liczbą: 2w
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
357 5. Format polecenia zmiany to:
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
358 operator [liczba] ruch
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
359 gdzie:
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
360 operator - to, co trzeba zrobić (np. d dla usuwania)
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
361 [liczba] - opcjonalne, ile razy powtórzyć ruch
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
362 ruch - przenosi nad tekstem do operowania, takim jak w (wyraz),
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
363 $ (do końca linii) etc.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
364
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
365 6. By przejść do początku linii, użyj zera: 0
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
366 7. By cofnąć poprzednie polecenie, wpisz: u (małe u)
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
367 By cofnąć wszystkie zmiany w linii, wpisz: U (wielkie U)
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
368 By cofnąć cofnięcie, wpisz: CTRL-R
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
369
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
370
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
371
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
372 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
373 Lekcja 3.1.: POLECENIE PUT (wstaw)
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
374
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
375
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
376 ** Wpisz p by wstawić ostatnie usunięcia za kursorem. **
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
377
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
378 1. Przenieś kursor do pierwszej linii ---> poniżej.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
379
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
380 2. Wpisz dd aby usunąć linię i przechować ją w rejestrze Vima.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
381
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
382 3. Przenieś kursor do linii c), POWYŻEJ tej, gdzie usunięta linia powinna
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
383 się znajdować.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
384
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
385 4. Wciśnij p by wstawić linię poniżej kursora.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
386
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
387 5. Powtarzaj kroki 2. do 4. aż znajdą się w odpowiednim porządku.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
388
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
389 ---> d) Jak dwa aniołki.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
390 ---> b) Na dole fiołki,
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
391 ---> c) A my się kochamy,
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
392 ---> a) Na górze róże,
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
393
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
394
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
395 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
396 Lekcja 3.2.: POLECENIE REPLACE (zastąp)
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
397
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
398
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
399 ** Wpisz rx aby zastąpić znak pod kursorem na x . **
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
400
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
401 1. Przenieś kursor do pierwszej linii poniżej oznaczonej --->
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
402
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
403 2. Ustaw kursor na pierwszym błędzie.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
404
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
405 3. Wpisz r a potem znak jaki powinien go zastąpić.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
406
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
407 4. Powtarzaj kroki 2. i 3. dopóki pierwsza linia nie będzie taka, jak druga.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
408
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
409 ---> Kjedy ten wiersz bił wstókiwany, ktoś wciznął perę złych klawirzy!
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
410 ---> Kiedy ten wiersz był wstukiwany, ktoś wcisnął parę złych klawiszy!
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
411
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
412 5. Teraz czas na Lekcję 3.3.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
413
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
414
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
415 UWAGA: Pamiętaj, by uczyć się ćwicząc, a nie pamięciowo.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
416
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
417
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
418 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
419 Lekcja 3.3.: OPERATOR CHANGE (zmień)
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
420
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
421 ** By zmienić do końca wyrazu, wpisz ce . **
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
422
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
423 1. Przenieś kursor do pierwszej linii poniżej oznaczonej --->.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
424
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
425 2. Umieść kursor na u w lunos.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
426
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
427 3. Wpisz ce i popraw wyraz (w tym wypadku wstaw inia ).
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
428
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
429 4. Wciśnij <ESC> i przejdź do następnej planowanej zmiany.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
430
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
431 5. Powtarzaj kroki 3. i 4. dopóki pierwsze zdanie nie będzie takie same,
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
432 jak drugie.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
433
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
434 ---> Ta lunos ma pire słów, które tżina zbnic użifajonc pcmazu zmień.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
435 ---> Ta linia ma parę słów, które trzeba zmienić używając polecenia zmień.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
436
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
437 Zauważ, że ce nie tylko zamienia wyraz, ale także zmienia tryb na
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
438 Insert (wprowadzanie).
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
439
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
440
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
441 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
442 Lekcja 3.4.: WIĘCEJ ZMIAN UŻYWAJĄC c
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
443
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
444
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
445 ** Polecenie change używa takich samych ruchów, jak delete. **
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
446
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
447 1. Operator change działa tak samo, jak delete. Format wygląda tak:
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
448
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
449 c [liczba] ruch
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
450
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
451 2. Ruchy są także takie same, np.: w (wyraz), $ (koniec linii) etc.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
452
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
453 3. Przenieś się do pierwszej linii poniżej oznaczonej --->
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
454
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
455 4. Ustaw kursor na pierwszym błędzie.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
456
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
457 5. Wpisz c$ , popraw koniec wiersza i wciśnij <ESC>.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
458
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
459 ---> Koniec tego wiersza musi być poprawiony, aby wyglądał tak, jak drugi.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
460 ---> Koniec tego wiersza musi być poprawiony używając polecenia c$ .
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
461
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
462 UWAGA: Możesz używać <BS> aby poprawiać błędy w czasie pisania.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
463
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
464 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
465 LEKCJA 3. PODSUMOWANIE
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
466
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
467
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
468 1. Aby wstawić tekst, który został wcześniej usunięty wciśnij p . To
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
469 polecenie wstawia skasowany tekst PO kursorze (jeśli cała linia
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
470 została usunięta, zostanie ona umieszczona w linii poniżej kursora).
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
471
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
472 2. By zamienić znak pod kursorem, wciśnij r a potem znak, który ma zastąpić
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
473 oryginalny.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
474
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
475 3. Operator change pozwala Ci na zastąpienie od kursora do miejsca, gdzie
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
476 zabrałby Cię ruch. Np. wpisz ce aby zamienić tekst od kursora do końca
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
477 wyrazu, c$ aby zmienić tekst do końca linii.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
478
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
479 4. Format do polecenia change (zmień):
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
480
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
481 c [liczba] obiekt
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
482
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
483 Teraz przejdź do następnej lekcji.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
484
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
485
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
486
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
487 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
488 Lekcja 4.1.: POŁOŻENIE KURSORA ORAZ STATUS PLIKU
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
489
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
490 ** Naciśnij CTRL-G aby zobaczyć swoje położenie w pliku i status
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
491 pliku. Naciśnij G aby przejść do linii w pliku. **
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
492
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
493 UWAGA: Przeczytaj całą lekcję zanim wykonasz jakieś polecenia!!!
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
494
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
495 1. Przytrzymaj klawisz CTRL i wciśnij g . Używamy notacji CTRL-G.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
496 Na dole strony pojawi się pasek statusu z nazwą pliku i pozycją w pliku.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
497 Zapamiętaj numer linii dla potrzeb kroku 3.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
498
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
499 UWAGA: Możesz też zobaczyć pozycję kursora w prawym, dolnym rogu ekranu.
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
500 Dzieje się tak kiedy ustawiona jest opcja 'ruler' (więcej w lekcji 6.).
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
501
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
502 2. Wciśnij G aby przejść na koniec pliku.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
503 Wciśnij gg aby przejść do początku pliku.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
504
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
505 3. Wpisz numer linii, w której byłeś a potem G . To przeniesie Cię
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
506 z powrotem do linii, w której byłeś kiedy wcisnąłeś CTRL-G.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
507
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
508 4. Jeśli czujesz się wystarczająco pewnie, wykonaj kroki 1-3.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
509
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
510 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
511 Lekcja 4.2.: POLECENIE SZUKAJ
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
512
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
513
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
514 ** Wpisz / a następnie wyrażenie, aby je znaleźć. **
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
515
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
516 1. W trybie Normal wpisz / . Zauważ, że znak ten oraz kursor pojawią
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
517 się na dole ekranu tak samo, jak polecenie : .
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
518
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
519 2. Teraz wpisz błond<ENTER> . To jest słowo, którego chcesz szukać.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
520
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
521 3. By szukać tej samej frazy ponownie, po prostu wciśnij n .
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
522 Aby szukać tej frazy w przeciwnym, kierunku wciśnij N .
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
523
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
524 4. Jeśli chcesz szukać frazy do tyłu, użyj polecenia ? zamiast / .
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
525
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
526 5. Aby wrócić gdzie byłeś, wciśnij CTRL-O. Powtarzaj, by wrócić dalej. CTRL-I
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
527 idzie do przodu.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
528
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
529 Uwaga: 'błond' to nie jest metoda, by przeliterować błąd; 'błond' to błąd.
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
530 Uwaga: Kiedy szukanie osiągnie koniec pliku, będzie kontynuowane od początku
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
531 o ile opcja 'wrapscan' nie została przestawiona.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
532
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
533 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
534 Lekcja 4.3.: W POSZUKIWANIU PARUJĄCYCH NAWIASÓW
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
535
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
536
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
537 ** Wpisz % by znaleźć parujący ), ], lub } . **
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
538
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
539 1. Umieść kursor na którymś z (, [, lub { w linii poniżej oznaczonej --->.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
540
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
541 2. Teraz wpisz znak % .
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
542
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
543 3. Kursor powinien się znaleźć na parującym nawiasie.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
544
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
545 4. Wciśnij % aby przenieść kursor z powrotem do parującego nawiasu.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
546
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
547 5. Przenieś kursor do innego (,),[,],{ lub } i zobacz co robi % .
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
548
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
549 ---> To ( jest linia testowa z (, [, ] i {, } . ))
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
550
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
551 Uwaga: Ta funkcja jest bardzo użyteczna w debuggowaniu programu
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
552 z niesparowanymi nawiasami!
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
553
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
554
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
555
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
556 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
557 Lekcja 4.4.: POLECENIE SUBSTITUTE (zamiana)
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
558
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
559
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
560 ** Wpisz :s/stary/nowy/g aby zamienić 'stary' na 'nowy'. **
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
561
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
562 1. Przenieś kursor do linii poniżej oznaczonej --->.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
563
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
564 2. Wpisz :s/czaas/czas<ENTER> . Zauważ, że to polecenie zmienia
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
565 tylko pierwsze wystąpienie 'czaas' w linii.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
566
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
567 3. Teraz wpisz :s/czaas/czas/g . Dodane g oznacza zamianę (substytucję)
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
568 globalnie w całej linii. Zmienia wszystkie wystąpienia 'czaas' w linii.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
569
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
570 ---> Najlepszy czaas na zobaczenie najładniejszych kwiatów to czaas wiosny.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
571
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
572 4. Aby zmienić wszystkie wystąpienia łańcucha znaków pomiędzy dwoma liniami,
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
573 wpisz: :#,#s/stare/nowe/g gdzie #,# są numerami linii ograniczających
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
574 region, gdzie ma nastąpić zamiana.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
575 wpisz :%s/stare/nowe/g by zmienić wszystkie wystąpienia w całym pliku.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
576 wpisz :%s/stare/nowe/gc by zmienić wszystkie wystąpienia w całym
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
577 pliku, prosząc o potwierdzenie za każdym razem.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
578
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
579 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
580 LEKCJA 4. PODSUMOWANIE
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
581
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
582 1. CTRL-G pokaże Twoją pozycję w pliku i status pliku. SHIFT-G przenosi
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
583 Cię do końca pliku.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
584 G przenosi do końca pliku.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
585 liczba G przenosi do linii [liczba].
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
586 gg przenosi do pierwszej linii.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
587
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
588 2. Wpisanie / a następnie łańcucha znaków szuka łańcucha DO PRZODU.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
589 Wpisanie ? a następnie łańcucha znaków szuka łańcucha DO TYŁU.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
590 Po wyszukiwaniu wciśnij n by znaleźć następne wystąpienie szukanej
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
591 frazy w tym samym kierunku lub N by szukać w kierunku przeciwnym.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
592 CTRL-O przenosi do starszych pozycji, CTRL-I do nowszych.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
593
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
594 3. Wpisanie % gdy kursor znajduje się na (,),[,],{, lub } lokalizuje
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
595 parujący znak.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
596
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
597 4. By zamienić pierwszy stary na nowy w linii, wpisz :s/stary/nowy
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
598 By zamienić wszystkie stary na nowy w linii, wpisz :s/stary/nowy/g
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
599 By zamienić frazy pomiędzy dwoma liniami # wpisz :#,#s/stary/nowy/g
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
600 By zamienić wszystkie wystąpienia w pliku, wpisz :%s/stary/nowy/g
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
601 By Vim prosił Cię o potwierdzenie, dodaj 'c' :%s/stary/nowy/gc
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
602 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
603 Lekcja 5.1.: JAK WYKONAĆ POLECENIA ZEWNĘTRZNE?
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
604
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
605
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
606 ** Wpisz :! a następnie zewnętrzne polecenie, by je wykonać. **
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
607
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
608 1. Wpisz znajome polecenie : by ustawić kursor na dole ekranu. To pozwala
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
609 na wprowadzenie komendy linii poleceń.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
610
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
611 2. Teraz wstaw ! (wykrzyknik). To umożliwi Ci wykonanie dowolnego
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
612 zewnętrznego polecenia powłoki.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
613
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
614 3. Jako przykład wpisz ls za ! a następnie wciśnij <ENTER>. To polecenie
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
615 pokaże spis plików w Twoim katalogu, tak jakbyś był przy znaku zachęty
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
616 powłoki. Możesz też użyć :!dir jeśli ls nie działa.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
617
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
618 Uwaga: W ten sposób można wykonać wszystkie polecenia powłoki.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
619 Uwaga: Wszystkie polecenia : muszą być zakończone <ENTER>.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
620 Od tego momentu nie zawsze będziemy o tym wspominać.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
621
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
622
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
623
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
624
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
625 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
626 Lekcja 5.2.: WIĘCEJ O ZAPISYWANIU PLIKÓW
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
627
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
628
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
629 ** By zachować zmiany w tekście, wpisz :w NAZWA_PLIKU . **
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
630
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
631 1. Wpisz :!dir lub :!ls by zobaczyć spis plików w katalogu.
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
632 Już wiesz, że musisz po tym wcisnąć <ENTER>.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
633
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
634 2. Wybierz nazwę pliku, jaka jeszcze nie istnieje, np. TEST.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
635
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
636 3. Teraz wpisz: :w TEST (gdzie TEST jest nazwą pliku jaką wybrałeś.)
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
637
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
638 4. To polecenie zapamięta cały plik (Vim Tutor) pod nazwą TEST.
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
639 By to sprawdzić, wpisz :!dir lub :!ls żeby znowu zobaczyć listę plików.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
640
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
641 Uwaga: Zauważ, że gdybyś teraz wyszedł z Vima, a następnie wszedł ponownie
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
642 poleceniem vim TEST , plik byłby dokładną kopią tutoriala, kiedy go
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
643 zapisywałeś.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
644
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
645 5. Teraz usuń plik wpisując (MS-DOS): :!del TEST
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
646 lub (Unix): :!rm TEST
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
647
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
648 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
649 Lekcja 5.3.: WYBRANIE TEKSTU DO ZAPISU
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
650
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
651
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
652 ** By zachować część pliku, wpisz v ruch :w NAZWA_PLIKU **
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
653
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
654 1. Przenieś kursor do tego wiersza.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
655
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
656 2. Wciśnij v i przenieś kursor do punktu 5. Zauważ, że tekst został
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
657 podświetlony.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
658
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
659 3. Wciśnij znak : . Na dole ekranu pojawi się :'<,'> .
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
660
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
661 4. Wpisz w TEST , gdzie TEST to nazwa pliku, który jeszcze nie istnieje.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
662 Upewnij się, że widzisz :'<,'>w TEST zanim wciśniesz Enter.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
663
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
664 5. Vim zapisze wybrane linie do pliku TEST. Użyj :!dir lub :!ls , żeby to
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
665 zobaczyć. Jeszcze go nie usuwaj! Użyjemy go w następnej lekcji.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
666
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
667 UWAGA: Wciśnięcie v zaczyna tryb Wizualny. Możesz poruszać kursorem, by
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
668 zmienić rozmiary zaznaczenia. Możesz też użyć operatora, by zrobić coś
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
669 z tekstem. Na przykład d usuwa tekst.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
670
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
671 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
672 Lekcja 5.4.: WSTAWIANIE I ŁĄCZENIE PLIKÓW
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
673
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
674
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
675 ** By wstawić zawartość pliku, wpisz :r NAZWA_PLIKU **
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
676
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
677 1. Umieść kursor tuż powyżej tej linii.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
678
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
679 UWAGA: Po wykonaniu kroku 2. zobaczysz tekst z Lekcji 5.3. Potem przejdź
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
680 do DOŁU, by zobaczyć ponownie tę lekcję.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
681
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
682 2. Teraz wczytaj plik TEST używając polecenia :r TEST , gdzie TEST
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
683 jest nazwą pliku.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
684 Wczytany plik jest umieszczony poniżej linii z kursorem.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
685
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
686 3. By sprawdzić czy plik został wczytany, cofnij kursor i zobacz, że
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
687 teraz są dwie kopie Lekcji 5.3., oryginał i kopia z pliku.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
688
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
689 UWAGA: Możesz też wczytać wyjście zewnętrznego polecenia. Na przykład
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
690 :r !ls wczytuje wyjście polecenia ls i umieszcza je pod poniżej
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
691 kursora.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
692
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
693
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
694 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
695 LEKCJA 5. PODSUMOWANIE
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
696
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
697
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
698 1. :!polecenie wykonuje polecenie zewnętrzne.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
699
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
700 Użytecznymi przykładami są:
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
701
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
702 :!dir - pokazuje spis plików w katalogu.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
703
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
704 :!rm NAZWA_PLIKU - usuwa plik NAZWA_PLIKU.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
705
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
706 2. :w NAZWA_PLIKU zapisuje obecny plik Vima na dysk z nazwą NAZWA_PLIKU.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
707
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
708 3. v ruch :w NAZWA_PLIKU zapisuje Wizualnie wybrane linie do NAZWA_PLIKU.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
709
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
710 4. :r NAZWA_PLIKU wczytuje z dysku plik NAZWA_PLIKU i wstawia go do
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
711 bieżącego pliku poniżej kursora.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
712
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
713 5. :r !dir wczytuje wyjście polecenia dir i umieszcza je poniżej kursora.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
714
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
715
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
716
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
717 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
718 Lekcja 6.1.: POLECENIE OPEN (otwórz)
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
719
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
720
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
721 ** Wpisz o by otworzyć linię poniżej kursora i przenieść się do
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
722 trybu Insert (wprowadzanie). **
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
723
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
724 1. Przenieś kursor do linii poniżej oznaczonej --->.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
725
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
726 2. Wpisz o (małe), by otworzyć linię PONIŻEJ kursora i przenieść się
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
727 do trybu Insert (wprowadzanie).
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
728
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
729 3. Wpisz trochę tekstu i wciśnij <ESC> by wyjść z trybu Insert (wprowadzanie).
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
730
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
731 ---> Po wciśnięciu o kursor znajdzie się w otwartej linii w trybie Insert.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
732
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
733 4. By otworzyć linię POWYŻEJ kursora, wciśnij wielkie O zamiast małego
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
734 o . Wypróbuj to na linii poniżej.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
735
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
736 ---> Otwórz linię powyżej wciskając SHIFT-O gdy kursor będzie na tej linii.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
737
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
738
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
739
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
740 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
741 Lekcja 6.2.: POLECENIE APPEND (dodaj)
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
742
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
743
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
744 ** Wpisz a by dodać tekst ZA kursorem. **
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
745
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
746 1. Przenieś kursor do początku pierwszej linii poniżej oznaczonej --->
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
747
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
748 2. Wciskaj e dopóki kursor nie będzie na końcu li .
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
749
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
750 3. Wpisz a (małe), aby dodać tekst ZA znakiem pod kursorem.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
751
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
752 4. Dokończ wyraz tak, jak w linii poniżej. Wciśnij <ESC> aby opuścić tryb
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
753 Insert.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
754
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
755 5. Użyj e by przejść do kolejnego niedokończonego wyrazu i powtarzaj kroki
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
756 3. i 4.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
757
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
758 ---> Ta li poz Ci ćwi dodaw teks do koń lin
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
759 ---> Ta linia pozwoli Ci ćwiczyć dodawanie tekstu do końca linii.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
760
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
761 Uwaga: a , i oraz A prowadzą do trybu Insert, jedyną różnicą jest miejsce,
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
762 gdzie nowe znaki będą dodawane.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
763 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
764 Lekcja 6.3.: INNA WERSJA REPLACE (zamiana)
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
765
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
766
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
767 ** Wpisz wielkie R by zamienić więcej niż jeden znak. **
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
768
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
769 1. Przenieś kursor do pierwszej linii poniżej oznaczonej --->. Przenieś
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
770 kursor do pierwszego xxx .
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
771
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
772 2. Wciśnij R i wpisz numer poniżej w drugiej linii, tak, że zastąpi on
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
773 xxx.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
774
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
775 3. Wciśnij <ESC> by opuścić tryb Replace. Zauważ, że reszta linii pozostaje
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
776 niezmieniona.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
777
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
778 5. Powtarzaj kroki by wymienić wszystkie xxx.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
779
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
780 ---> Dodanie 123 do xxx daje xxx.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
781 ---> Dodanie 123 do 456 daje 579.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
782
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
783 UWAGA: Tryb Replace jest jak tryb Insert, ale każdy znak usuwa istniejący
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
784 znak.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
785
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
786 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
787 Lekcja 6.4.: KOPIOWANIE I WKLEJANIE TEKSTU
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
788
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
789
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
790 ** użyj operatora y aby skopiować tekst i p aby go wkleić **
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
791
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
792 1. Przejdź do linii oznaczonej ---> i umieść kursor za "a)".
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
793
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
794 2. Wejdź w tryb Wizualny v i przenieś kursor na początek "pierwszy".
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
795
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
796 3. Wciśnij y aby kopiować (yankować) podświetlony tekst.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
797
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
798 4. Przenieś kursor do końca następnej linii: j$
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
799
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
800 5. Wciśnij p aby wkleić (wpakować) tekst. Dodaj: a drugi<ESC> .
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
801
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
802 6. Użyj trybu Wizualnego, aby wybrać " element.", yankuj go y , przejdź do
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
803 końca następnej linii j$ i upakuj tam tekst z p .
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
804
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
805 ---> a) to jest pierwszy element.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
806 b)
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
807 Uwaga: możesz użyć y jako operatora; yw kopiuje jeden wyraz.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
808
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
809 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
810 Lekcja 6.5.: USTAWIANIE OPCJI
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
811
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
812
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
813 ** Ustawianie opcji tak, by szukaj lub substytucja ignorowały wielkość liter **
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
814
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
815 1. Szukaj 'ignore' wpisując: /ignore<ENTER>
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
816 Powtórz szukanie kilka razy naciskając klawisz n .
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
817
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
818 2. Ustaw opcję 'ic' (Ignore case -- ignoruj wielkość liter) poprzez
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
819 wpisanie: :set ic
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
820
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
821 3. Teraz szukaj 'ignore' ponownie wciskając: n
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
822 Zauważ, że Ignore i IGNORE także są teraz znalezione.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
823
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
824 4. Ustaw opcje 'hlsearch' i 'incsearch': :set hls is
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
825
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
826 5. Teraz wprowadź polecenie szukaj ponownie i zobacz co się zdarzy:
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
827 /ignore<ENTER>
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
828
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
829 6. Aby wyłączyć ignorowanie wielkości liter: :set noic
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
830
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
831 Uwaga: Aby usunąć podświetlanie dopasowań, wpisz: :nohlsearch
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
832 Uwaga: Aby ignorować wielkość liter dla jednego wyszukiwania: /ignore\c<ENTER>
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
833 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
834 LEKCJA 6. PODSUMOWANIE
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
835
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
836
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
837 1. Wpisanie o otwiera linię PONIŻEJ kursora.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
838 Wpisanie O otwiera linię POWYŻEJ kursora.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
839
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
840 2. Wpisanie a wstawia tekst ZA znakiem, na którym jest kursor.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
841 Wpisanie A dodaje tekst na końcu linii.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
842
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
843 3. Polecenie e przenosi do końca wyrazu.
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
844 4. Operator y yankuje (kopiuje) tekst, p pakuje (wkleja) go.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
845 5. Wpisanie wielkiego R wprowadza w tryb Replace (zamiana) dopóki
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
846 nie zostanie wciśnięty <ESC>.
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
847 6. Wpisanie ":set xxx" ustawia opcję "xxx". Niektóre opcje:
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
848 'ic' 'ignorecase' ignoruj wielkość znaków
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
849 'is' 'incsearch' pokaż częściowe dopasowania
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
850 'hls' 'hlsearch' podświetl wszystkie dopasowania
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
851 Możesz użyć zarówno długiej, jak i krótkiej formy.
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
852 7. Dodaj "no", aby wyłączyć opcję: :set noic
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
853
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
854
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
855
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
856
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
857
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
858 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
859 LEKCJA 7.1. JAK UZYSKAĆ POMOC?
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
860
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
861 ** Użycie systemu pomocy on-line **
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
862
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
863 Vim posiada bardzo dobry system pomocy on-line. By zacząć, spróbuj jednej
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
864 z trzech możliwości:
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
865 - wciśnij klawisz <HELP> (jeśli taki masz)
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
866 - wciśnij klawisz <F1> (jeśli taki masz)
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
867 - wpisz :help<ENTER>
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
868
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
869 Przeczytaj tekst w oknie pomocy, aby dowiedzieć się jak działa pomoc.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
870 wpisz CTRL-W CTRL-W aby przeskoczyć z jednego okna do innego
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
871 wpisz :q<ENTER> aby zamknąć okno pomocy.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
872
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
873 Możesz też znaleźć pomoc na każdy temat podając argument polecenia ":help".
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
874 Spróbuj tych (nie zapomnij wcisnąć <ENTER>):
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
875
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
876 :help w
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
877 :help c_CTRL-D
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
878 :help insert-index
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
879 :help user-manual
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
880 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
881 LEKCJA 7.2. TWORZENIE SKRYPTU STARTOWEGO
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
882
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
883 ** Włącz możliwości Vima **
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
884
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
885 Vim ma o wiele więcej możliwości niż Vi, ale większość z nich jest domyślnie
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
886 wyłączona. Jeśli chcesz włączyć te możliwości na starcie musisz utworzyć
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
887 plik "vimrc".
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
888
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
889 1. Początek edycji pliku "vimrc" zależy od Twojego systemu:
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
890 :edit ~/.vimrc dla Uniksa
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
891 :edit $VIM/_vimrc dla MS-Windows
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
892 2. Teraz wczytaj przykładowy plik "vimrc":
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
893 :read $VIMRUNTIME/vimrc_example.vim
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
894 3. Zapisz plik:
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
895 :w
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
896
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
897 Następnym razem, gdy zaczniesz pracę w Vimie będzie on używać podświetlania
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
898 składni. Możesz dodać wszystkie swoje ulubione ustawienia do tego pliku
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
899 "vimrc".
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
900 Aby uzyskać więcej informacji, wpisz :help vimrc-intro
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
901
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
902 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
903 Lekcja 7.3.: UZUPEŁNIANIE
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
904
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
905
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
906 ** Uzupełnianie linii poleceń z CTRL-D i <TAB> **
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
907
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
908 1. Upewnij się, że Vim nie jest w trybie kompatybilności: :set nocp
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
909
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
910 2. Zerknij, jakie pliki są w bieżącym katalogu: :!ls lub :!dir
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
911
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
912 3. Wpisz początek polecenia: :e
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
913
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
914 4. Wciśnij CTRL-D i Vim pokaże listę poleceń, jakie zaczynają się na "e".
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
915
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
916 5. Wciśnij <TAB> i Vim uzupełni polecenie do ":edit".
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
917
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
918 6. Dodaj spację i zacznij wpisywać nazwę istniejącego pliku: :edit FIL
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
919
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
920 7. Wciśnij <TAB>. Vim uzupełni nazwę (jeśli jest niepowtarzalna).
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
921
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
922 UWAGA: Uzupełnianie działa dla wielu poleceń. Spróbuj wcisnąć CTRL-D i <TAB>.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
923 Użyteczne zwłaszcza przy :help .
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
924 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
925 Lekcja 7. PODSUMOWANIE
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
926
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
927
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
928 1. Wpisz :help albo wciśnij <F1> lub <Help> aby otworzyć okno pomocy.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
929
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
930 2. Wpisz :help cmd aby uzyskać pomoc o cmd .
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
931
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
932 3. Wpisz CTRL-W CTRL-W aby przeskoczyć do innego okna.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
933
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
934 4. Wpisz :q aby zamknąć okno pomocy.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
935
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
936 5. Utwórz plik startowy vimrc aby zachować wybrane ustawienia.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
937
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
938 6. Po poleceniu : , wciśnij CTRL-D aby zobaczyć możliwe uzupełnienia.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
939 Wciśnij <TAB> aby użyć jednego z nich.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
940
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
941
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
942
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
943
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
944
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
945
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
946 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
947
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
948 Tutaj się kończy tutorial Vima. Został on pomyślany tak, aby dać krótki
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
949 przegląd jego możliwości, wystarczający byś mógł go używać. Jest on
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
950 daleki od kompletności, ponieważ Vim ma o wiele, wiele więcej poleceń.
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
951
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
952 Dla dalszej nauki rekomendujemy książkę:
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
953 Vim - Vi Improved - autor Steve Oualline
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
954 Wydawca: New Riders
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
955 Pierwsza książka całkowicie poświęcona Vimowi. Użyteczna zwłaszcza dla
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
956 początkujących. Zawiera wiele przykładów i ilustracji.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
957 Zobacz http://iccf-holland.org./click5.html
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
958
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
959 Starsza pozycja i bardziej o Vi niż o Vimie, ale także warta
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
960 polecenia:
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
961 Learning the Vi Editor - autor Linda Lamb
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
962 Wydawca: O'Reilly & Associates Inc.
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
963 To dobra książka, by dowiedzieć się niemal wszystkiego, co chciałbyś zrobić
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
964 z Vi. Szósta edycja zawiera też informacje o Vimie.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
965
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
966 Po polsku wydano:
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
967 Edytor vi. Leksykon kieszonkowy - autor Arnold Robbins
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
968 Wydawca: Helion 2001 (O'Reilly).
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
969 ISBN: 83-7197-472-8
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
970 http://helion.pl/ksiazki/vilek.htm
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
971 Jest to książeczka zawierająca spis poleceń vi i jego najważniejszych
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
972 klonów (między innymi Vima).
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
973
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
974 Edytor vi - autorzy Linda Lamb i Arnold Robbins
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
975 Wydawca: Helion 2001 (O'Reilly) - wg 6. ang. wydania
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
976 ISBN: 83-7197-539-2
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
977 http://helion.pl/ksiazki/viedyt.htm
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
978 Rozszerzona wersja Learning the Vi Editor w polskim tłumaczeniu.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
979
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
980 Ten tutorial został napisany przez Michaela C. Pierce'a i Roberta K. Ware'a,
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
981 Colorado School of Mines korzystając z pomocy Charlesa Smitha,
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
982 Colorado State University.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
983 E-mail: bware@mines.colorado.edu.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
984
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
985 Zmodyfikowane dla Vima przez Brama Moolenaara.
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
986
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
987 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
988
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
989 Przetłumaczone przez Mikołaja Machowskiego,
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
990 Sierpień 2001,
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
991 rev. Marzec 2002
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
992 2nd rev. Wrzesień 2004
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
993 3rd rev. Marzec 2006
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
994 4th rev. Grudzień 2008
1638
87304659e356 updated for version 7.2a
vimboss
parents:
diff changeset
995 Wszelkie uwagi proszę kierować na: mikmach@wp.pl