annotate runtime/tutor/tutor.sk @ 33665:c75376fbe96f

Added tag v9.0.2070 for changeset 06b59278bfcfb635004809db9e7a489ed6324638
author Christian Brabandt <cb@256bit.org>
date Thu, 26 Oct 2023 22:30:04 +0200
parents 179c118424a6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1635
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
1 ===============================================================================
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
2 = V i t a j t e v o V I M T u t o r i a l i - Verzia 1.7 =
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
3 ===============================================================================
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
4
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
5 Vim je veľmi výkonný editor, ktorý má príliž veľa príkazov na to aby
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
6 mohli byt všetky popísané vo výuke akou je táto. Táto výuka
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
7 popisuje dostatočné množstvo príkazov nato aby bolo možné používať
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
8 Vim ako viacúčelový editor.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
9
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
10 Približný čas potrebný na prebratie tejto výuky je 25-30 minút,
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
11 závisí na tom, koľko je stráveného času s preskúšavaním.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
12
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
13 UPOZORNENIE:
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
14 Príkazy v lekciách modifikujú text. Vytvor kópiu tohto súboru aby
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
15 sa mohlo precvičovať na ňom (pri štarte "vimtutor" je toto kópia).
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
16
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
17 Je dôležité zapamätať si, že táto výuka je vytvorená pre výuku
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
18 používaním. To znamená, že je potrebné si príkazy vyskúšať, aby bolo
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
19 učenie správne. Ak len čitas text, príkazy zabudneš!
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
20
13231
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 3847
diff changeset
21 Presvedč sa, že Caps-Lock NIEJE stlačený a stlačt klávesu
1635
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
22 j niekoľko krát, aby sa kurzor posunul natoľko, že lekcia 1.1
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
23 celkom zaplní obrazovku.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
24
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
25 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
26 Lekcia 1.1: POHYB KURZOROM
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
27
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
28
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
29 ** Pre pohyb kurzorum stlač klávesy h,j,k,l ako je znázornené. **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
30 ^
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
31 k Funkcia: Klávesa h je naľavo a vykoná pohyb doľava.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
32 < h l > Klávesa l je napravo a vykoná pohyb doprava.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
33 j Klávesa j vyzerá ako šípka dole
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
34 v
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
35 1. Pohybuj kurzorom po obrazovke, kým si na to nezvykneš.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
36
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
37 2. Drž stlačenú klávesu pre pohyb dole (j), kým sa jej funkcia nezopakuje.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
38 ---> Teraz sa už vieš pohybovať na nasledujúcu lekciu.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
39
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
40 3. Použitím klávesy pre pohyb dole prejdi na Lekciu 1.2.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
41
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
42 Poznámka: Ak si niesi istý tým čo si napísal, stlač <ESC>
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
43 na prechod do normálneho módu.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
44
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
45 Poznámka: Kurzorové klávesy sú tiež funkčné. Ale používaním hjkl sa budeš
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
46 schopný pohybovať rýchlejšie, keď si zvykneš ich používať. Naozaj!
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
47
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
48 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
49 LEKCIA 1.2: ZATVÁRANIE VIMU
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
50
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
51
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
52 !! POZNÁMKA: Pred vykonaním týchto krokov si prečítaj celú túto lekciu !!
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
53
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
54 1. Stlač klávesu <ESC> (aby si sa učite nachádzal v normálnom móde)
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
55
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
56 2. Napíš: :q! <ENTER>.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
57 Tým ukončíš prácu s editorom BEZ uloženia zmien, ktoré si vykonal.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
58
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
59 3. Keď sa dostaneš na príkazový riadok, napíš príkaz, ktorým sa dostaneš
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
60 speť do tejto výuky. To môže byť: vimtutor <ENTER>
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
61
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
62 4. Ak si si tieto kroky spoľahlivo zapamätal, vykonaj kroky 1 až 3, pre
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
63 ukončenie a znovu spustenie editora.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
64
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
65 POZNÁMKA: :q! <ENTER> neuloží zmeny, ktoré si vykonal. O niekoľko lekcií
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
66 sa naučíš ako uložiť zmeny do súboru
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
67
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
68 5. presuň kurzor dole na lekciu 1.3.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
69
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
70 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
71 Lekcia 1.3: EDITÁCIA TEXTU - MAZANIE
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
72
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
73
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
74 ** Stlačenie klávesy x v normálnom móde zmaže znak na mieste kurzora. **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
75
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
76 1. Presuň kurzor nižšie na riadok označený značkou --->.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
77
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
78 2. Aby si mohol odstrániť chyby, pohybuj kurzorom kým neprejde na znak,
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
79 ktorý chceš zmazať.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
80
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
81 3. Stlač klávesu x aby sa zmazal nechcený znak.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
82
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
83 4. Zopakuj kroky 2 až 4 až kým veta nieje správna.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
84
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
85 ---> Kraava skoočilla ccezz mesiiac.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
86
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
87 5. Ak je veta správna, prejdi na lekciu 1.4.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
88
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
89 POZNÁMKA: Neskúšaj si zapamätať obsah tejto výuky, ale sa uč používaním.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
90
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
91
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
92
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
93 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
94 Lekcia 1.4: EDITÁCIA TEXTU - VKLADANIE
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
95
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
96
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
97 ** Stlačenie klávesy i umožňuje vkladanie textu. **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
98
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
99 1. Presuň kurzor nižšie na prvý riadok za značku --->.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
100
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
101 2. Pre upravenie prvého riadku do rovnakého tvaru ako je druhý riadok,
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
102 presuň kurzor na prvý znak za misto, kde má byť text vložený.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
103
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
104 3. Stlač klávesu i a napíš potrebný text.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
105
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
106 4. Po opravení každej chyby, stlač <ESC> pre návrat do normálneho módu.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
107 Zopakuj kroky 2 až 4 kým nieje veta správna.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
108
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
109 ---> Tu je text chýbajúci tejto.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
110 ---> Tu je nejaký text chýbajúci od tejto čiary.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
111
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
112 5. Keď sa dostatočne naučíš vkladať text, prejdi na nasledujúce zhrnutie.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
113
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
114
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
115 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
116 Lekcia 1.5: EDITÁCIA TEXTU - PRIDÁVANIE
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
117
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
118
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
119 ** Stlačenie klávesy A umožňuje pridávať text. **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
120
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
121 1. Presuň kurozr nižšie na prvý riadok za značkou --->.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
122 Nezáleží na tom, na ktorom znaku sa kurzor v tom riadku nachádza.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
123
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
124 2. Stlač klávesu A a napíš potrebný text.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
125
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
126 3. Po pridaní textu stlač klávesu <ESC> pre návrat do Normálneho módu.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
127
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
128 4. Presuň kurozr na druhý riadok označený ---> a zopakuj
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
129 kroky 2 a 3 kým nieje veta správna.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
130
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
131 ---> Tu je nejaký text chýbajúci o
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
132 Tu je nejaký text chýbajúci od tiaľto.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
133 ---> Tu tiež chýba nej
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
134 Tu tiež chýba nejaký text.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
135
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
136 5. Keď sa dostatočne naučíš pridávať text, prejdi na lekciu 1.6.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
137
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
138
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
139 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
140 Lekcia 1.6: EDITÁCIA SÚBORU
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
141
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
142
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
143 ** Napísaním :wq sa súbor uloží a zavrie **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
144
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
145 !! POZNÁMKA: Pred vykonaním týchto krokov si prečítaj celú lekciu!!
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
146
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
147 1. Opusti túto výuku, ako si to urobil v lekcii 1.2: :q!
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
148
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
149 2. Do príkazového riadku napíš príkaz: vim tutor <ENTER>
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
150 'vim' je príkaz, ktorý spustí editor Vim, 'tutor' je meno súboru,
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
151 ktorý chceš editovať. Použi taký súbor, ktorý môžeš meniť.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
152
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
153 3. Vlož a zmaž text tak, ako si sa naučil v predošlých lekciach.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
154
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
155 4. Ulož súbor so zmenami a opusti Vim príkazom: :wq <ENTER>
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
156
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
157 5. Reštartuj vimtutor a presuň sa dole na nasledujúce zhrnutie.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
158
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
159 6. Urob tak po prečítaní predošlých krokov a porozumeniu im.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
160
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
161
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
162 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
163 ZHRNUTIE LEKCIE 1
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
164
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
165
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
166 1. Kurzor sa pohybuje použitím kláves so šípkami alebo klávesmi hjkl.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
167 h (do lava) j (dole) k (hore) l (doprava)
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
168
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
169 2. Pre spustenie Vimu (z príkazového riadku) napíš: vim FILENAME <ENTER>
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
170
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
171 3. Na ukončenie Vimu napíš: <ESC> :q! <ENTER> pre zrušenie všetkých zmien
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
172 alebo napíš: <ESC> :wq <ENTER> pre uloženie zmien.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
173
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
174 4. Na zmazanie znaku na mieste kurzora napíš: x
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
175
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
176 5. Pre vloženie textu na mieste kurzora v normálnom móde napíš:
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
177 i napíš vkladaný text <ESC> vkladanie pred kurzor
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
178 A napíš pridávaný text <EXC> vkladanie za riadok
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
179
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
180 POZNÁMKA: Stlačenie <ESC> ťa premiestní do normálneho módu alebo zruší
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
181 nejaký nechcený a čiastočne dokončený príkaz.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
182
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
183 Teraz pokračuj lekciou 2.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
184
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
185
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
186 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
187 Lekcia 2.1: Mazacie príkazy
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
188
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
189
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
190 ** Napísanie príkazu dw zmaže znaky do konca slova. **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
191
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
192 1. Stlač <ESC> aby si bol bezpečne v normálnom móde.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
193
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
194 2. Presuň kurzor nižšie na riadok označený značkou --->.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
195
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
196 3. Presuň kurzor na začiatok slova, ktoré je potrebné zmazať.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
197
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
198 4. Napíš dw aby slovo zmizlo.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
199
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
200 POZNÁMKA: Písmeno d sa zobrazí na poslednom riadku obrazovky keď ho
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
201 napíšeš. Vim na teba počká, aby si mohol napísať
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
202 písmeno w. Ak vidíš niečo iné ako d , tak si napísal
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
203 nesprávny znak; stlač <ESC> a začni znova.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
204
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
205 ---> Tu je niekoľko slov zábava, ktoré nie patria list do tejto vety.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
206
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
207 5. Zopakuj kroky 3 až 4 kým veta nieje správna a prejdi na lekciu 2.2.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
208
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
209
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
210
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
211 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
212 Lekcia 2.2: VIAC MAZACÍCH PRÍKAZOV
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
213
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
214
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
215 ** Napísanie príkazu d$ zmaže znaky do konca riadku **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
216
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
217 1. Stlač <ESC> aby si bol bezpečne v normálnom móde.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
218
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
219 2. Presuň kurzor nižšie na riadok označený značkou --->.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
220
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
221 3. Presuň kurzor na koniec správnej vety (ZA prvú bodku).
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
222
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
223 4. Napíš d$ aby sa zmazali znaky do konca riadku.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
224
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
225 ---> Niekto napísal koniec tohto riadku dvakrát. koniec tohot riadku dvakrát.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
226
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
227
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
228 5. Prejdi na lekciu 2.3 pre pochopenie toho čo sa stalo.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
229
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
230
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
231 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
232 Lekcia 2.3: OPERÁTORY A POHYBY
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
233
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
234 Veľa príkazov, ktoré menia text sú odvodené od operátorov a pohybov.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
235 Formát pre príkaz mazania klávesou d je nasledovný:
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
236
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
237 d pohyb
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
238
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
239 kde:
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
240 d - je mazací operátor
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
241 pohyb - je to čo operátor vykonáva (vypísané nižšie)
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
242
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
243 Krátky list pohybov:
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
244 w - do začiatku ďalšieho slova, okrem jeho prvého písmena.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
245 e - do konca terajšieho slova, vrátane posledného znaku.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
246 $ - do konca riadku, vrátane posledného znaku
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
247
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
248 Takže napísaním de sa zmaže všetko od kurzora do konca slova.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
249
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
250 POZNÁMKA: Stlačením iba pohybu v normálnom móde bez operátora
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
251 sa presunie kurzor tak ako je to špecivikované.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
252
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
253 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
254 Lekcia 2.4: Použitie viacnásobného pohybu
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
255
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
256
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
257 ** Napísaním čísla pred pohyb ho zopakuje zadný počet krát **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
258
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
259 1. Presuň kurozr nižšie na začiatok riadku označeného --->.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
260
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
261 2. Napíš 2w a kurozr sa presunie o dve slová vpred.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
262
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
263 3. Napíš 3e a kurozr sa presunie vpred na koniec tretieho slova.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
264
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
265 4. Napíš 0 (nula) a kurozr sa presunie na začiatok riadku.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
266
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
267 5. Zopakuj kroky 2 a 3 s rôznymi číslami.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
268
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
269 ---> Toto je riadok so slovami po kotrých sa môžete pohybovať.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
270
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
271 6. Prejdi na lekciu 2.5.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
272
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
273
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
274 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
275 Lekcia 2.5: POUŽITIE VIACNÁSOBNÉHO MAZANIA PRE HROMADNÉ MAZANIE
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
276
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
277
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
278 ** Napísanie čísla spolu s operátorom ho zopakuje zadaný počet krát **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
279
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
280 V kombinácii operátorov mazania a pohybu spomínaného vyššie vlož počet
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
281 pred pohyb pre docielenie hromadného mazania:
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
282 d číslo pohyb
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
283
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
284 1. Presuň kurzor na prvé slovo písané VEĽKÝMI PÍSMENAMI
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
285 v riadku označenom --->.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
286
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
287 2. Napíš 2dw a zmažeš dve slová písané VEĽKÝMI PÍSMENAMI
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
288
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
289 3. Zopakuj kroky 1 a 2 s použitím rôzneho čísla tak aby si zmazal slová
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
290 písané veľkými písmenami jedným príkazom.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
291
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
292 ---> Tento ABC DE riadok FGHI JK LMN OP so slovamI je Q RS TUV vycisteny.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
293
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
294 POZNÁMKA: Číslo medzi operátorom d a pohybom funguje podobne ako pri
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
295 použití s pohybom bez operátora.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
296
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
297
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
298 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
299 Lekcia 2.6: OPERÁCIE S RIADKAMI
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
300
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
301
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
302 ** Napísanie príkazu dd zmaže celý riadok. **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
303
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
304 Vzhľadom na frekvenciu mazania celého riadku, sa autori Vimu rozhodli,
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
305 že bude jednoduchšie mazať celý riadok napísaním dvoch písmen d.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
306
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
307 1. Presuň kurzor na druhý riadok v texte na spodu.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
308 2. Napíš dd aby si zmazal riadok.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
309 3. Prejdi na štvrtý riadok.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
310 4. Napíš 2dd aby si zmazal dva riadky.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
311
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
312 1) Ruže sú červené,
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
313 2) Blato je zábavné,
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
314 3) Fialky sú modré,
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
315 4) Mám auto,
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
316 5) Hodinky ukazujú čas,
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
317 6) Cukor je sladký,
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
318 7) A to si ty.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
319
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
320
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
321 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
322 Lekcia 2.7: PRÍKAZ UNDO
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
323
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
324
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
325 ** Stlač u pre vrátenie posledného príkazu, U pre úpravu celého riadku. **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
326
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
327 1. Presuň kurzor nižšie na riadok označený značkou ---> a premiestni ho na
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
328 prvú chybu.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
329 2. Napíš x pre zmazanie prvého nechceného riadku.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
330 3. Teraz napíš u čím vrátíš späť posledne vykonaný príkaz.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
331 4. Teraz oprav všetky chyby na riadku použitím príkazu x .
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
332 5. Teraz napíš veľké U čím vrátíš riadok do pôvodného stavu.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
333 6. Teraz napíš u niekoľko krát, čím vrátíš späť príkaz U.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
334 7. Teraz napíš CTRL-R (drž klávesu CTRL stlačenú kým stláčaš R) niekoľko
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
335 krát, čím vrátíš späť predtým vrátené príkazy (undo z undo).
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
336
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
337 ---> Opprav chybby nna toomto riadku a zmeeň ich pommocou undo.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
338
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
339 8. Tieto príkazy sú často používané. Teraz prejdi na zhrnutie lekcie 2.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
340
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
341
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
342
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
343
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
344 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
345 LEKCIA 2 ZHRNUTIE
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
346
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
347
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
348 1. Pre zmazanie znakov od kurzora do konca slova napíš: dw
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
349
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
350 2. Pre zmazanie znakov od kurzora do konca riadku napíš: d$
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
351
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
352 3. Pre zmazanie celého riadku napíš: dd
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
353
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
354 4. Pre zopakovanie pohybu, napíš pred neho číslo: 2w
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
355
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
356 5. Formát pre píkaz:
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
357
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
358 operátor [číslo] pohyb
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
359 kde:
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
360 operátor - čo treba robiť, napríklad d pre zmazanie
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
361 [číslo] - je voliteľný počet pre opakovanie pohybu
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
362 pohyb - pohyb po texte vzhľadom na operátor, napríklad w (slovo),
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
363 $ (do konca riadku), atď.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
364
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
365 6. Pre pohyb na začiatok riadku použi nulu: 0
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
366
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
367 7. Pre vrátenie späť predošlej operácie napíš: u (malé u)
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
368 Pre vrátenie všetkých úprav na riadku napíš: U (veľké U)
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
369 Pre vrátenie vrátených úprav napíš: CTRL-R
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
370
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
371 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
372 Lekcia 3.1: PRÍKAZ VLOŽIŤ
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
373
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
374
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
375 ** Napísanie príkazu p vloží psledný výmaz za kurzor. **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
376
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
377 1. Presuň kurzor nižšie na prvý riadok textu.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
378
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
379 2. Napíš dd čím zmažeš riadok a uložíš ho do buffera editora Vim.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
380
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
381 3. Presuň kurzor vyššie tam, kam zmazaný riadok patrí.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
382
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
383 4. Ak napíšeš v normálnom móde p zmazaný riadk sa vloží.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
384
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
385 5. Zopakuj kroky 2 až 4, kým riadky niesú v správnom poradí.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
386
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
387 ---> d) Tiež sa dokážeš vzdelávať?
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
388 ---> b) Fialky sú modré,
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
389 ---> c) Inteligencia sa vzdeláva,
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
390 ---> a) Ruže sú červené,
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
391
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
392
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
393
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
394 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
395 Lekcia 3.2: PRÍKAZ NAHRADENIA
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
396
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
397
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
398 ** Napísaním rx sa nahradí znak na mieste kurzora znakom x . **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
399
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
400 1. Presuň kurzor nižšie na prví riadok textu označeného značkou --->.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
401
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
402 2. Presuň kurzor na začiatok prvej chyby.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
403
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
404 3. napíš r a potom znak, ktorý tam má byť.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
405
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
406 4. Zopakuj kroky 2 a 3, kým prvý riadok nieje zhodný s druhým.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
407
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
408 ---> Kaď bol tento riasok píaaný, niekro stlašil nesprábne klávesy!
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
409 ---> Keď bol tento riadok písaný, niekto stlačil nesprávne klávesy!
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
410
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
411 5. Teraz prejdi na lekciu 3.2.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
412
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
413 POZNÁMKA: Pamätaj si, že naučiť sa môžeš len používanim, nie pamätaním.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
414
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
415
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
416
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
417 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
418 Lekcia 3.3. PRÍKAZ ÚPRAVY
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
419
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
420
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
421 ** Ak chceš zmeniť časť slova do konca slova, napíš ce . **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
422
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
423 1. Presuň kurzor nižšie na prvý riadok označený značkou --->.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
424
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
425 2. Umiestni kurzor na písmeno o v slove rosfpl.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
426
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
427 3. Napíš ce a oprav slovo (v tomto prípade napíš 'iadok'.)
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
428
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
429 4. Stlač <ESC> a prejdi na ďalší znak, ktorý treba zmeniť.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
430
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
431 5. Zopakuj kroky 3 a 4, kým prvá veta nieje rovnaká ako druhá.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
432
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
433 ---> Tento rosfpl má niekoľko skic, ktoré je pirewvbí zmeniť piyťučán príkazu.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
434 ---> Tento riadok má niekoľko slov, ktoré je potrebné zmeniť použitím príkazu.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
435
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
436 Poznámka, že ce zmaže slovo a nastaví vkladací mód.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
437
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
438
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
439
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
440 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
441 Lekcia 3.4: VIAC ZMIEN POUŽITÍM c
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
442
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
443
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
444 ** Príkaz pre úpravy sa používa s rovnakými pohybmi ako pre mazanie **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
445
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
446 1. Príkaz pre úpravy pracuje rovnako ako pre mazanie. Formát je:
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
447
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
448 c [číslo] pohyb
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
449
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
450 2. Pohyby sú rovnaké, ako napríklad w (slovo) a $ (koniec riadku).
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
451
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
452 3. Presuň kurzor nižšie na prvý riadok označený značkou --->.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
453
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
454 4. Presuň kurzor na prvú chybu.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
455
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
456 5. napíš c$ aby si mohol upraviť zvyšok riadku podľa druhého
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
457 a stlač <ESC>.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
458
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
459 ---> Koniec tohto riadku potrebuje pomoc, aby bol ako druhy.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
460 ---> Koniec tohto riadku potrebuje opraviť použitím príkazu c$ .
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
461
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
462 POZNÁMKA: Môžeš použiť klávesu backspace na úpravu zmien počas písania.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
463
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
464
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
465 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
466 LEKCIA 3 ZHRNUTIE
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
467
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
468
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
469 1. Na vloženie textu, ktorý už bol zmazaný, napíš p . To vloží zmazaný
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
470 text ZA kurzor (ak bol riadok zmazaný prejde na riadok pod kurzorom).
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
471
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
472 2. Pre naradenie znaku na mieste kurzora, napíš r a potom znak, ktorý
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
473 nahradí pôvodný znak.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
474
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
475 3. Príkaz na upravenie umožňuje zmeniť od kurzora až po miesto, ktoré
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
476 určuje pohyb. napr. Napíš ce čím zmníš text od pozície
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
477 kurzora do konca slova, c$ zmení text do konca riadku.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
478
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
479 4. Formát pre nahradenie je:
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
480
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
481 c [číslo] pohyb
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
482
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
483
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
484 Teraz prejdi na nalsedujúcu lekciu.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
485
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
486
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
487
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
488 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
489 Lekcia 4.1: POZÍCIA A STATUS SÚBORU
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
490
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
491
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
492 ** Stlač CTRL-g pre zobrazenie svojej pozície v súbore a statusu súboru.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
493 Napíš G pre presun na riadok v súbore. **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
494
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
495 Poznámka: Prečítaj si celú túto lekciu skôr ako začneš vykonávať kroky!!
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
496
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
497 1. Drž stlačenú klávesu Ctrl a stlač g . Toto nazývame CTRL-G.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
498 Na spodu obrazovky sa zobrazí správa s názvom súboru a pozíciou
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
499 v súbore. Zapamätajsi si číslo riadku pre použitie v kroku 3.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
500
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
501 2. Stlač G čím sa dostaneš na spodok súboru.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
502 Napíš gg čím sa dostaneš na začiatok súboru.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
503
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
504 3. Napíš číslo riadku na ktorom si sa nachádzal a stlač G. To ťa
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
505 vráti na riadok, na ktorom si prvý krát stlačil CTRL-G.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
506
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
507 4. Ak sa cítíš schopný vykonať teto kroky, vykonaj kroky 1 až 3.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
508
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
509
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
510
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
511 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
512 Lekcia 4.2: PRÍKAZ VYHĽADÁVANIA
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
513
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
514
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
515 ** Napíš / nasledované reťazcom pre vyhľadanie príslušného reťazca. **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
516
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
517 1. Napíš znak / v normálnom móde. Poznámka, že tento znak sa spolu
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
518 s kurzorom zobrazí v dolnej časti obrazovky s : príkazom.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
519
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
520 2. Teraz napíš 'errroor' <ENTER>. To je slovo, ktoré chceš vyhľadať.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
521
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
522 3. Pre vyhľadanie ďalšieho výskytu rovnakého reťazca, stlač jednoducho n.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
523 Pre vyhľadanie ďalšieho výskytu rovnakého reťazca opačným smerom,
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
524 N.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
525
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
526 4. Ak chceš vyhľadať reťazec v spätnom smere, použí príkaz ? miesto
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
527 príkazu /.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
528
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
529 5. Pre návrat na miesto z ktorého si prišiel stlač CTRL-O (drž stlačenú
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
530 klávesu Ctrl počas stlačenia klávesy o). Zopakuj pre ďalší návrat
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
531 späť. CTRL-I ide vpred.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
532
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
533 POZNÁMKA: "errroor" nieje spôsob hláskovania error; errroor je error.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
534 POZNÁMKA: Keď vyhľadávanie dosiahne koniec tohto súboru, bude pokračovať na
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
535 začiatku, dokiaľ nieje resetované nastavenie 'wrapscan' .
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
536
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
537
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
538 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
539 Lekcia 4.3: VYHĽADÁVANIE ZODPOVEDAJÚCICH ZÁTAVORIEK
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
540
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
541
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
542 ** Napíš % pre vyhľadanie príslušného znaku ),], alebo } . **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
543
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
544 1. Premiestni kurzor na hocaký zo znakov (, [, alebo { v riadku nižšie
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
545 označeného značkou --->.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
546
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
547 2. Teraz napíš znak % .
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
548
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
549 3. Kurzor sa premiestni na zodpovedajúcu zátvorku.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
550
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
551 4. Napíš % pre presun kurzoru späť na otvárajúcu zátvorku.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
552
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
553 5. Presuň kurzor na iný zo znakov (,),[,],{ alebo } a všimni si
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
554 čo % vykonáva.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
555
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
556 ---> Toto ( je testovací riadok s ('s, ['s ] a {'s } v riadku. ))
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
557
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
558 Poznámka: Toto je veľmi výhodné použíť pri ladení programu s chýbajúcimi
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
559 uzatvárajúcimi zátvorkami!
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
560
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
561
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
562
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
563 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
564 Lekcia 4.4: PRÍKAZ NAHRADENIA
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
565
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
566
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
567 ** Napíš :s/starý/nový/g pre nahradenie slova 'starý' za slovo 'nový'. **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
568
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
569 1. Presuň kurzor nižšie na riadok označený značkou --->.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
570
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
571 2. Napíš :s/thee/the <ENTER> . Poznamka, že tento príkaz zmení len prvý
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
572 výskyt "thee" v riadku.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
573
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
574 3. Teraz napíš :s/thee/the/g čo znamená celkové nahradenie v riadku.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
575 Toto nahradí všetky výskyty v riadku.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
576
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
577 ---> Thee best time to see thee flowers in thee spring.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
578
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
579 4. Pre zmenu všetkých výskytov daného reťazca medzi dvomi ridakami,
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
580 napíš :#,#s/starý/nový/g kde #,# sú čísla dvoch riadkov, v rozsahu
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
581 ktorých sa nahradenie vykoná.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
582 napíš :%s/starý/nový/g pre zmenu všetkých výskytov v celom riadku
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
583 napíš :%s/starý/nový/gc nájde všetky výskyty v celom súbore,
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
584 s otázkou či nahradiť alebo nie
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
585
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
586
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
587
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
588 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
589 LEKCIA 4 ZHRNUTIE
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
590
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
591
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
592 1. CTRL-g vypíše tvoju pozíciu v súbore a status súboru.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
593 G ťa premiestni na koniec riadku.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
594 číslo G ťa premiestni na riadok s číslom.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
595 gg ťa presunie na prvý riadok
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
596
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
597 2. Napísanie / nasledované reťazcom vyhľadá reťazec smerom DOPREDU.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
598 Napísanie ? nasledované reťazcom vyhľada reťazec smerom DOZADU.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
599 Napísanie n po vyhľadávaní, vyhľadá nasledujúci výskyt reťazca
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
600 v rovnakom smere, pričom N vyhľadá v opačnom smere.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
601 CTRL-O ťa vráti späť na staršiu pozíciu, CTRL-I na novšiu pozíciu.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
602
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
603 3. Napísanie % keď kurzor je na (,),[,],{, alebo } nájde zodpovdajúcu
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
604 párnu zátvorku.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
605
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
606 4. Pre nahradenie nového za prvý starý v riadku napíš :s/starý/nový
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
607 Pre nahradenie nového za všetky staré v riadku napíš :s/starý/nový/g
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
608 Pre nahradenie reťazcov medzi dvoma riadkami 3 napíš :#,#/starý/nový/g
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
609 Pre nahradenie všetkých výskytov v súbore napíš :%s/starý/nový/g
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
610 Pre potvrdenie každého nahradenia pridaj 'c' :%s/starý/nový/gc
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
611
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
612
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
613 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
614 Lekcia 5.1 AKO SPUSTIŤ VONKAJŠÍ PRÍKAZ
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
615
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
616
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
617 ** Napíš príkaz :! nasledovaný vonkajším príkazom pre spustenie príkazu **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
618
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
619 1. Napíš obvyklý píkaz : ktorý nastaví kurzor na spodok obrazovky.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
620 To umožní napísať príkaz.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
621
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
622 2. Teraz napíš ! (výkričník). To umožní spustiť hociaký vonkajší príkaz
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
623 z príkazového riadku.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
624
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
625 3. Ako príklad napíš ls za ! a stlač <ENTER>. Tento príkaz
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
626 zobrazí obsah tvojho adresára rovnako ako na príkazovom riadku.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
627 Alebo použi :!dir ak ls nefunguje.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
628
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
629 Poznámka: Takto je možné spustiť hociaký vonkajší príkaz s argumentami.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
630 Poznámka: Všetky príkazy : musia byť dokončené stlačením <ENTER>
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
631
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
632
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
633
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
634
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
635 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
636 Lekcia 5.2: VIAC O UKLADANÍ SÚBOROV
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
637
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
638
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
639 ** Pre uloženie zmien v súbore, napíš :w FILENAME. **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
640
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
641 1. Napíš :!dir alebo :!ls pre výpis aktuálneho adresára.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
642 Už vieš, že musíš za týmto stlačiť <ENTER> .
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
643
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
644 2. Vyber názov súboru, ktorý ešte neexistuje, ako napr. TEST.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
645
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
646 3. Teraz napíš: :w TEST (kde TEST je názov vybratého súboru.)
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
647
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
648 4. To uloží celý súbor (Vim Tutor) pod názovm TEST.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
649 Pre overenie napíš :!dir , čím zobrazíš obsah adresára.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
650
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
651 Poznámka: že ak ukončíš prácu s editorom Vim a znovu ho spustíš príkazom
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
652 vim TEST, súbor bude kópia výuky, keď si ho uložil.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
653
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
654 5. Teraz odstráň súbor napísaním (MS-DOS): :!del TEST
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
655 alebo (Unix): :!rm TEST
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
656
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
657
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
658 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
659 Lekcia 5.3 VÝBER TEXTU PRE ULOŽENIE
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
660
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
661
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
662 ** Pre uloženie časti súboru, napíš v pohyb :w FILENAME **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
663
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
664 1. Presuň kurozr na tento riadok.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
665
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
666 2. Stlač v a presuň kurozr na piatu položku dole. Poznámka, že
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
667 tento text je vyznačený (highlighted).
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
668
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
669 3. Stlač klávesu : . V spodnej časti okna sa objaví :'<,'>.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
670
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
671 4. Napíš w TEST , kde TEST je meno súboru, ktorý zatial neexistuje.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
672 Skontroluj, e vidíš :'<,'>w TEST predtým než stlačíš Enter.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
673
3847
1003f9b262d7 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1635
diff changeset
674 5. Vim zapíše označené riadky do súboru TEST. Použi :!dir alebo :!ls
1635
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
675 pre overenie. Zatial ho ešte nemaž! Použijeme ho v ďalšej lekcii.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
676
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
677 POZNÁMKA: Stlačením klávesy v sa spustí vizuálne označovanie.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
678 Môžeš pohybovať kurzorom pre upresnenie vyznačeného textu.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
679 Potom môžeš použiť operátor pre vykonanie nejakej akcie
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
680 s textom. Napríklad d zmaže vyznačený text.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
681
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
682
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
683 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
684 Lekcia 5.4: VÝBER A ZLUČOVANIE SÚBOROV
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
685
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
686
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
687 ** Pre vloženie obsahu súboru, napíš :r FILENAME **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
688
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
689 1. Premiestni kurzor nad tento riadok.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
690
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
691 POZNÁMKA: Po vykonaní kroku 2 uvidíš text z lekcie 5.3. Potom sa presuň
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
692 dole, aby si videl túto lekciu.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
693
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
694 3. Teraz vlož súbor TEST použitím príkazu :r TEST kde TEST je názov
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
695 súboru. Súbor, ktorý si použil je umiestnený pod riadkom s kurzorom.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
696
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
697 POZNÁMKA: Môžeš tiež načítať výstup vonkajšieho príkazu. Napríklad :r !ls
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
698 načíta výstup príkazu ls a umiestni ho za pozíciu kurzora.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
699
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
700
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
701 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
702 LEKCIA 5 ZHRNUTIE
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
703
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
704
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
705 1. :!príkaz spustí vonkajší príkaz.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
706
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
707 Niektoré využiteľné príklady sú:
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
708 (MS_DOS) (UNIX)
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
709 :!dir :!ls - zobrazí obsah adresára
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
710 :!del FILENAME :!rm FILENAME - odstráni súbor FILENAME
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
711
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
712 2. :w FILENAME uloží aktuálny súbor na disk pod menom FILENAME.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
713
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
714 3. v pohyb :w FILENAME uloží vizuálne označené riadky do
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
715 súboru FILENAME.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
716
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
717 4. :r FILENAME vyberie z disku súbor FILENAME a vloží ho do aktuálneho
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
718 súboru za pozíciou kurzora.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
719
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
720 5. :r !dir načíta výstup z príkazu dir a vloží ho za pozíciu kurzora.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
721
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
722
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
723
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
724 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
725 Lekcia 6.1: PRÍKAZ OTVORIŤ
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
726
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
727
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
728 ** Napíš o pre vloženie riadku pod kurzor a prepnutie do vkladacieho módu **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
729
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
730 1. Presuň kurzor nižšie na riadok označený značkou --->.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
731
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
732 2. Napíš o (malé písmeno) pre vloženie čistého riadku pod kurzorm
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
733 a prepnutie do vkladacieho módu.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
734
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
735 3. Teraz skopíruj riadok označený ---> a stlač <ESC> pre ukončenie
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
736 vkladacieho módu.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
737
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
738 ---> Po napísaní o sa kurzor premiestní na vložený riadok do vkladacieho
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
739 módu.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
740
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
741 4. Pre otvorenie riadku nad kurzorom, jednotucho napíš veľké O ,
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
742 namiesto malého o. Vyskúšaj si to na riadku dole.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
743
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
744 ---> Vlož riadok nad týmto napísaním O, keď kurzor je na tomto riadku.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
745
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
746
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
747
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
748 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
749 Lekcia 6.2: PRÍKAZ PRIDAŤ
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
750
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
751
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
752 ** Napíš a pre vloženie textu ZA kurzor. **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
753
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
754 1. Presuň kurzor nižšie na koniec prvého riadku označeného značkou --->
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
755
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
756 2. Stlač klávesu e dokiaľ kurozr nieje na konci riadku.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
757
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
758 3. Napíš a (malé písmeno) pre pridanie textu ZA kurzorom.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
759
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
760 4. Dokončí slovo tak ako je to v druhom riadku. Stlaš <ESC> pre
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
761 opustenie vkladacieho módu.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
762
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
763 5. Použi e na presun na ďalšie nedokončené slovo a zopakuj kroky 3 a 4.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
764
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
765 ---> Tento ri ti dovoľuje nácv priávan testu na koniec riadku.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
766 ---> Tento riadok ti dovoľuje nácvik pridávania textu na koniec riadku.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
767
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
768 POZNÁMKA: a, i, A štartujú rovnaký vkladací mód, jediný rozidel je, kde
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
769 sa znaky vkladajú.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
770
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
771
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
772 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
773 Lekcia 6.3: INÝ SPOSOB NAHRADZOVANIA
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
774
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
775
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
776 ** Napíš veľké R pre nahradenie viac ako jedného znaku. **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
777
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
778 1. Presuň kurzor nižšie na prvý riadok označený značkou --->. Premiestni
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
779 kurzor na začiatok prvého výskytu xxx.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
780
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
781 2. Teraz napíš R a napíš číslo uvedené v druhom riadku, takže
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
782 sa ním nahradí pôvodné xxx.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
783
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
784 3. Stlač <ESC> pre opustenie nahradzovacieho módu. Poznámka, že zvyšok
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
785 riadku zostane nezmenený.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
786
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
787 4. Zopakuj tieto kroky pre nahradenie zvyšných xxx.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
788
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
789 ---> Pridaním 123 ku xxx dostaneš xxx.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
790 ---> Pridaním 123 ku 456 dostaneš 579.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
791
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
792 POZNÁMKA: Nahradzovací mód je ako vkladací mód, ale každý napísaný znak
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
793 zmaže existujúci znak.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
794
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
795
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
796 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
797
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
798 Lekcia 6.4: Copy Paste textu
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
799
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
800 ** použí operátor y pre copy textku a p pre jeho paste **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
801
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
802 1. Choď nižšie na riadok označený ---> a umiestni kurozr za "a)".
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
803
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
804 2. Naštartuj vizuálny mód použitím v a presuň kurozr pred "first".
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
805
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
806 3. Napíš y pre vystrihnutie (copy) označeného textu.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
807
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
808 4. Presuň kurozr na koniec ďalšieho riadku: j$
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
809
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
810 5. Napíš p pre vložnie (paste) textu. Potom napíš: a druha <ESC>.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
811
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
812 6. Použi vizuálny mód pre označenie "položka.", vystrihni to
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
813 použitím y, presuň sa na koniec nasledujúceho riadku použitím j$
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
814 a vlož sem text použitím p.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
815
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
816 ---> a) toto je prvá položka
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
817 ---> b)
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
818
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
819 POZNÁMKA: Môžeš použiť tiež y ako operátor; yw vystrihne jedno slovo.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
820
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
821
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
822 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
823 Lekcia 6.5: NASTAVENIE MOŽNOSTÍ
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
824
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
825
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
826 ** Nastav možnosti, takže vyhľadávanie alebo nahradzovanie ignoruje
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
827 rozlišovanie **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
828
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
829
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
830 1. Vyhľadaj reťazec 'ignore' napísaním:
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
831 /ignore <ENTER>
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
832 Zopakuj vyhľadávanie niekoľko krát stlačením klávesy n .
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
833
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
834 2. Nastav možnosť 'ic' (Ignore case) napísaním príkazu:
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
835 :set ic
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
836
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
837 3. Teraz vyhľadaj reťazec 'ingore' znova stlačením klávesy n
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
838 Poznámka, že teraz sú vyhľadané aj Ignore a IGNORE.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
839
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
840 4. Nastav možnosťi 'hlsearch' a 'incsearch':
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
841 :set hls is
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
842
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
843 5. Teraz spusti vyhľadávací príkaz znovu, a pozri čo sa stalo:
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
844 /ignore <ENTER>
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
845
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
846 6. Pre opetovné zapnutie rozlyšovania veľkých a malých písmen
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
847 napíš: :set noic
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
848
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
849 POZNÁMKA: Na odstránenie zvýraznenia výrazov napíš: :nohlsearch
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
850 POZNÁMKA: Ak chceš nerozlyšovať veľkosť písmen len pre jedno
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
851 použitie vyhľadávacieho príkazu, použi \c: /ignore\c <ENTER>
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
852
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
853 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
854 LEKCIA 6 ZHRNUTIE
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
855
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
856
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
857 1. Napíš o pre otvorenie riadku pod kurzorom a štart vkladacieho módu.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
858 Napíš O pre otvorenie riadku nad kurzorom.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
859
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
860 2. Napíš a pre vkladanie textu ZA kurzor.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
861 Napíš A pre vkladanie textu za koncom riadku.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
862
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
863 3. Príkaz e presunie kurozr na koniec slova
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
864
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
865 4. Operátor y vystrihne (skopíruje) text, p ho vloží.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
866
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
867 5. Napísanie veľkého R prepne do nahradzovacieho módu, kým nieje
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
868 stlačené <ESC>.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
869
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
870 6. Napísanie ":set xxx" nastaví možnosť "xxx". Niektoré nastavenia sú:
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
871 'ic' 'ignorecase' ignoruje veľké a malé písmená počas vyhľadávania.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
872 'is' 'incsearch' zobrazuje čiastočné reťazce vyhľadávaného reťazca.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
873 'hls' 'hlsearch' vyznačí všetky vyhľadávané reťazce.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
874 Môžeš použiť hociktorý z dlhých a krátkych názvov možností.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
875
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
876 7. Vlož "no" pred nastavenie pre jeho vypnutie: :set noic
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
877
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
878
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
879
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
880
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
881
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
882
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
883
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
884 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
885 LEKCIA 7.1: ZÍSKANIE NÁPOVEDY
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
886
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
887
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
888 ** Používaj on-line systém nápovedy **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
889
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
890 Vim má obsiahly on-line systém nápovedy. Pre odštartovanie, vyskúšaj jeden
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
891 z týchto troch:
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
892 - stlač klávesu <HELP> (ak nejakú máš)
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
893 - stlač klávesu <F1> (ak nejakú máš)
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
894 - napíš :help <ENTER>
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
895
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
896 Čítaj text v okne nápovedy pre získanie predstavy ako nápoveda funguje.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
897 Napíš CTRL-W CTRL-W pre skok z jedného okna do druhého.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
898 Napíš :q <ENTER> čím zatvoríš okno nápovedy.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
899
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
900 Môžeš nájsť help ku hociakej téme pridaním argumentu ku príkazu ":help".
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
901 Vyskúšaj tieto (nezabudni stlačiť <ENTER>):
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
902
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
903 :help w
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
904 :help c_CTRL-D
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
905 :help insert-index
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
906 :help user-manual
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
907
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
908
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
909 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
910 LEKCIA 7.2: VYTVORENIE ŠTARTOVACIEHO SKRIPTU
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
911
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
912 ** Zapni funkcie editora Vim **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
913
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
914 Vim má omnoho viac funkcii než Vi, ale večšina z nich je implicitne
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
915 vypnutá. Pre používanie viac Vim funkcii vytvor "vimrc" súbor.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
916
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
917 1. Začni editovať "vimrc" súbor, to závisí na použitom systéme:
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
918 :e ~/.vimrc pre Unix
24751
e69e7133c9cf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 13231
diff changeset
919 :e ~/_vimrc pre MS-Windows
1635
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
920
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
921 2. Teraz si prečítaj text príkladu "vimrc" súboru:
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
922
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
923 :r $VIMRUNTIME/vimrc_example.vim
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
924
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
925 3. Ulož súbor:
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
926 :w
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
927
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
928 Pri nasledujúcom štarte editora Vim sa použije zvýrazňovanie syntaxe.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
929 Do "vimrc" súboru môžeš pridať všetky svoje uprednostňované nastavenia.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
930 Pre viac informácii napíš :help vimrc-intro
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
931
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
932 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
933
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
934 LEKCIA 7.3 DOKONČENIE
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
935
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
936 ** Dokonči príkaz na príkazovom riadku použitím CTRL-D a <TAB> **
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
937
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
938 1. Uisti sa, že Vim nieje v kompatibilnom móde: :set nocp
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
939
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
940 2. Pozri sa aké súbory sa nachádzajú v adresári: :!ls alebo :!dir
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
941
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
942 3. Napíš začiatok príkazu: :e
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
943
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
944 4. Stlač CTRL-D a Vim zobrazí zoznam príkazov začínajúcich "e".
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
945
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
946 5. Stlač <TAB> a Vim dokončí meno príkazu na ":edit".
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
947
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
948 6. Teraz pridaj medzerník a začiatok mena existujúceho súboru:
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
949 :edit FIL
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
950
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
951 7. Stlač <TAB>. Vim dokončí meno (ak je jedinečné).
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
952
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
953 POZNÁMKA: Dokončovanie funguje pre veľa príkazov. Vyskúšaj stlačenie
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
954 CTRL-D a <TAB>. Špeciálne je to užitočné pre príkaz :help.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
955
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
956
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
957 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
958
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
959 LEKCIA 7 ZHRNUTIE
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
960
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
961 1. Napíš :help alebo stlač <F1> alebo <Help> pre otvorenie okna nápovedy.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
962
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
963 2. Napíš :help príkaz pre vyhľadanie nápovedy ku príkazu príkaz.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
964
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
965 3. Napíš CTRL-W CTRL-W na preskočenie do iného okna.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
966
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
967 4. Napíš :q pre zatvorenie okna nápovedy
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
968
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
969 5. Vytvor štartovací skript vimrc pre udržanie uprednostňovaných nastavení.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
970
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
971 6. Počas písania príkazu : stlač CTRL-D pre zobrazenie dokončení.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
972 Stlač <TAB> pre použitie jedného z dokončení.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
973
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
974
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
975 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
976
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
977
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
978
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
979 Toto vymedzuje výuku Vimu. Toto je určené pre strucný prehľad o editore
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
980 Vim, úplne postačujúce pre ľahké a obstojné používanie tohto editora.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
981 Táto výuka je ďaleko od kompletnosti, pretože Vim má omnoho viacej príkazov.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
982 Ako ďalšie si prečítaj užívatľský manuál: ":help user-manual".
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
983
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
984 Pre ďalšie čítanie a štúdium je odporúčaná kniha:
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
985 Vim - Vi Improved - od Steve Oualline
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
986 Vydavateľ: New Riders
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
987 Prvá kniha určená pre Vim. Špeciálne vhodná pre začiatočníkov.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
988 Obsahuje množstvo príkladov a obrázkov.
27623
179c118424a6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24751
diff changeset
989 Pozri na https://iccf-holland.org/click5.html
1635
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
990
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
991 Táto kniha je staršia a je viac o Vi ako o Vim, ale je tiež odporúčaná:
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
992 Learning the Vi Editor - od Linda Lamb
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
993 Vydavateľ: O'Reilly & Associates Inc.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
994 Je to dobrá kniha pre získanie vedomostí o práci s editorom Vi.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
995 Šieste vydanie obsahuje tiež informácie o editore Vim.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
996
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
997 Táto výuka bola napísaná autormi Michael C. Pierce a Robert K. Ware,
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
998 Colorado School of Mines s použitím myšlienok dodanými od Charles Smith,
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
999 Colorado State University. E-mail: bware@mines.colorado.edu.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
1000
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
1001 Modifikované pre Vim od Bram Moolenaar.
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
1002
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
1003 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
1004
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
1005 Preklad do Slovenčiny: Ľuboš Čelko
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
1006 e-mail: celbos@inmail.sk
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
1007 Last Change: 2006 Apr 18
fa62a64e45be updated for version 7.2a
vimboss
parents:
diff changeset
1008 encoding: iso8859-2