annotate runtime/tutor/tutor.pl.cp1250 @ 2682:35edf814f223 v7.3.100

updated for version 7.3.100 Problem: When using :normal v:count isn't set. Solution: Call normal_cmd() with toplevel set to TRUE.
author Bram Moolenaar <bram@vim.org>
date Mon, 17 Jan 2011 19:50:06 +0100
parents 7bc41231fbc7
children e69e7133c9cf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
1 ===============================================================================
24a8f532abfc 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. =
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
3 ===============================================================================
24a8f532abfc 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
1630
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
8 używać Vima jako edytora ogólnego przeznaczenia.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
9
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
10 Czas potrzebny na ukończenie tutoriala to 25 do 30 minut i zależy
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
11 od tego jak wiele czasu spędzisz na eksperymentowaniu.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
12
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
13 UWAGA:
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
14 Polecenia wykonywane w czasie lekcji zmodyfikują tekst. Zrób
24a8f532abfc 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).
1630
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
21 poleceń!
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
24 tak długo dopóki Lekcja 1.1. nie wypełni całkowicie ekranu.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
25
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
26 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
27 Lekcja 1.1.: PORUSZANIE SIĘ KURSOREM
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
28
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
29 ** By wykonać ruch kursorem, wciśnij h, j, k, l jak pokazano. **
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
30
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
31 ^
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
32 k Wskazówka: h jest po lewej
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
33 < h l > l jest po prawej
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
34 j j wygląda jak strzałka w dół
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
35 v
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
36 1. Poruszaj kursorem dopóki nie będziesz pewien, że pamiętasz polecenia.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
37
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
38 2. Trzymaj j tak długo aż będzie się powtarzał.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
39 Teraz wiesz jak dojść do następnej lekcji.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
40
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
41 3. Używając strzałki w dół przejdź do następnej lekcji.
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
44 trybu Normal. Wtedy powtórz polecenie.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
45
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
48 Naprawdę!
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
49
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
50 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
51 Lekcja 1.2.: WYCHODZENIE Z VIM-a
24a8f532abfc 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ę !!
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
54
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
55 1. Wciśnij <ESC> (aby upewnić się, że jesteś w trybie Normal).
24a8f532abfc 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ść,
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
59 wpisz: :wq<ENTER>
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
60
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
61 3. Kiedy widzisz znak zachęty powłoki wpisz komendę, żeby wrócić
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
62 do tutoriala. Czyli: vimtutor<ENTER>
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
65 wyjść i wrócić do edytora.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
66
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
67 UWAGA: :q!<ENTER> porzuca wszelkie zmiany jakie zrobiłeś. W następnych
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
68 lekcjach dowiesz się jak je zapamiętywać.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
69
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
70 5. Przenieś kursor do lekcji 1.3.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
71
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
72
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
73 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
74 Lekcja 1.3.: EDYCJA TEKSTU - KASOWANIE
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
75
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
76 ** Wciśnij x aby usunąć znak pod kursorem. **
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
77
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
78 1. Przenieś kursor do linii poniżej oznaczonej --->.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
79
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
80 2. By poprawić błędy, naprowadź kursor na znak do usunięcia.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
81
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
82 3. Wciśnij x aby usunąć niechciany znak.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
83
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
84 4. Powtarzaj kroki 2. do 4. dopóki zdanie nie jest poprawne.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
85
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
86 ---> Kkrowa prrzeskoczyła prrzez ksiiężycc.
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
89
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
90 UWAGA: Ucz się przez ćwiczenie, nie wkuwanie.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
91
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
92
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
93
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
94
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
95
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
96 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
97 Lekcja 1.4.: EDYCJA TEKSTU - INSERT (wprowadzanie)
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
98
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
99
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
100 ** Wciśnij i aby wstawić tekst. **
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
101
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
102 1. Przenieś kursor do pierwszej linii poniżej oznaczonej --->.
24a8f532abfc 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,
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
105 gdzie tekst ma być wstawiony.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
106
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
107 3. Wciśnij i a następnie wpisz konieczne poprawki.
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
111
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
112 ---> W tej brkje trochę .
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
113 ---> W tej linii brakuje trochę tekstu.
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
116 podsumowania poniżej.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
117
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
118
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
119 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
120 Lekcja 1.5.: EDYCJA TEKSTU - APPENDING (dodawanie)
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
121
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
122
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
123 ** Wciśnij A by dodać tekst. **
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
124
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
125 1. Przenieś kursor do pierwszej linii poniżej oznaczonej --->.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
126 Nie ma znaczenia, który to będzie znak.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
127
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
128 2. Wciśnij A i wpisz odpowiednie dodatki.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
129
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
130 3. Kiedy tekst został dodany, wciśnij <ESC> i wróć do trybu Normalnego.
24a8f532abfc 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.,
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
133 aby poprawić zdanie.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
134
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
135 ---> Brakuje tu tro
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
136 Brakuje tu trochę tekstu.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
137 ---> Tu też trochę bra
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
138 Tu też trochę brakuje.
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
141
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
142 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
143 Lekcja 1.6.: EDYCJA PLIKU
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
144
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
145 ** Użyj :wq aby zapisać plik i wyjść. **
24a8f532abfc 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ę !!
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
148
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
151
24a8f532abfc 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.
1630
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
157
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
158 4. Zapisz plik ze zmianami i opuść Vima: :wq<ENTER>
24a8f532abfc 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: 1630
diff changeset
161 do podsumowania poniżej.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
162
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
163 6. Po przeczytaniu wszystkich kroków i ich zrozumieniu: wykonaj je.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
164
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
165 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
166 LEKCJA 1. PODSUMOWANIE
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
167
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
168 1. Poruszasz kursorem używając "strzałek" i klawiszy hjkl .
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
169 h (w lewo) j (w dół) k (do góry) l (w prawo)
24a8f532abfc 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:
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
172 vim NAZWA_PLIKU<ENTER>
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
176 LUB: <ESC> :wq<ENTER> by zmiany zachować.
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
179
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
180 5. By wstawić tekst przed kursorem lub dodać:
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
181 i wpisz tekst <ESC> wstawi przed kursorem
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
182 A wpisz tekst <ESC> doda na końcu linii
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
183
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
184 UWAGA: Wciśnięcie <ESC> przeniesie Cię z powrotem do trybu Normal
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
185 lub odwoła niechciane lub częściowo wprowadzone polecenia.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
186
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
187 Teraz możemy kontynuować i przejść do Lekcji 2.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
188 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
189 Lekcja 2.1.: POLECENIE DELETE (usuwanie)
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
190
24a8f532abfc 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. **
1630
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
195
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
196 2. Przenieś kursor do linii poniżej oznaczonej --->.
24a8f532abfc 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ąć.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
199
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
200 4. Wpisz dw by usunąć wyraz.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
201
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
204 <ESC> i zacznij od początku.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
205
24a8f532abfc 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.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
207
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
208 5. Powtarzaj kroki 3. i 4. dopóki zdanie nie będzie poprawne, potem
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
209 przejdź do Lekcji 2.2.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
210
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
211 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
212 Lekcja 2.2.: WIĘCEJ POLECEŃ USUWAJĄCYCH
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
213
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
214
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
215 ** Wpisz d$ aby usunąć tekst do końca linii. **
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
216
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
217 1. Wciśnij <ESC> aby się upewnić, że jesteś w trybie Normal.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
218
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
219 2. Przenieś kursor do linii poniżej oznaczonej --->.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
220
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
221 3. Przenieś kursor do końca poprawnego zdania (PO pierwszej . ).
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
222
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
223 4. Wpisz d$ aby usunąć resztę linii.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
224
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
225 ---> Ktoś wpisał koniec tego zdania dwukrotnie. zdania dwukrotnie.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
226
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
229
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
230
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
231
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
232
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
233
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
234 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
235 Lekcja 2.3.: O OPERATORACH I RUCHACH
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
236
24a8f532abfc 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:
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
240
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
241 d ruch
24a8f532abfc 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:
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
244 d - operator usuwania.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
245 ruch - na czym polecenie będzie wykonywane (lista poniżej).
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
246
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
247 Krótka lista ruchów:
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
248 w - do początku następnego wyrazu WYŁĄCZAJĄC pierwszy znak.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
249 e - do końca bieżącego wyrazu, WŁĄCZAJĄC ostatni znak.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
250 $ - do końca linii, WŁĄCZAJĄC ostatni znak.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
251
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
252 W ten sposób wpisanie de usunie znaki od kursora do końca wyrazu.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
253
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
256
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
257 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
258 Lekcja 2.4.: UŻYCIE MNOŻNIKA DLA RUCHU
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
259
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
260
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
261 ** Wpisanie liczby przed ruchem powtarza ruch odpowiednią ilość razy. **
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
262
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
263 1. Przenieś kursor na początek linii poniżej zaznaczonej --->.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
264
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
265 2. Wpisz 2w aby przenieść kursor o dwa wyrazy do przodu.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
266
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
267 3. Wpisz 3e aby przenieść kursor do końca trzeciego wyrazu w przód.
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
270
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
271 5. Powtórz kroki 2. i 3. z innymi liczbami.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
272
24a8f532abfc 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ć.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
275
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
276 6. Przejdź do lekcji 2.5.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
277
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
278
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
279
24a8f532abfc 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ĄĆ
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
282
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
283
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
284 ** Wpisanie liczby z operatorem powtarza go odpowiednią ilość razy. **
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
285
24a8f532abfc 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ąć:
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
288 d liczba ruch
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
289
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
290 1. Przenieś kursor do pierwszego wyrazu KAPITALIKAMI w linii zaznaczonej --->.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
291
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
292 2. Wpisz 2dw aby usunąć dwa wyrazy KAPITALIKAMI.
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
295 KAPITALIKAMI jednym poleceniem
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
296
24a8f532abfc 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.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
298
24a8f532abfc 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
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
300 operatora.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
301
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
302
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
303 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
304 Lekcja 2.6.: OPEROWANIE NA LINIACH
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
305
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
306
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
307 ** Wpisz dd aby usunąć całą linię. **
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
308
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
309 Z powodu częstości usuwania całych linii, projektanci Vi zdecydowali, że
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
310 będzie łatwiej wpisać dwa razy d aby usunąć linię.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
311
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
312 1. Przenieś kursor do drugiego zdania z wierszyka poniżej.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
313 2. Wpisz dd aby usunąć wiersz.
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
316
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
317 ---> 1) Róże są czerwone,
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
318 ---> 2) Błoto jest fajne,
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
319 ---> 3) Fiołki są niebieskie,
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
320 ---> 4) Mam samochód,
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
321 ---> 5) Zegar podaje czas,
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
322 ---> 6) Cukier jest słodki,
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
323 ---> 7) I ty też.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
324
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
325
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
326 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
327 Lekcja 2.7.: POLECENIE UNDO (cofnij)
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
328
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
329
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
330 ** Wciśnij u aby cofnąć skutki ostatniego polecenia.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
331 U zaś, by cofnąć skutki dla całej linii. **
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
332
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
333 1. Przenieś kursor do zdania poniżej oznaczonego ---> i umieść go na
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
334 pierwszym błędzie.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
335 2. Wpisz x aby usunąć pierwszy niechciany znak.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
336 3. Teraz wciśnij u aby cofnąć skutki ostatniego polecenia.
24a8f532abfc 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.
1630
24a8f532abfc 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)
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
341 kilka razy, by cofnąć cofnięcia.
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
344
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
345 8. To są bardzo pożyteczne polecenia.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
346
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
347 Przejdź teraz do podsumowania Lekcji 2.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
348
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
349 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
350 LEKCJA 2. PODSUMOWANIE
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
351
24a8f532abfc 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$
1630
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
357 5. Format polecenia zmiany to:
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
358 operator [liczba] ruch
24a8f532abfc 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)
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
361 [liczba] - opcjonalne, ile razy powtórzyć ruch
24a8f532abfc 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.
1630
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
369
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
370
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
371
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
372 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
373 Lekcja 3.1.: POLECENIE PUT (wstaw)
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
374
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
375
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
376 ** Wpisz p by wstawić ostatnie usunięcia za kursorem. **
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
377
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
378 1. Przenieś kursor do pierwszej linii ---> poniżej.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
379
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
380 2. Wpisz dd aby usunąć linię i przechować ją w rejestrze Vima.
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
383 się znajdować.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
384
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
385 4. Wciśnij p by wstawić linię poniżej kursora.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
386
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
387 5. Powtarzaj kroki 2. do 4. aż znajdą się w odpowiednim porządku.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
388
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
389 ---> d) Jak dwa aniołki.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
390 ---> b) Na dole fiołki,
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
391 ---> c) A my się kochamy,
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
392 ---> a) Na górze róże,
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
393
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
394
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
395 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
396 Lekcja 3.2.: POLECENIE REPLACE (zastąp)
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
397
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
398
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
399 ** Wpisz rx aby zastąpić znak pod kursorem na x . **
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
400
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
401 1. Przenieś kursor do pierwszej linii poniżej oznaczonej --->
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
402
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
403 2. Ustaw kursor na pierwszym błędzie.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
404
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
405 3. Wpisz r a potem znak jaki powinien go zastąpić.
24a8f532abfc 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.
1630
24a8f532abfc 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!
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
411
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
412 5. Teraz czas na Lekcję 3.3.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
413
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
416
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
417
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
418 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
419 Lekcja 3.3.: OPERATOR CHANGE (zmień)
24a8f532abfc 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 . **
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
422
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
423 1. Przenieś kursor do pierwszej linii poniżej oznaczonej --->.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
424
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
425 2. Umieść kursor na u w lunos.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
426
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
427 3. Wpisz ce i popraw wyraz (w tym wypadku wstaw inia ).
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
428
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
429 4. Wciśnij <ESC> i przejdź do następnej planowanej zmiany.
24a8f532abfc 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,
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
432 jak drugie.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
433
24a8f532abfc 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ń.
24a8f532abfc 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ń.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
436
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
437 Zauważ, że ce nie tylko zamienia wyraz, ale także zmienia tryb na
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
438 Insert (wprowadzanie).
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
439
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
440
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
441 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
442 Lekcja 3.4.: WIĘCEJ ZMIAN UŻYWAJĄC c
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
443
24a8f532abfc 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. **
1630
24a8f532abfc 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:
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
448
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
449 c [liczba] ruch
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
452
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
453 3. Przenieś się do pierwszej linii poniżej oznaczonej --->
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
454
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
455 4. Ustaw kursor na pierwszym błędzie.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
456
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
457 5. Wpisz c$ , popraw koniec wiersza i wciśnij <ESC>.
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
460 ---> Koniec tego wiersza musi być poprawiony używając polecenia c$ .
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
461
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
462 UWAGA: Możesz używać <BS> aby poprawiać błędy w czasie pisania.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
463
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
464 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
465 LEKCJA 3. PODSUMOWANIE
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
466
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
467
24a8f532abfc 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
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
469 polecenie wstawia skasowany tekst PO kursorze (jeśli cała linia
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
470 została usunięta, zostanie ona umieszczona w linii poniżej kursora).
24a8f532abfc 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ć
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
473 oryginalny.
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
477 wyrazu, c$ aby zmienić tekst do końca linii.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
478
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
479 4. Format do polecenia change (zmień):
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
480
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
481 c [liczba] obiekt
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
482
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
483 Teraz przejdź do następnej lekcji.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
484
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
485
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
486
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
487 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
488 Lekcja 4.1.: POŁOŻENIE KURSORA ORAZ STATUS PLIKU
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
489
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
490 ** Naciśnij CTRL-G aby zobaczyć swoje położenie w pliku i status
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
491 pliku. Naciśnij G aby przejść do linii w pliku. **
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
492
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
493 UWAGA: Przeczytaj całą lekcję zanim wykonasz jakieś polecenia!!!
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
494
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
495 1. Przytrzymaj klawisz CTRL i wciśnij g . Używamy notacji CTRL-G.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
496 Na dole strony pojawi się pasek statusu z nazwą pliku i pozycją w pliku.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
497 Zapamiętaj numer linii dla potrzeb kroku 3.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
498
24a8f532abfc 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.).
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
501
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
502 2. Wciśnij G aby przejść na koniec pliku.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
503 Wciśnij gg aby przejść do początku pliku.
24a8f532abfc 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ę
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
506 z powrotem do linii, w której byłeś kiedy wcisnąłeś CTRL-G.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
507
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
508 4. Jeśli czujesz się wystarczająco pewnie, wykonaj kroki 1-3.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
509
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
510 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
511 Lekcja 4.2.: POLECENIE SZUKAJ
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
512
24a8f532abfc 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źć. **
1630
24a8f532abfc 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 : .
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
518
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
519 2. Teraz wpisz błond<ENTER> . To jest słowo, którego chcesz szukać.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
520
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
521 3. By szukać tej samej frazy ponownie, po prostu wciśnij n .
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
522 Aby szukać tej frazy w przeciwnym, kierunku wciśnij N .
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
523
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
524 4. Jeśli chcesz szukać frazy do tyłu, użyj polecenia ? zamiast / .
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
527 idzie do przodu.
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
531 o ile opcja 'wrapscan' nie została przestawiona.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
532
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
533 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
534 Lekcja 4.3.: W POSZUKIWANIU PARUJĄCYCH NAWIASÓW
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
535
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
536
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
537 ** Wpisz % by znaleźć parujący ), ], lub } . **
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
538
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
539 1. Umieść kursor na którymś z (, [, lub { w linii poniżej oznaczonej --->.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
540
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
541 2. Teraz wpisz znak % .
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
542
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
543 3. Kursor powinien się znaleźć na parującym nawiasie.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
544
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
545 4. Wciśnij % aby przenieść kursor z powrotem do parującego nawiasu.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
546
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
547 5. Przenieś kursor do innego (,),[,],{ lub } i zobacz co robi % .
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
548
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
549 ---> To ( jest linia testowa z (, [, ] i {, } . ))
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
550
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
551 Uwaga: Ta funkcja jest bardzo użyteczna w debuggowaniu programu
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
552 z niesparowanymi nawiasami!
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
553
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
554
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
555
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
556 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
557 Lekcja 4.4.: POLECENIE SUBSTITUTE (zamiana)
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
558
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
559
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
560 ** Wpisz :s/stary/nowy/g aby zamienić 'stary' na 'nowy'. **
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
561
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
562 1. Przenieś kursor do linii poniżej oznaczonej --->.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
563
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
564 2. Wpisz :s/czaas/czas<ENTER> . Zauważ, że to polecenie zmienia
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
565 tylko pierwsze wystąpienie 'czaas' w linii.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
566
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
567 3. Teraz wpisz :s/czaas/czas/g . Dodane g oznacza zamianę (substytucję)
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
568 globalnie w całej linii. Zmienia wszystkie wystąpienia 'czaas' w linii.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
569
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
570 ---> Najlepszy czaas na zobaczenie najładniejszych kwiatów to czaas wiosny.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
571
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
572 4. Aby zmienić wszystkie wystąpienia łańcucha znaków pomiędzy dwoma liniami,
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
575 wpisz :%s/stare/nowe/g by zmienić wszystkie wystąpienia w całym pliku.
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
578
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
579 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
580 LEKCJA 4. PODSUMOWANIE
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
581
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
584 G przenosi do końca pliku.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
585 liczba G przenosi do linii [liczba].
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
586 gg przenosi do pierwszej linii.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
587
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
588 2. Wpisanie / a następnie łańcucha znaków szuka łańcucha DO PRZODU.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
589 Wpisanie ? a następnie łańcucha znaków szuka łańcucha DO TYŁU.
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
592 CTRL-O przenosi do starszych pozycji, CTRL-I do nowszych.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
593
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
594 3. Wpisanie % gdy kursor znajduje się na (,),[,],{, lub } lokalizuje
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
595 parujący znak.
24a8f532abfc 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
1630
24a8f532abfc 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
1630
24a8f532abfc 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?
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
604
24a8f532abfc 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ć. **
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
607
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
608 1. Wpisz znajome polecenie : by ustawić kursor na dole ekranu. To pozwala
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
609 na wprowadzenie komendy linii poleceń.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
610
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
611 2. Teraz wstaw ! (wykrzyknik). To umożliwi Ci wykonanie dowolnego
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
612 zewnętrznego polecenia powłoki.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
613
24a8f532abfc 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
24a8f532abfc 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
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
616 powłoki. Możesz też użyć :!dir jeśli ls nie działa.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
617
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
618 Uwaga: W ten sposób można wykonać wszystkie polecenia powłoki.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
619 Uwaga: Wszystkie polecenia : muszą być zakończone <ENTER>.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
620 Od tego momentu nie zawsze będziemy o tym wspominać.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
621
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
622
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
623
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
624
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
625 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
626 Lekcja 5.2.: WIĘCEJ O ZAPISYWANIU PLIKÓW
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
627
24a8f532abfc 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 . **
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
630
24a8f532abfc 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>.
1630
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
635
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
636 3. Teraz wpisz: :w TEST (gdzie TEST jest nazwą pliku jaką wybrałeś.)
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
637
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
640
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
643 zapisywałeś.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
644
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
645 5. Teraz usuń plik wpisując (MS-DOS): :!del TEST
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
646 lub (Unix): :!rm TEST
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
647
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
648 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
649 Lekcja 5.3.: WYBRANIE TEKSTU DO ZAPISU
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
650
24a8f532abfc 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 **
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
653
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
654 1. Przenieś kursor do tego wiersza.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
655
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
656 2. Wciśnij v i przenieś kursor do punktu 5. Zauważ, że tekst został
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
657 podświetlony.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
658
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
659 3. Wciśnij znak : . Na dole ekranu pojawi się :'<,'> .
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
660
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
661 4. Wpisz w TEST , gdzie TEST to nazwa pliku, który jeszcze nie istnieje.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
662 Upewnij się, że widzisz :'<,'>w TEST zanim wciśniesz Enter.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
663
24a8f532abfc 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
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
665 zobaczyć. Jeszcze go nie usuwaj! Użyjemy go w następnej lekcji.
24a8f532abfc 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ś
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
669 z tekstem. Na przykład d usuwa tekst.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
670
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
671 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
672 Lekcja 5.4.: WSTAWIANIE I ŁĄCZENIE PLIKÓW
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
673
24a8f532abfc 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 **
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
676
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
677 1. Umieść kursor tuż powyżej tej linii.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
678
24a8f532abfc 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ę.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
681
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
682 2. Teraz wczytaj plik TEST używając polecenia :r TEST , gdzie TEST
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
683 jest nazwą pliku.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
684 Wczytany plik jest umieszczony poniżej linii z kursorem.
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
687 teraz są dwie kopie Lekcji 5.3., oryginał i kopia z pliku.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
688
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
689 UWAGA: Możesz też wczytać wyjście zewnętrznego polecenia. Na przykład
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
690 :r !ls wczytuje wyjście polecenia ls i umieszcza je pod poniżej
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
691 kursora.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
692
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
693
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
694 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
695 LEKCJA 5. PODSUMOWANIE
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
696
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
697
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
698 1. :!polecenie wykonuje polecenie zewnętrzne.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
699
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
700 Użytecznymi przykładami są:
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
701
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
702 :!dir - pokazuje spis plików w katalogu.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
703
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
704 :!rm NAZWA_PLIKU - usuwa plik NAZWA_PLIKU.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
705
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
706 2. :w NAZWA_PLIKU zapisuje obecny plik Vima na dysk z nazwą NAZWA_PLIKU.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
707
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
708 3. v ruch :w NAZWA_PLIKU zapisuje Wizualnie wybrane linie do NAZWA_PLIKU.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
709
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
710 4. :r NAZWA_PLIKU wczytuje z dysku plik NAZWA_PLIKU i wstawia go do
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
711 bieżącego pliku poniżej kursora.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
712
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
713 5. :r !dir wczytuje wyjście polecenia dir i umieszcza je poniżej kursora.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
714
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
715
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
716
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
717 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
718 Lekcja 6.1.: POLECENIE OPEN (otwórz)
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
719
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
720
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
721 ** Wpisz o by otworzyć linię poniżej kursora i przenieść się do
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
722 trybu Insert (wprowadzanie). **
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
723
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
724 1. Przenieś kursor do linii poniżej oznaczonej --->.
24a8f532abfc 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ę
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
727 do trybu Insert (wprowadzanie).
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
728
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
729 3. Wpisz trochę tekstu i wciśnij <ESC> by wyjść z trybu Insert (wprowadzanie).
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
730
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
731 ---> Po wciśnięciu o kursor znajdzie się w otwartej linii w trybie Insert.
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
734 o . Wypróbuj to na linii poniżej.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
735
24a8f532abfc 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.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
737
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
738
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
739
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
740 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
741 Lekcja 6.2.: POLECENIE APPEND (dodaj)
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
742
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
743
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
744 ** Wpisz a by dodać tekst ZA kursorem. **
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
745
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
746 1. Przenieś kursor do początku pierwszej linii poniżej oznaczonej --->
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
747
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
748 2. Wciskaj e dopóki kursor nie będzie na końcu li .
24a8f532abfc 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.
1630
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
753 Insert.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
754
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
755 5. Użyj e by przejść do kolejnego niedokończonego wyrazu i powtarzaj kroki
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
756 3. i 4.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
757
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
758 ---> Ta li poz Ci ćwi dodaw teks do koń lin
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
759 ---> Ta linia pozwoli Ci ćwiczyć dodawanie tekstu do końca linii.
24a8f532abfc 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,
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
762 gdzie nowe znaki będą dodawane.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
763 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
764 Lekcja 6.3.: INNA WERSJA REPLACE (zamiana)
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
765
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
766
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
767 ** Wpisz wielkie R by zamienić więcej niż jeden znak. **
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
768
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
769 1. Przenieś kursor do pierwszej linii poniżej oznaczonej --->. Przenieś
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
770 kursor do pierwszego xxx .
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
771
24a8f532abfc 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
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
773 xxx.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
774
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
775 3. Wciśnij <ESC> by opuścić tryb Replace. Zauważ, że reszta linii pozostaje
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
776 niezmieniona.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
777
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
778 5. Powtarzaj kroki by wymienić wszystkie xxx.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
779
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
780 ---> Dodanie 123 do xxx daje xxx.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
781 ---> Dodanie 123 do 456 daje 579.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
782
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
783 UWAGA: Tryb Replace jest jak tryb Insert, ale każdy znak usuwa istniejący
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
784 znak.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
785
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
786 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
787 Lekcja 6.4.: KOPIOWANIE I WKLEJANIE TEKSTU
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
788
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
789
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
790 ** użyj operatora y aby skopiować tekst i p aby go wkleić **
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
791
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
792 1. Przejdź do linii oznaczonej ---> i umieść kursor za "a)".
24a8f532abfc 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".
1630
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
797
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
798 4. Przenieś kursor do końca następnej linii: j$
24a8f532abfc 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> .
1630
24a8f532abfc 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 .
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
804
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
805 ---> a) to jest pierwszy element.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
806 b)
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
807 Uwaga: możesz użyć y jako operatora; yw kopiuje jeden wyraz.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
808
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
809 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
810 Lekcja 6.5.: USTAWIANIE OPCJI
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
811
24a8f532abfc 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 **
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
814
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
815 1. Szukaj 'ignore' wpisując: /ignore<ENTER>
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
816 Powtórz szukanie kilka razy naciskając klawisz n .
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
817
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
818 2. Ustaw opcję 'ic' (Ignore case -- ignoruj wielkość liter) poprzez
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
819 wpisanie: :set ic
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
820
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
821 3. Teraz szukaj 'ignore' ponownie wciskając: n
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
822 Zauważ, że Ignore i IGNORE także są teraz znalezione.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
823
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
824 4. Ustaw opcje 'hlsearch' i 'incsearch': :set hls is
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
825
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
826 5. Teraz wprowadź polecenie szukaj ponownie i zobacz co się zdarzy:
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
827 /ignore<ENTER>
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
828
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
829 6. Aby wyłączyć ignorowanie wielkości liter: :set noic
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
832 Uwaga: Aby ignorować wielkość liter dla jednego wyszukiwania: /ignore\c<ENTER>
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
833 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
834 LEKCJA 6. PODSUMOWANIE
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
835
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
836
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
837 1. Wpisanie o otwiera linię PONIŻEJ kursora.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
838 Wpisanie O otwiera linię POWYŻEJ kursora.
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
841 Wpisanie A dodaje tekst na końcu linii.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
842
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
845 5. Wpisanie wielkiego R wprowadza w tryb Replace (zamiana) dopóki
24a8f532abfc 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:
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
848 'ic' 'ignorecase' ignoruj wielkość znaków
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
849 'is' 'incsearch' pokaż częściowe dopasowania
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
853
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
854
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
855
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
856
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
857
24a8f532abfc 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?
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
860
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
861 ** Użycie systemu pomocy on-line **
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
864 z trzech możliwości:
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
865 - wciśnij klawisz <HELP> (jeśli taki masz)
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
866 - wciśnij klawisz <F1> (jeśli taki masz)
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
867 - wpisz :help<ENTER>
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
870 wpisz CTRL-W CTRL-W aby przeskoczyć z jednego okna do innego
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
871 wpisz :q<ENTER> aby zamknąć okno pomocy.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
872
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
873 Możesz też znaleźć pomoc na każdy temat podając argument polecenia ":help".
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
874 Spróbuj tych (nie zapomnij wcisnąć <ENTER>):
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
875
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
876 :help w
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
877 :help c_CTRL-D
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
878 :help insert-index
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
879 :help user-manual
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
880 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
881 LEKCJA 7.2. TWORZENIE SKRYPTU STARTOWEGO
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
882
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
883 ** Włącz możliwości Vima **
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
884
24a8f532abfc 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
24a8f532abfc 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ć
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
887 plik "vimrc".
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
888
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
889 1. Początek edycji pliku "vimrc" zależy od Twojego systemu:
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
890 :edit ~/.vimrc dla Uniksa
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
891 :edit $VIM/_vimrc dla MS-Windows
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
892 2. Teraz wczytaj przykładowy plik "vimrc":
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
893 :read $VIMRUNTIME/vimrc_example.vim
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
894 3. Zapisz plik:
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
895 :w
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
898 składni. Możesz dodać wszystkie swoje ulubione ustawienia do tego pliku
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
901
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
902 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
903 Lekcja 7.3.: UZUPEŁNIANIE
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
904
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
905
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
906 ** Uzupełnianie linii poleceń z CTRL-D i <TAB> **
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
907
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
908 1. Upewnij się, że Vim nie jest w trybie kompatybilności: :set nocp
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
911
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
912 3. Wpisz początek polecenia: :e
24a8f532abfc 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".
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
915
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
916 5. Wciśnij <TAB> i Vim uzupełni polecenie do ":edit".
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
917
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
918 6. Dodaj spację i zacznij wpisywać nazwę istniejącego pliku: :edit FIL
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
919
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
920 7. Wciśnij <TAB>. Vim uzupełni nazwę (jeśli jest niepowtarzalna).
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
921
24a8f532abfc 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>.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
923 Użyteczne zwłaszcza przy :help .
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
924 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
925 Lekcja 7. PODSUMOWANIE
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
926
24a8f532abfc 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.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
929
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
930 2. Wpisz :help cmd aby uzyskać pomoc o cmd .
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
931
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
932 3. Wpisz CTRL-W CTRL-W aby przeskoczyć do innego okna.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
933
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
934 4. Wpisz :q aby zamknąć okno pomocy.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
935
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
936 5. Utwórz plik startowy vimrc aby zachować wybrane ustawienia.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
937
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
938 6. Po poleceniu : , wciśnij CTRL-D aby zobaczyć możliwe uzupełnienia.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
939 Wciśnij <TAB> aby użyć jednego z nich.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
940
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
941
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
942
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
943
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
944
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
945
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
946 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc 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
1630
24a8f532abfc 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ń.
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
951
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
952 Dla dalszej nauki rekomendujemy książkę:
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
953 Vim - Vi Improved - autor Steve Oualline
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
956 początkujących. Zawiera wiele przykładów i ilustracji.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
957 Zobacz http://iccf-holland.org./click5.html
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
958
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
959 Starsza pozycja i bardziej o Vi niż o Vimie, ale także warta
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
960 polecenia:
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
961 Learning the Vi Editor - autor Linda Lamb
24a8f532abfc 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ć
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
964 z Vi. Szósta edycja zawiera też informacje o Vimie.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
965
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
966 Po polsku wydano:
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
967 Edytor vi. Leksykon kieszonkowy - autor Arnold Robbins
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
968 Wydawca: Helion 2001 (O'Reilly).
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
969 ISBN: 83-7197-472-8
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
970 http://helion.pl/ksiazki/vilek.htm
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
971 Jest to książeczka zawierająca spis poleceń vi i jego najważniejszych
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
972 klonów (między innymi Vima).
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
973
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
974 Edytor vi - autorzy Linda Lamb i Arnold Robbins
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
975 Wydawca: Helion 2001 (O'Reilly) - wg 6. ang. wydania
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
976 ISBN: 83-7197-539-2
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
977 http://helion.pl/ksiazki/viedyt.htm
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
978 Rozszerzona wersja Learning the Vi Editor w polskim tłumaczeniu.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
979
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
980 Ten tutorial został napisany przez Michaela C. Pierce'a i Roberta K. Ware'a,
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
981 Colorado School of Mines korzystając z pomocy Charlesa Smitha,
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
982 Colorado State University.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
983 E-mail: bware@mines.colorado.edu.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
984
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
985 Zmodyfikowane dla Vima przez Brama Moolenaara.
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
986
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
987 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
988
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
989 Przetłumaczone przez Mikołaja Machowskiego,
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
990 Sierpień 2001,
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
991 rev. Marzec 2002
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
992 2nd rev. Wrzesień 2004
24a8f532abfc 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
1630
24a8f532abfc updated for version 7.2a
vimboss
parents:
diff changeset
995 Wszelkie uwagi proszę kierować na: mikmach@wp.pl