annotate runtime/tutor/tutor.sk.cp1250 @ 13670:3085d67d24c8 v8.0.1707

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