annotate runtime/tutor/tutor.sk.utf-8 @ 19542:9e428147e4ee v8.2.0328

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