annotate runtime/tutor/tutor.sk @ 1030:d4bc24e6a281 v7.0.156

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