annotate runtime/tutor/tutor.hr.utf-8 @ 34625:ad1b0609b2f8 v9.1.0201

patch 9.1.0201: gM not working correctly with virt text Commit: https://github.com/vim/vim/commit/366c81a2005370ac738618d889ec0337397a9f96 Author: Dylan Thacker-Smith <dylan.ah.smith@gmail.com> Date: Sun Mar 24 09:46:56 2024 +0100 patch 9.1.0201: gM not working correctly with virt text Problem: `gM` would include outer virtual text and its padding when getting the line length used to calculate the middle of the line, putting the cursor much closer to virtual text lines. Solution: Exclude outer virtual text in getting the line length for `gM`, so that virtual text doesn't influence where the cursor is moved to (Dylan Thacker-Smith). closes: #14262 Signed-off-by: Dylan Thacker-Smith <dylan.ah.smith@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 24 Mar 2024 10:00:07 +0100
parents 179c118424a6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
1 ===============================================================================
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
2 = D o b r o d o š l i u VIM p r i r u č n i k - Verzija 1.7 =
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
3 ===============================================================================
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
4
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
5 Vim je vrlo moćan editor koji ima mnogo naredbi, previše da bi ih
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
6 se svih ovdje spomenulo. Namjena priručnika je objasniti dovoljno
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
7 naredbi kako bi početnici znatno lakše koristili ovaj svestran editor.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
8
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
9 Približno vrijeme potrebno za uspješan završetak priručnika je oko
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
10 30 minuta a ovisi o tome koliko će te vremena odvojiti za vježbanje.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
11
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
12 UPOZORENJE:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
13 Naredbe u ovom priručniku će promijeniti ovaj tekst.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
14 Napravite kopiju ove datoteke kako bi ste na istoj vježbali
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
15 (ako ste pokrenuli "vimtutor" ovo je već kopija).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
16
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
17 Vrlo je važno primijetiti da je ovaj priručnik namijenjen za vježbanje.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
18 Preciznije, morate izvršiti naredbe u Vim-u kako bi ste iste naučili
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
19 pravilno koristiti. Ako samo čitate tekst, zaboraviti će te naredbe!
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
20
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
21 Ako je CapsLock uključen ISKLJUČITE ga. Pritiskajte tipku j kako
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
22 bi pomakli kursor sve dok Lekcija 1.1 ne ispuni ekran.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
23
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
24 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
25 Lekcija 1.1: POMICANJE KURSORA
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
26
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
27
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
28 ** Za pomicanje kursora, pritisnite h,j,k,l tipke kako je prikazano **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
29 ^
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
30 k Savjet: h tipka je lijevo i pomiče kursor lijevo.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
31 < h l > l tipka je desno i pomiče kursor desno.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
32 j j izgleda kao strelica usmjerena dolje.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
33 v
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
34 1. Pomičite kursor po ekranu dok se ne naviknete na korištenje.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
35
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
36 2. Držite tipku (j) pritisnutom.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
37 Sada znate kako doći do sljedeće lekcije.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
38
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
39 3. Koristeći tipku j prijeđite na sljedeću lekciju 1.2.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
40
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
41 NAPOMENA: Ako niste sigurni što ste zapravo pritisnuli uvijek koristite
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
42 tipku <ESC> kako bi prešli u Normal mod i onda pokušajte ponovno.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
43
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
44 NAPOMENA: Kursorske tipke rade isto. Korištenje hjkl tipaka je znatno
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
45 brže, nakon što se jednom naviknete na njihovo korištenje. Stvarno!
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
46
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
47 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
48 Lekcija 1.2: IZLAZ IZ VIM-a
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
49
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
50
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
51 !! UPOZORENJE: Prije izvođenja bilo kojeg koraka,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
52 pročitajte cijelu lekciju!!
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
53
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
54 1. Pritisnite <ESC> tipku (Vim je sada u Normal modu).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
55
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
56 2. Otipkajte: :q! <ENTER>.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
57 Izlaz iz editora, GUBE se sve napravljene promjene.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
58
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
59 3. Kada se pojavi ljuska, utipkajte naredbu koja je pokrenula
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
60 ovaj priručnik: vimtutor <ENTER>
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
61
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
62 4. Ako ste upamtili ove korake, izvršite ih redom od 1 do 3
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
63 kako bi ponovno pokrenuli editor.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
64
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
65 NAPOMENA: :q! <ENTER> poništava sve promjene koje ste napravili.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
66 U sljedećim lekcijama naučit će te kako promjene sačuvati.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
67
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
68 5. Pomaknite kursor na Lekciju 1.3.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
69
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
70 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
71 Lekcija 1.3: PROMJENA TEKSTA - BRISANJE
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
72
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
73
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
74 ** Pritisnite x za brisanje znaka pod kursorom. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
75
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
76 1. Pomaknite kursor na liniju označenu s --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
77
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
78 2. Kako bi ste ispravili pogreške, pomičite kursor dok se
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
79 ne bude nalazio na slovu kojeg trebate izbrisati.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
80
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
81 3. Pritisnite tipku x kako bi uklonili neželjeno slovo.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
82
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
83 4. Ponovite korake od 2 do 4 dok ne ispravite sve pogreške.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
84
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
85 ---> KKKravaa jee presskočila mmjeseccc.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
86
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
87 5. Nakon što ispravite liniju, prijeđite na lekciju 1.4.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
88
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
89 NAPOMENA: Koristeći ovaj priručnik ne pokušavajte pamtiti
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
90 već učite primjenom.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
91
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
92
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
93 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
94 Lekcija 1.4: PROMJENA TEKSTA - UBACIVANJE
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
95
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
96
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
97 ** Pritisnite i za ubacivanje teksta ispred kursora. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
98
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
99 1. Pomaknite kursor na prvu sljedeću liniju označenu s --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
100
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
101 2. Kako bi napravili prvu liniju istovjetnoj drugoj, pomaknite
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
102 kursor na prvi znak POSLIJE kojeg će te utipkati potreban tekst.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
103
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
104 3. Pritisnite i te utipkajte potrebne nadopune.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
105
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
106 4. Nakon što ispravite pogrešku pritisnite <ESC> kako bi vratili Vim
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
107 u Normal mod. Ponovite korake od 2 do 4 kako bi ispravili sve pogreške.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
108
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
109 ---> Nedje no teka od v lin.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
110 ---> Nedostaje nešto teksta od ove linije.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
111
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
112 5. Prijeđite na sljedeću lekciju.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
113
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
114
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
115
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
116 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
117 Lekcija 1.5: PROMJENA TEKSTA - DODAVANJE
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
118
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
119
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
120 ** Pritisnite A za dodavanje teksta. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
121
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
122 1. Pomaknite kursor na prvu sljedeću liniju označenu s --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
123 Nije važno na kojem se slovu nalazi kursor na toj liniji.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
124
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
125 2. Pritisnite A i napravite potrebne promjene.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
126
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
127 3. Nakon što ste dodali tekst, pritisnite <ESC>
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
128 za povratak u Normal mod.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
129
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
130 4. Pomaknite kursor na drugu liniju označenu s --->
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
131 i ponovite korake 2 i 3 dok ne popravite tekst.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
132
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
133 ---> Ima nešto teksta koji nedostaje n
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
134 Ima nešto teksta koji nedostaje na ovoj liniji.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
135 ---> Ima nešto teksta koji ne
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
136 Ima nešto teksta koji nedostaje baš ovdje.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
137
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
138 5. Prijeđite na lekciju 1.6.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
139 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
140 Lekcija 1.6: PROMJENA DATOTEKE
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
141
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
142
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
143 ** Koristite :wq za spremanje teksta i napuštanje Vim-a. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
144
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
145 !! UPOZORENJE: Prije izvršavanja bilo kojeg koraka, pročitajte lekciju!!
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
146
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
147 1. Izađite iz programa kao sto ste napravili u lekciji 1.2: :q!
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
148
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
149 2. Iz ljuske utipkajte sljedeću naredbu: vim tutor <ENTER>
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
150 'vim' je naredba pokretanja Vim editora, 'tutor' je ime datoteke koju
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
151 želite uređivati. Koristite datoteku koju imate ovlasti mijenjati.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
152
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
153 3. Ubacite i izbrišite tekst kao što ste to napravili u lekcijama prije.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
154
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
155 4. Sačuvajte promjenjeni tekst i izađite iz Vim-a: :wq <ENTER>
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
156
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
157 5. Ponovno pokrenite vimtutor i nastavite čitati sažetak koji sljedi.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
158
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
159 6. Nakon sto pročitate gornje korake i u potpunosti ih razumijete:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
160 izvršite ih.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
161
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
162 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
163 Lekcija 1 SAŽETAK
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
164
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
165
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
166 1. Kursor se pomiče strelicama ili pomoću hjkl tipaka.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
167 h (lijevo) j (dolje) k (gore) l (desno)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
168
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
169 2. Pokretanje Vim-a iz ljuske: vim IME_DATOTEKE <ENTER>
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
170
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
171 3. Izlaz: <ESC> :q! <ENTER> sve promjene su izgubljene.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
172 ILI: <ESC> :wq <ENTER> promjene su sačuvane.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
173
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
174 4. Brisanje znaka na kojem se nalazi kursor: x
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
175
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
176 5. Ubacivanja ili dodavanje teksta:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
177 i utipkajte tekst <ESC> unos ispred kursora
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
178 A utipkajte tekst <ESC> dodavanje na kraju linije
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
179
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
180 NAPOMENA: Tipkanjem tipke <ESC> prebacuje Vim u Normal mod i
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
181 prekida neželjenu ili djelomično završenu naredbu.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
182
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
183 Nastavite čitati Lekciju 2.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
184
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
185 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
186 Lekcija 2.1: NAREDBE BRISANJA
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
187
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
188
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
189 ** Tipkajte dw za brisanje riječi. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
190
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
191 1. Pritisnite <ESC> kako bi bili sigurni da je Vim u Normal modu.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
192
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
193 2. Pomaknite kursor na liniju označenu s --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
194
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
195 3. Pomaknite kursor na početak riječi koju treba izbrisati.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
196
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
197 4. Otipkajte dw kako bi uklonili riječ.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
198
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
199 NAPOMENA: Vim će prikazati slovo d na zadnjoj liniji kad ga otipkate.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
200 Vim čeka da otipkate w . Ako je prikazano neko drugo slovo,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
201 krivo ste otipkali; pritisnite <ESC> i pokušajte ponovno.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
202
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
203 ---> Neke riječi smiješno ne pripadaju na papir ovoj rečenici.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
204
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
205 5. Ponovite korake 3 i 4 dok ne ispravite rečenicu;
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
206 prijeđite na Lekciju 2.2.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
207
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
208 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
209 Lekcija 2.2: JOŠ BRISANJA
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
210
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
211
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
212 ** Otipkajte d$ za brisanje znakova do kraja linije. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
213
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
214 1. Pritisnite <ESC> kako bi bili
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
215 sigurni da je Vim u Normal modu.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
216
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
217 2. Pomaknite kursor na liniju označenu s --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
218
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
219 3. Pomaknite kursor do kraja ispravne rečenice
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
220 (POSLJE prve . ).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
221
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
222 4. Otipkajte d$
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
223 kako bi izbrisali sve znakove do kraja linije.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
224
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
225 ---> Netko je utipkao kraj ove linije dvaput. kraj ove linije dvaput.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
226
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
227 5. Prijeđite na Lekciju 2.3 za bolje objašnjenje.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
228
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
229
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
230
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
231 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
232 Lekcija 2.3: UKRATKO O OPERATORIMA I POKRETIMA
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
233
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
234
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
235 Mnogo naredbi koje mijenjaju tekst se sastoje od operatora i pokreta.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
236 Oblik naredbe brisanja sa d operatorom je sljedeći:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
237
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
238 d pokret
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
239
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
240 Pri čemu je:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
241 d - operator brisanja.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
242 pokret - ono na čemu će se operacija izvršavati (navedeno u nastavku).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
243
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
244 Kratka lista pokreta:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
245 w - sve do početka sljedeće riječi, NE UKLJUČUJUĆI prvo slovo.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
246 e - sve do kraja trenutačne riječi, UKLJUČUJUĆI zadnje slovo.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
247 $ - sve do kraje linije, UKLJUČUJUĆI zadnje slovo.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
248
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
249 Tipkanjem de će se brisati od kursora do kraja riječi.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
250
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
251 NAPOMENA: Pritiskajući samo pokrete dok ste u Normal modu bez operatora će
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
252 pomicati kursor kao što je navedeno.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
253
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
254 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
255 Lekcija 2.4: KORIŠTENJE BROJANJA ZA POKRETE
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
256
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
257
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
258 ** Tipkanjem nekog broja prije pokreta, pokret se izvršava toliko puta. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
259
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
260 1. Pomaknite kursor na liniju označenu s --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
261
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
262 2. Otipkajte 2w da pomaknete kursor dvije riječi naprijed.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
263
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
264 3. Otipkajte 3e da pomaknete kursor na kraj treće riječi naprijed.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
265
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
266 4. Otipkajte 0 (nulu) da pomaknete kursor na početak linije.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
267
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
268 5. Ponovite korake 2 i 3 s nekim drugim brojevima.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
269
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
270 ---> Rečenica sa riječima po kojoj možete pomicati kursor.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
271
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
272 6. Prijeđite na Lekciju 2.5.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
273
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
274
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
275
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
276
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
277 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
278 Lekcija 2.5: KORIŠTENJE BROJANJA ZA VEĆE BRISANJE
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
279
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
280
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
281 ** Tipkanje broja N s operatorom ponavlja ga N-puta. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
282
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
283 U kombinaciji operatora brisanja i pokreta spomenutih iznad
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
284 ubacujete broj prije pokreta kako bi izbrisali više znakova:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
285
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
286 d broj pokret
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
287
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
288 1. Pomaknite kursor na prvo slovo u riječi sa VELIKIM SLOVIMA
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
289 označenu s --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
290
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
291 2. Otipkajte 2dw da izbrišete dvije riječi sa VELIKIM SLOVIMA
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
292
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
293 3. Ponovite korake 1 i 2 sa različitim brojevima da izbrišete
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
294 uzastopne riječi sa VELIKIM SLOVIMA sa samo jednom naredbom.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
295
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
296 ---> ova ABCČĆ DĐE linija FGHI JK LMN OP riječi je RSŠ TUVZŽ popravljena.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
297
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
298
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
299
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
300 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
301 Lekcija 2.6: OPERIRANJE NAD LINIJAMA
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
302
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
303
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
304 ** Otipkajte dd za brisanje cijele linije. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
305
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
306 Zbog učestalosti brisanja cijelih linija, dizajneri Vi-a su odlučili da
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
307 je lakše brisati linije tipkanjem d dvaput.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
308
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
309 1. Pomaknite kursor na drugu liniju u donjoj kitici.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
310 2. Otipkajte dd kako bi izbrisali liniju.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
311 3. Pomaknite kursor na četvrtu liniju.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
312 4. Otipkajte 2dd kako bi izbrisali dvije linije.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
313
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
314 ---> 1) Ruže su crvene,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
315 ---> 2) Plaža je super,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
316 ---> 3) Ljubice su plave,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
317 ---> 4) Imam auto,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
318 ---> 5) Satovi ukazuju vrijeme,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
319 ---> 6) Šećer je sladak
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
320 ---> 7) Kao i ti.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
321
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
322
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
323 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
324 Lekcija 2.7: NAREDBA PONIŠTENJA
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
325
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
326
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
327 ** Pritisnite u za poništenje zadnje naredbe, U za cijelu liniju. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
328
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
329 1. Pomaknite kursor na liniju označenu s ---> i postavite kursor na prvu
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
330 pogrešku.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
331 2. Otipkajte x kako bi izbrisali prvi neželjeni znak.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
332 3. Otipkajte u kako bi poništili zadnju izvršenu naredbu.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
333 4. Ovaj put ispravite sve pogreške na liniji koristeći x naredbu.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
334 5. Sada utipkajte veliko U kako bi poništili sve promjene
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
335 na liniji, vraćajući je u prijašnje stanje.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
336 6. Sada utipkajte u nekoliko puta kako bi poništili U
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
337 i prijašnje naredbe.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
338 7. Sada utipkajte CTRL-R (držeći CTRL tipku pritisnutom dok
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
339 ne pritisnete R) nekoliko puta kako bi vratili promjene
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
340 (poništili poništenja).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
341
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
342 ---> Poopravite pogreške nna ovvoj liniji ii pooništiteee ih.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
343
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
344 8. Vrlo korisne naredbe. Prijeđite na sažetak Lekcije 2.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
345
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
346 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
347 Lekcija 2 SAŽETAK
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
348
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
349
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
350 1. Brisanje od kursora do sljedeće riječi: dw
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
351 2. Brisanje od kursora do kraja linije: d$
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
352 3. Brisanje cijele linije: dd
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
353
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
354 4. Za ponavljanje pokreta prethodite mu broj: 2w
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
355 5. Oblik naredbe mijenjanja:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
356 operator [broj] pokret
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
357 gdje je:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
358 operator - što napraviti, npr. d za brisanje
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
359 [broj] - neobavezan broj ponavljanja pokreta
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
360 pokret - kretanje po tekstu po kojem se operira,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
361 kao što je: w (riječ), $ (kraj linije), itd.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
362
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
363 6. Postavljanje kursora na početak linije: 0
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
364
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
365 7. Za poništenje prethodnih promjena, pritisnite: u (malo u)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
366 Za poništenje svih promjena na liniji, pritisnite: U (veliko U)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
367 Za vraćanja promjena, utipkajte: CTRL-R
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
368
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
369 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
370 Lekcija 3.1: NAREDBA POSTAVI
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
371
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
372
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
373 ** p za unos prethodno izbrisanog teksta iza kursora. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
374
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
375 1. Pomaknite kursor na prvu sljedeću liniju označenu s --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
376
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
377 2. Otipkajte dd kako bi izbrisali liniju i spremili je u Vim registar.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
378
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
379 3. Pomaknite kursor na liniju c), IZNAD linije koju trebate unijeti.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
380
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
381 4. Otipkajte p kako bi postavili liniju ispod kursora.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
382
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
383 5. Ponovite korake 2 do 4 kako bi postavili sve linije u pravilnom
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
384 rasporedu.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
385
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
386 ---> d) Možeš li i ti naučiti?
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
387 ---> b) Ljubice su plave,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
388 ---> c) Inteligencija je naučena,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
389 ---> a) Ruže su crvene,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
390
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
391
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
392 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
393 Lekcija 3.2: NAREDBA PROMJENE
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
394
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
395
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
396 ** Otipkajte rx za zamjenu slova ispod kursora sa slovom x . **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
397
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
398 1. Pomaknite kursor na prvu sljedeću liniju označenu s --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
399
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
400 2. Pomaknite kursor tako da se nalazi na prvoj pogrešci.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
401
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
402 3. Otipkajte r i nakon toga ispravan znak na tom mjestu.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
403
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
404 4. Ponovite korake 2 i 3 sve dok prva
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
405 linije ne bude istovjetna drugoj.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
406
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
407 ---> Kede ju ovu limija tupjana, natko je protuskao kruve tupke!
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
408 ---> Kada je ova linija tipkana, netko je pritiskao krive tipke!
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
409
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
410 5. Prijeđite na Lekciju 3.2.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
411
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
412 NAPOMENA: Prisjetite da trebate učiti vježbanjem, ne pamćenjem.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
413
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
414
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
415 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
416 Lekcija 3.3: OPERATOR MIJENJANJA
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
417
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
418
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
419 ** Za mijenjanje do kraja riječi, istipkajte ce . **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
420
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
421 1. Pomaknite kursor na prvu sljedeću liniju označenu s --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
422
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
423 2. Postavite kursor na a u lackmb.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
424
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
425 3. Otipkajte ce i ispravite riječ (u ovom slučaju otipkajte inija ).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
426
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
427 4. Pritisnite <ESC> i pomaknite kursor na sljedeći znak
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
428 kojeg je potrebno ispraviti.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
429
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
430 5. Ponovite korake 3 i 4 sve dok prva rečenica ne postane istovjetna
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
431 drugoj.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
432
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
433 ---> Ova lackmb ima nekoliko rjlcah koje trfcb mijdmlfsz.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
434 ---> Ova linija ima nekoliko riječi koje treba mijenjati.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
435
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
436 Primijetite da ce briše riječ i postavlja Vim u Insert mod.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
437
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
438 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
439 Lekcija 3.4: JOŠ MIJENJANJA KORIŠTENJEM c
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
440
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
441
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
442 ** Naredba mijenjanja se koristi sa istim pokretima kao i brisanje. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
443
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
444 1. Operator mijenjanja se koristi na isti način kao i operator brisanja:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
445
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
446 c [broj] pokret
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
447
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
448 2. Pokreti su isti, npr: w (riječ) i $ (kraj linije).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
449
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
450 3. Pomaknite kursor na prvu sljedeću liniju označenu s --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
451
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
452 4. Pomaknite kursor na prvu pogrešku.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
453
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
454 5. Otipkajte c$ i utipkajte ostatak linije tako da bude istovjetna
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
455 drugoj te pritisnite <ESC>.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
456
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
457 ---> Kraj ove linije treba pomoć tako da izgleda kao linija ispod.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
458 ---> Kraj ove linije treba ispraviti korištenjem c$ naredbe.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
459
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
460 NAPOMENA: Možete koristiti Backspace za ispravljanje grešaka.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
461 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
462 Lekcija 3 SAŽETAK
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
463
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
464
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
465 1. Za postavljanje teksta koji je upravo izbrisan, pritisnite p . Ovo
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
466 postavlja tekst IZA kursora (ako je pak linija izbrisana tekst se
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
467 postavlja na liniju ispod kursora).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
468
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
469 2. Za promjenu znaka na kojem se nalazi kursor, pritisnite r i nakon toga
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
470 željeni znak.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
471
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
472 3. Operator mijenjanja dozvoljava promjenu teksta od kursora do pozicije do
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
473 koje dovede pokret. tj. Otipkajte ce za mijenjanje od kursora do kraja
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
474 riječi, c$ za mijenjanje od kursora do kraja linije.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
475
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
476 4. Oblik naredbe mijenjanja:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
477
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
478 c [broj] pokret
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
479
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
480 Prijeđite na sljedeću lekciju.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
481
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
482
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
483
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
484 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
485 Lekcija 4.1: POZICIJA KURSORA I STATUS DATOTEKE
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
486
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
487 ** CTRL-G za prikaz pozicije kursora u datoteci i status datoteke.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
488 Pritisnite G za pomicanje kursora na neku liniju u datoteci. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
489
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
490 NAPOMENA: Pročitajte cijelu lekciju prije izvršenja bilo kojeg koraka!!
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
491
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
492 1. Držite Ctrl tipku pritisnutom i pritisnite g . Ukratko: CTRL-G.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
493 Vim će ispisati poruku na dnu ekrana sa imenom datoteke i pozicijom
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
494 kursora u datoteci. Zapamtite broj linije za 3. korak.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
495
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
496 NAPOMENA: Možete vidjeti poziciju kursora u donjem desnom kutu ako
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
497 je postavka 'ruler' aktivirana (objašnjeno u 6. lekciji).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
498
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
499 2. Pritisnite G za pomicanje kursora na kraj datoteke.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
500 Otipkajte gg za pomicanje kursora na početak datoteke.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
501
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
502 3. Otipkajte broj linije na kojoj ste bili maloprije i zatim G . Kursor
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
503 će se vratiti na liniju na kojoj se nalazio kada ste otipkali CTRL-G.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
504
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
505 4. Ako ste spremni, izvršite korake od 1 do 3.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
506
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
507 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
508 Lekcija 4.2: NAREDBE TRAŽENJA
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
509
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
510 ** Otipkajte / i nakon toga izraz kojeg želite tražiti. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
511
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
512 1. U Normal modu otipkajte / znak. Primijetite da se znak
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
513 pojavio zajedno sa kursorom na dnu ekrana kao kod : naredbe.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
514
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
515 2. Sada otipkajte 'grrrreška' <ENTER>. To je riječ koju zapravo tražite.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
516
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
517 3. Za ponovno traženje istog izraza, otipkajte n .
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
518 Za traženje istog izraza ali u suprotnom smjeru, otipkajte N .
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
519
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
520 4. Za traženje izraza unatrag, koristite ? umjesto / .
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
521
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
522 5. Za povratak na prethodnu poziciju koristite CTRL-O (držite Ctrl
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
523 pritisnutim dok ne pritisnete tipku o). Ponavljajte sve dok se ne
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
524 vratite na početak. CTRL-I slično kao CTRL-O ali u suprotnom smjeru.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
525
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
526 ---> "pogrrrreška" je pogrešno; umjesto pogrrrreška treba stajati pogreška.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
527
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
528 NAPOMENA: Ako se traženjem dođe do kraja datoteke nastavit će se od njenog
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
529 početka osim ako je postavka 'wrapscan' deaktivirana.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
530 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
531 Lekcija 4.3: TRAŽENJE PRIPADAJUĆE ZAGRADE
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
532
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
533
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
534 ** Otipkajte % za pronalazak pripadajuće ), ] ili } . **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
535
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
536 1. Postavite kursor na bilo koju od ( , [ ili {
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
537 otvorenih zagrada u liniji označenoj s --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
538
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
539 2. Otipkajte znak % .
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
540
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
541 3. Kursor će se pomaknuti na pripadajuću zatvorenu zagradu.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
542
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
543 4. Otipkajte % kako bi pomakli kursor na drugu pripadajuću zagradu.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
544
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
545 5. Pomaknite kursor na neku od (,),[,],{ ili } i ponovite % naredbu.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
546
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
547 ---> Linija ( testiranja običnih ( [ uglatih ] i { vitičastih } zagrada.))
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
548
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
549
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
550 NAPOMENA: Vrlo korisno u ispravljanju koda sa nepripadajućim zagradama!
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
551
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
552
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
553 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
554 Lekcija 4.4: NAREDBE ZAMIJENE
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
555
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
556
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
557 ** Otipkajte :s/staro/novo/g da zamijenite 'staro' za 'novo'. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
558
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
559 1. Pomaknite kursor na liniju označenu s --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
560
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
561 2. Otipkajte :s/cvrćč/cvrč <ENTER> . Primjetite da ova naredba zamjenjuje
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
562 samo prvi "cvrćč" u liniji.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
563
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
564 3. Otipkajte :s/cvrćč/cvrč/g . Dodavanje g stavke znači da će se naredba
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
565 izvršiti na cijeloj liniji, zamjenjivanjem svih "cvrćč" u liniji.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
566
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
567 ---> i cvrćči cvrćči cvrćčak na čvoru crne smrče.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
568
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
569 4. Za zamjenu svih izraza u rasponu dviju linija,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
570 otipkajte :#,#s/staro/novo/g #,# su brojevi linije datoteke na kojima
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
571 te između njih će se izvršiti zamjena.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
572 Otipkajte :%s/staro/novo/g za zamjenu svih izraza u cijeloj datoteci.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
573 Otipkajte :%s/staro/novo/gc za pronalazak svakog izraza u datoteci i
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
574 potvrdu zamjene.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
575
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
576 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
577 Lekcija 4 SAŽETAK
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
578
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
579
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
580 1. CTRL-G prikazuje poziciju kursora u datoteci i status datoteke.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
581 G postavlja kursor na zadnju liniju datoteke.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
582 broj G postavlja kursor na broj liniju.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
583 gg postavlja kursor na prvu liniju.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
584
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
585 2. Tipkanje / sa izrazom traži UNAPRIJED taj izraz.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
586 Tipkanje ? sa izrazom traži UNATRAG taj izraz.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
587 Nakon naredbe traženja koristite n za pronalazak izraza u istom
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
588 smjeru, i N za pronalazak istog izraza ali u suprotnom smjeru.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
589 CTRL-O vraća kursor na prethodnu poziciju, CTRL-I na sljedeću poziciju.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
590
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
591 3. Tipkanje % dok je kursor na zagradi pomiče ga na pripadajuću zagradu.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
592
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
593 4. Za zamjenu prvog izraza staro za izraz novo :s/staro/novo
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
594 Za zamjenu svih izraza staro na cijeloj liniji :s/staro/novo/g
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
595 Za zamjenu svih izraza staro u rasponu linija #,# :#,#s/staro/novo/g
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
596 Za zamjenu u cijeloj datoteci :%s/staro/novo/g
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
597 Za potvrdu svake zamjene dodajte 'c' :%s/staro/novo/gc
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
598
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
599 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
600 Lekcija 5.1: IZVRŠAVANJE VANJSKIH NAREDBI
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
601
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
602
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
603 ** Otipkajte :! sa vanjskom naredbom koju želite izvršiti. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
604
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
605 1. Otipkajte poznatu naredbu : kako bi kursor premjestili na dno
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
606 ekrana. Time omogućavate unos naredbe u naredbenoj liniji.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
607
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
608 2. Otipkajte znak ! (uskličnik). Tako omogućavate
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
609 izvršavanje naredbe vanjske ljuske.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
610
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
611 3. Kao primjer otipkajte ls nakon ! te pritisnite <ENTER>.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
612 Ovo će prikazati sadržaj direktorija, kao da ste u ljusci.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
613 Koristite :!dir ako :!ls ne radi.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
614
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
615 NAPOMENA: Moguće je izvršavati bilo koju vanjsku naredbu na ovaj način,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
616 zajedno sa njenim argumentima.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
617
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
618 NAPOMENA: Sve : naredbe se izvršavaju nakon što pritisnete <ENTER>
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
619 U daljnjem tekstu to neće uvijek biti napomenuto.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
620
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
621
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
622 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
623 Lekcija 5.2: VIŠE O SPREMANJU DATOTEKA
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
625 ** Za spremanje promjena, otipkajte :w IME_DATOTEKE. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
626
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
627 1. Otipkajte :!dir ili :!ls za pregled direktorija.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
628 Već znate da morate pritisnuti <ENTER> na kraju tipkanja.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
629
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
630 2. Izaberite ime datoteke koja još ne postoji, npr. TEST.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
631
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
632 3. Otipkajte: :w TEST (gdje je TEST ime koje ste prethodno odabrali.)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
633
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
634 4. Time će te spremiti cijelu datoteku (Vim Tutor) pod imenom TEST.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
635 Za provjeru, otipkajte ponovno :!dir ili :!ls
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
636 za pregled direktorija.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
637
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
638 NAPOMENA: Ako bi napustili Vim i ponovno ga pokrenuli sa vim TEST ,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
639 datoteka bi bila potpuna kopija ove datoteke u trenutku
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
640 kada ste je spremili.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
641
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
642 5. Izbrišite datoteku tako da otipkate (MS-DOS): :!del TEST
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
643 ili (Unix): :!rm TEST
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
644
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
645 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
646 Lekcija 5.3: SPREMANJE OZNAČENOG TEKSTA
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
647
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
648
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
649 ** Kako bi spremili dio datoteke, otipkajte v pokret :w IME_DATOTEKE **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
650
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
651 1. Pomaknite kursor na ovu liniju.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
652
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
653 2. Pritisnite v i pomaknite kursor pet linija ispod ove.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
654 Primijetite promjenu, označeni tekst se razlikuje od običnog.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
655
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
656 3. Pritisnite : znak. Na dnu ekrana pojavit će se :'<,'> .
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
657
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
658 4. Otipkajte w TEST , pritom je TEST ime datoteke koja još ne postoji.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
659 Provjerite da zaista piše :'<,'>w TEST
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
660 prije nego što pritisnite <ENTER>.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
661
3847
1003f9b262d7 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
662 5. Vim će spremiti označeni tekst u TEST. Provjerite sa :!dir ili :!ls .
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
663 Nemojte je još brisati! Koristiti će te je u sljedećoj lekciji.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
664
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
665 NAPOMENA: Tipka v započinje Vizualno označavanje. Možete pomicati kursor
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
666 unaokolo kako bi mijenjali veličinu označenog teksta. Možete
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
667 koristiti i operatore. Npr, d će izbrisati označeni tekst.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
668 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
669 Lekcija 5.4: UČITAVANJE DATOTEKA
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
670
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
671
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
672 ** Za ubacivanje sadržaja datoteke, otipkajte :r IME_DATOTEKE **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
673
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
674 1. Postavite kursor iznad ove linije.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
675
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
676 NAPOMENA: Nakon što izvršite 2. korak vidjeti će te tekst iz Lekcije 5.3.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
677 Stoga pomaknite kursor DOLJE kako bi ponovno vidjeli ovu lekciju.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
678
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
679 2. Učitajte vašu TEST datoteku koristeći naredbu :r TEST
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
680 gdje je TEST ime datoteke koju ste koristili u prethodnoj lekciji.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
681 Sadržaj učitane datoteke je ubačen liniju ispod kursora.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
682
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
683 3. Kako bi provjerili da je datoteka učitana, vratite kursor unatrag i
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
684 primijetite dvije kopije Lekcije 5.3, originalnu i onu iz datoteke.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
685
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
686 NAPOMENA: Možete također učitati ispis vanjske naredbe. Npr, :r !ls
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
687 će učitati ispis ls naredbe i postaviti ispis liniju ispod
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
688 kursora.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
689
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
690
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
691 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
692 Lekcija 5 SAŽETAK
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
693
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
694
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
695 1. :!naredba izvršava vanjsku naredbu.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
696
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
697 Korisni primjeri:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
698 (MS-DOS) (Unix)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
699 :!dir :!ls - pregled direktorija.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
700 :!del DATOTEKA :!rm DATOTEKA - briše datoteku DATOTEKA.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
701
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
702 2. :w DATOTEKA zapisuje trenutačnu datoteku na disk sa imenom DATOTEKA.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
703
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
704 3. v pokret :w IME_DATOTEKE sprema vizualno označene linije u
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
705 datoteku IME_DATOTEKE.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
706
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
707 4. :r IME_DATOTEKE učitava datoteku IME_DATOTEKE sa diska i stavlja
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
708 njen sadržaj liniju ispod kursora.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
709
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
710 5. :r !dir učitava ispis naredbe dir i postavlja sadržaj ispisa liniju
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
711 ispod kursora.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
712
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
713
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
714 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
715 Lekcija 6.1: NAREDBA OTVORI
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
716
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
717
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
718 ** Pritisnite o kako bi otvorili liniju ispod kursora
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
719 i prešli u Insert mod. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
720
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
721 1. Pomaknite kursor na sljedeću liniju označenu s --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
722
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
723 2. Otipkajte malo o kako bi otvorili novu liniju ISPOD kursora
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
724 i prešli u Insert mod.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
725
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
726 3. Otipkajte nešto teksta i nakon toga pritisnite <ESC>
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
727 kako bi napustili Insert mod.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
728
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
729 ---> Nakon što pritisnete o kursor će preći u novu liniju u Insert mod.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
730
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
731 4. Za otvaranje linije IZNAD kursora, otipkajte umjesto malog o veliko O ,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
732 Pokušajte na donjoj liniji označenoj s --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
733
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
734 ---> Otvorite liniju iznad ove - otipkajte O dok je kursor na ovoj liniji.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
735
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
736
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
737 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
738 Lekcija 6.2: NAREDBA DODAJ
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
739
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
740
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
741 ** Otipkajte a za dodavanje teksta IZA kursora. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
742
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
743 1. Pomaknite kursor na početak sljedeće linije označene s --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
744
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
745 2. Tipkajte e dok se kursor ne nalazi na kraju li .
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
746
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
747 3. Otipkajte a (malo) kako bi dodali tekst IZA kursora.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
748
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
749 4. Dopunite riječ kao što je na liniji ispod.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
750 Pritisnite <ESC> za izlaz iz Insert moda.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
751
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
752 5. Sa e prijeđite na sljedeću nepotpunu riječ i ponovite korake 3 i 4.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
753
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
754 ---> Ova li omogućava vje dodav teksta nekoj liniji.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
755 ---> Ova linija omogućava vježbanje dodavanja teksta nekoj liniji.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
756
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
757 NAPOMENA: Sa i, a, i A prelazite u isti Insert mod, jedina
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
758 razlika je u poziciji od koje će se tekst ubacivati.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
759
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
760 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
761 Lekcija 6.3: DRUGI NAČIN MIJENJANJA
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
762
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
763
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
764 ** Otipkajte veliko R kako bi zamijelili više od jednog znaka. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
765
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
766 1. Pomaknite kursor na prvu sljedeću liniju označenu s --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
767 Pomaknite kursor na početak prvog xxx .
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
768
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
769 2. Pritisnite R i otipkajte broj koji je liniju ispod,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
770 tako da zamijeni xxx .
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
771
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
772 3. Pritisnite <ESC> za izlaz iz Replace moda.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
773 Primijetite da je ostatak linije ostao nepromjenjen.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
774
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
775 5. Ponovite korake kako bi zamijenili preostali xxx.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
776
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
777 ---> Zbrajanje: 123 plus xxx je xxx.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
778 ---> Zbrajanje: 123 plus 456 je 579.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
779
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
780 NAPOMENA: Replace mod je kao Insert mod, ali sa bitnom razlikom,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
781 svaki otipkani znak briše već postojeći.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
782
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
783 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
784 Lekcija 6.4: KOPIRANJE I LIJEPLJENJE TEKSTA
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
785
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
786
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
787 ** Koristite y operator za kopiranje a p za lijepljenje teksta. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
788
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
789 1. Pomaknite kursor na liniju s ---> i postavite kursor nakon "a)".
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
790
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
791 2. Pokrenite Visual mod sa v i pomaknite kursor sve do ispred "prva".
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
792
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
793 3. Pritisnite y kako bi kopirali označeni tekst.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
794
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
795 4. Pomaknite kursor do kraja sljedeće linije: j$
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
796
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
797 5. Pritisnite p kako bi zalijepili tekst. Onda utipkajte: druga <ESC> .
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
798
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
799 6. Koristite Visual mod kako bi označili " linija.", kopirajte: y , kursor
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
800 postavite na kraj sljedeće linije: j$ i ondje zalijepite tekst: p .
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
801
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
802 ---> a) ovo je prva linija.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
803 b)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
804
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
805 NAPOMENA: možete koristiti y kao operator; yw kopira jednu riječ.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
806 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
807 Lekcija 6.5: MIJENJANJE POSTAVKI
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
808
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
809
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
810 ** Postavka: naredbe traženja i zamijene ne razlikuju VELIKA i mala slova **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
811
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
812 1. Potražite 'razlika' tipkanjem: /razlika <ENTER>
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
813 Nekoliko puta ponovite pritiskanjem n .
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
814
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
815 2. Aktivirajte 'ic' (Ignore case) postavku: :set ic
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
816
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
817 3. Ponovno potražite 'razlika' tipkanjem n
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
818 Primijetite da su sada i RAZLIKA i Razlika pronađeni.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
819
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
820 4. Aktivirajte 'hlsearch' i 'incsearch' postavke: :set hls is
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
821
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
822 5. Otipkajte naredbu traženja i primijetite razlike: /razlika <ENTER>
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
823
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
824 6. Za deaktiviranje ic postavke koristite: :set noic
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
825
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
826 NAPOMENA: Za neoznačavanje pronađenih izraza otipkajte: :nohlsearch
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
827 NAPOMENA: Bez razlikovanja velikih i malih slova u samo jednoj naredbi
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
828 koristite \c u izrazu: /razlika\c <ENTER>
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
829 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
830 Lekcija 6 SAŽETAK
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
831
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
832 1. Pritisnite o za otvaranje linije ISPOD kursora i prelazak u Insert mod.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
833 Pritisnite O za otvaranje linije IZNAD kursora.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
834
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
835 2. Pritisnite a za unos teksta IZA kursora.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
836 Pritisnite A za unos teksta na kraju linije.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
837
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
838 3. Naredba e pomiče kursor na kraj riječi.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
839
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
840 4. Operator y kopira tekst, p ga lijepi.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
841
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
842 5. Tipkanjem velikog R Vim prelazi u Replace mod dok ne pritisnete <ESC> .
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
843
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
844 6. Tipkanjem ":set xxx" aktivira postavku "xxx". Neke postavke su:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
845 'ic' 'ignorecase' ne razlikuje velika/mala slova pri traženju
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
846 'is' 'incsearch' traži nedovršene izraze
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
847 'hls' 'hlsearch' označi sve pronađene izraze
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
848 Možete koristite dugo ili kratko ime postavke.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
849
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
850 7. Prethodite "no" imenu postavke za deaktiviranje iste: :set noic
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
851
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
852 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
853 Lekcija 7.1: DOBIVANJE POMOĆI
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
854
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
855
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
856 ** Koristite on-line sustav pomoći **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
857
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
858 Vim ima detaljan on-line sustav pomoći.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
859 Za početak, pokušajte jedno od sljedećeg:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
860 - pritisnite <HELP> tipku (ako je vaša tipkovnica ima)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
861 - pritisnite <F1> tipku (ako je vaša tipkovnica ima)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
862 - utipkajte :help <ENTER>
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
863
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
864 Pročitajte tekst u prozoru pomoći kako bi ste se znali služiti istom.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
865 Tipkanjem CTRL-W CTRL-W prelazite iz jednog prozora u drugi.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
866 Otipkajte :q <ENTER> kako bi zatvorili prozor pomoći.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
867
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
868 Pronaći će te pomoć o bilo kojoj temi, tako da dodate upit samoj
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
869 ":help" naredbi. Pokušajte (ne zaboravite pritisnuti <ENTER>):
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
870
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
871 :help w
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
872 :help c_CTRL-D
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
873 :help insert-index
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
874 :help user-manual
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
875 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
876 Lekcija 7.2: PRAVLJENJE SKRIPTE
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
877
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
878
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
879 ** Aktivirajte Vim mogućnosti **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
880
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
881 Vim ima mnogo više alata od Vi-ja, ali većina njih nije aktivirana.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
882 Kako bi mogli koristiti više mogućnosti napravite "vimrc" datoteku.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
883
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
884 1. Uredite "vimrc" datoteku. Ovo ovisi o vašem sistemu:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
885 :e ~/.vimrc za Unix
24751
e69e7133c9cf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3847
diff changeset
886 :e ~/_vimrc za MS-Windows
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
887
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
888 2. Sada učitajte primjer sadržaja "vimrc" datoteke:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
889 :r $VIMRUNTIME/vimrc_example.vim
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
890
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
891 3. Sačuvajte datoteku sa:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
892 :w
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
893
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
894 Sljedećeg puta kada pokrenete Vim, bojanje sintakse teksta biti će
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
895 aktivirano. Sve vaše postavke možete dodati u "vimrc" datoteku.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
896 Za više informacija otipkajte :help vimrc-intro
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
897
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
898 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
899 Lekcija 7.3: AUTOMATSKO DOVRŠAVANJE
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
900
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
901
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
902 ** Dovršavanje iz naredbene linije pomoću CTRL-D i <TAB> **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
903
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
904 1. Provjerite da Vim nije u Vi modu: :set nocp
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
905
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
906 2. Pogledajte koje datoteke postoje u direktoriju: :!ls or :!dir
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
907
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
908 3. Otipkajte početak naredbe: :e
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
909
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
910 4. Tipkajte CTRL-D i prikazati će se lista naredbi koje započinju sa "e".
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
911
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
912 5. Pritisnite <TAB> i Vim će dopuniti unos u naredbu ":edit".
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
913
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
914 6. Dodajte razmak i početak datoteke: :edit FIL
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
915
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
916 7. Pritisnite <TAB>. Vim će nadopuniti ime datoteke (ako je jedinstveno).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
917
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
918 NAPOMENA: Moguće je dopuniti mnoge naredbe. Koristite CTRL-D i <TAB>.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
919 Naročito je korisno za :help naredbe.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
920
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
921 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
922 Lekcija 7 SAŽETAK
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
923
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
924
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
925 1. Otipkajte :help ili pritisnite <F1> ili <Help> za pomoć.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
926
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
927 2. Otipkajte :help naredba kako bi dobili pomoć za naredba .
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
928
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
929 3. Otipkajte CTRL-W CTRL-W za prelazak u drugi prozor
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
930
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
931 4. Otipkajte :q kako bi zatvorili prozor pomoći
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
932
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
933 5. Napravite vimrc skriptu za podizanje kako bi u nju spremali
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
934 vaše omiljene postavke.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
935
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
936 6. Kada tipkate naredbu koja započinje sa :
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
937 pritisnite CTRL-D kako bi vidjeli moguće valjane vrijednosti.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
938 Pritisnite <TAB> kako bi odabrali jednu od njih.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
939
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
940
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
941
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
942
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
943
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
944 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
945 Kraj. Cilj priručnika je da pokaže kratak pregled Vim editora, tek toliko
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
946 da omogući njegovo korištenje. Priručnik nije potpun jer Vim ima mnogo više
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
947 naredbi. Za više informacija: ":help user-manual".
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
948
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
949 Za čitanje i korištenje, preporučamo:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
950 Vim - Vi Improved - by Steve Oualline
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
951 Izdavač: New Riders
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
952 Prva knjiga potpuno posvećena Vim-u. Vrlo korisna za početnike.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
953 Sa mnogo primjera i slika.
27623
179c118424a6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24751
diff changeset
954 Posjetite https://iccf-holland.org/click5.html
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
955
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
956 Sljedeća knjiga je nešto starija i više o Vi-u nego o Vim-u, preporučamo:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
957 Learning the Vi Editor - by Linda Lamb
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
958 Izdavač: O'Reilly & Associates Inc.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
959 Solidna knjiga, možete saznati skoro sve što možete napraviti
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
960 u Vi-u. Šesto izdanje ima nešto informacija i o Vim-u.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
961
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
962 Ovaj priručnik su napisali: Michael C. Pierce i Robert K. Ware,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
963 Colorado School of Mines koristeći ideje Charles Smith,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
964 Colorado State University. E-pošta: bware@mines.colorado.edu.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
965
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
966 Naknadne promjene napravio je Bram Moolenaar.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
967 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
968
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
969 Preveo na hrvatski: Paul B. Mahol <onemda@gmail.com>
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
970 Preinaka 1.42, Lipanj 2008
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
971
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
972