annotate runtime/tutor/tutor.sr.cp1250 @ 27970:212c5894b8b1 v8.2.4510

patch 8.2.4510: Vim9: shortening commands leads to confusing script Commit: https://github.com/vim/vim/commit/204852ae2adfdde10c656ca7f14e5b4207a69172 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 5 12:56:44 2022 +0000 patch 8.2.4510: Vim9: shortening commands leads to confusing script Problem: Vim9: shortening commands leads to confusing script. Solution: In Vim9 script require at least ":cont" for ":continue", "const" instead of "cons", "break" instead of "brea", "catch" instead of "cat", "else" instead of "el" "elseif" instead of "elsei" "endfor" instead of "endfo" "endif" instead of "en" "endtry" instead of "endt", "finally" instead of "fina", "throw" instead of "th", "while" instead of "wh".
author Bram Moolenaar <Bram@vim.org>
date Sat, 05 Mar 2022 14:00:03 +0100
parents 179c118424a6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6009
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 ===============================================================================
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
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 =
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 ===============================================================================
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 Vim je moćan editor sa mnogo komandi, suviše da bismo ih ovde sve
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 opisali. Priručnik je zamišljen da opiše dovoljno komandi da biste
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 mogli lagodno da koristite Vim kao editor opšte namene.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 Približno vreme potrebno za uspešan završetak priručnika je između
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 25 i 30 minuta, u zavisnosti od vremena potrošenog na vežbu.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 UPOZORENJE:
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 Komande u lekcijama će menjati tekst. Iskopirajte ovaj fajl i
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 vežbajte na kopiji (ako ste pokrenuli "vimtutor" ovo je već kopija).
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 Važno je upamtiti da je ovaj priručnik zamišljen za aktivnu vežbu.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 To znači da morate upotrebljavati komande o kojima čitate da biste
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 ih naučili. Ako samo čitate tekst, zaboravićete komande!
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 Ako je Caps Lock uključen ISKLJUČITE ga. Pritisnite taster j dovoljno
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 puta da lekcija 1.1 cela stane na ekran.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 Lekcija 1.1: POMERANJE KURSORA
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 ** Za pomeranje kursora, pritiskajte tastere h,j,k,l kako je prikazano **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 ^
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 k Savet: h je s leve strane i pomera kursor u levo.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 < h l > l je s desne strane i pomera kursor u desno.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31 j j izgleda kao strelica naniže.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 v
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33 1. Pomerajte kursor po ekranu dok se ne naviknete na komande.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35 2. Pritisnite taster (j) dok ne počne da se ponavlja.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36 Sada znate kako da dođete do naredne lekcije.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
38 3. Koristeći taster j pređite na lekciju 1.2.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
39
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
40 NAPOMENA: Ako niste sigurni šta ste zapravo pritisnuli, pritisnite <ESC>
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
41 za prelazak u Normal mod i pokušajte ponovo.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
42
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
43 NAPOMENA: Strelice takođe pomeraju kursor, ali korišćenje tastera hjkl je
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
44 znatno brže, kad se jednom naviknete na njih. Zaista!
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
45
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
46 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
47 Lekcija 1.2: IZLAZAK IZ VIM-a
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
48
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
49
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
50 !! UPOZORENJE: Pre izvođenja bilo kog koraka, pročitajte celu lekciju!!
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
51
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
52 1. Pritisnite <ESC> (editor je sada u Normal modu).
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
53
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
54 2. Otkucajte: :q! <ENTER>.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
55 Ovime se izlazi iz editora, sa GUBITKOM svih izmena.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
56
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
57 3. Kada se pojavi komandni prompt, unesite komandu koja je pokrenula
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
58 ovaj priručnik: vimtutor <ENTER>
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
59
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
60 4. Ako ste upamtili ove korake, izvršite ih redom od 1 do 3 da biste
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
61 izašli iz editora i ponovo ga pokrenuli.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
62
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
63 NAPOMENA: :q! <ENTER> poništava sve izmene koje ste napravili.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
64 U narednim lekcijama naučićete kako da sačuvate izmene.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
65
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
66 5. Pomerite kursor na lekciju 1.3.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
67
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
68
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
69 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
70 Lekcija 1.3: IZMENA TEKSTA - BRISANJE
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
71
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
72
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
73 ** Pritisnite x za brisanje znaka pod kursorom. **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
74
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
75 1. Pomerite kursor na red označen sa --->.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
76
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
77 2. Da biste ispravili greške, pomerajte kursor dok se
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
78 ne nađe na slovu koje treba izbrisati.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
79
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
80 3. Pritisnite taster x da izbrišete neželjeno slovo.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
81
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
82 4. Ponavljajte korake od 2 do 4 dok ne ispravite sve greške.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
83
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
84 ---> RRRibaa riibi grizzze rrreepp.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
85
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
86 5. Kad ispravite red, pređite na lekciju 1.4.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
87
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
88 NAPOMENA: Dok koristite priručnik, nemojte učiti komande napamet,
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
89 već vežbajte njihovu primenu.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
90
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
91
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
92 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
93 Lekcija 1.4: IZMENA TEKSTA - UBACIVANJE
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
94
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
95
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
96 ** Pritisnite i za ubacivanje teksta ispred kursora. **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
97
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
98 1. Pomerite kursor na prvi sledeći red označen sa --->.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
99
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
100 2. Da biste tekst prvog reda izjednačili s tekstom drugog, namestite
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
101 kursor na prvi znak POSLE kog ćete ubaciti potreban tekst.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
102
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
103 3. Pritisnite i pa unesite potrebne dopune.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
104
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
105 4. Po ispravci svake greške pritisnite <ESC> da se vratite u Normal mod.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
106 Ponovite korake od 2 do 4 da biste ispravili celu rečenicu.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
107
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
108 ---> Do teka neoje v red.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
109 ---> Deo teksta nedostaje iz ovog reda.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
110
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
111 5. Pređite na sledeću lekciju.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
112
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
113
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
114
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
115 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
116 Lekcija 1.5: IZMENA TEKSTA - DODAVANJE
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
117
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
118
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
119 ** Pritisnite A za dodavanje teksta. **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
120
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
121 1. Pomerite kursor na prvi sledeći red označen sa --->.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
122 Nije važno gde se nalazi kursor u tom redu.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
123
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
124 2. Pritisnite A i unesite dodatni tekst.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
125
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
126 3. Pošto ste dodali tekst, pritisnite <ESC> za povratak u
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
127 Normal mod.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
128
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
129 4. Pomerite kursor na drugi red označen sa ---> i ponavljajte
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
130 korake 2 i 3 dok ne ispravite tekst.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
131
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
132 ---> Deo teksta nedostaje u
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
133 Deo teksta nedostaje u ovom redu.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
134 ---> Deo teksta nedostaje
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
135 Deo teksta nedostaje i ovde.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
136
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
137 5. Pređite na lekciju 1.6.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
138 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
139 Lekcija 1.6: IZMENA FAJLA
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
140
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
141
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
142 ** Upotrebite :wq za snimanje teksta i izlazak iz editora. **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
143
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
144 !! UPOZORENJE: Pre izvođenja bilo kog koraka, pročitajte celu lekciju!!
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
145
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
146 1. Izađite iz editora kao u lekciji 1.2: :q!
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
147
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
148 2. Na komandnom promptu unesite sledeću komandu: vim tutor <ENTER>
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
149 'vim' je komanda za pokretanja Vim editora, 'tutor' je ime fajla koji
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
150 želite da menjate. Koristite fajl koji imate pravo da menjate.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
151
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
152 3. Ubacujte i brišite tekst kao u prethodnim lekcijama.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
153
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
154 4. Snimite izmenjeni tekst i izađite iz Vim-a: :wq <ENTER>
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
155
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
156 5. Ponovo pokrenite vimtutor i pročitajte rezime koji sledi.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
157
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
158 6. Pošto pročitate korake iznad i u potpunosti ih razumete:
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
159 izvršite ih.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
160
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
161 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
162 REZIME lekcije 1
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
163
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
164
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
165 1. Kursor se pomera strelicama ili pomoću tastera hjkl .
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
166 h (levo) j (dole) k (gore) l (desno)
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
167
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
168 2. Za pokretanje Vim-a iz shell-a: vim IME_FAJLA <ENTER>
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
169
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
170 3. Izlaz: <ESC> :q! <ENTER> sve promene su izgubljene.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
171 ILI: <ESC> :wq <ENTER> promene su sačuvane.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
172
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
173 4. Brisanje znaka na kome se nalazi kursor: x
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
174
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
175 5. Ubacivanja ili dodavanje teksta:
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
176 i unesite tekst <ESC> unos ispred kursora
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
177 A unesite tekst <ESC> dodavanje na kraju reda
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
178
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
179 NAPOMENA: Pritiskom na <ESC> prebacujete Vim u Normal mod i
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
180 prekidate neželjenu ili delimično izvršenu komandu.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
181
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
182 Nastavite sa lekcijom 2.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
183
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
184 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
185 Lekcija 2.1: NAREDBE BRISANJA
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
186
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
187
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
188 ** Otkucajte dw za brisanje reči. **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
189
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
190 1. Pritisnite <ESC> da biste bili sigurni da ste u Normal modu.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
191
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
192 2. Pomerite kursor na red označen sa --->.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
193
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
194 3. Pomerite kursor na početak reči koju treba izbrisati.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
195
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
196 4. Otkucajte dw da biste uklonili reč.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
197
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
198 NAPOMENA: Slovo d će se pojaviti na dnu ekrana kad ga otkucate. Vim čeka
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
199 da otkucate w . Ako je prikazano neko drugo slovo, pogrešili ste u
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
200 kucanju; pritisnite <ESC> i pokušajte ponovo. (Ako se ne pojavi
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
201 ništa, možda je isključena opcija 'showcmd': vidi lekciju 6.5.)
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
202
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
203 ---> Neke reči smešno ne pripadaju na papir ovoj rečenici.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
204
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
205 5. Ponavljajte korake 3 i 4 dok ne ispravite rečenicu, pa
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
206 pređite na lekciju 2.2.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
207 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
208 Lekcija 2.2: JOŠ BRISANJA
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
209
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
210
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
211 ** Otkucajte d$ za brisanje znakova do kraja reda. **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
212
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
213 1. Pritisnite <ESC> da biste bili sigurni da ste u Normal modu.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
214
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
215 2. Pomerite kursor na red označen sa --->.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
216
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
217 3. Pomerite kursor do kraja ispravnog dela rečenice
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
218 (POSLE prve . ).
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
219
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
220 4. Otkucajte d$ za brisanje ostatka reda.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
221
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
222 ---> Neko je uneo kraj ovog reda dvaput. kraj ovog reda dvaput.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
223
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
224 5. Pređite na lekciju 2.3 za podrobnije objašnjenje.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
225
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
226
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
227
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
228
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
229
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
230 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
231 Lekcija 2.3: O OPERATORIMA I POKRETIMA
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
232
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
233
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
234 Mnoge komande za izmenu teksta sastoje se od operatora i pokreta.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
235 Oblik komande brisanja sa d operatorom je sledeći:
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
236
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
237 d pokret
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
238
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
239 Pri čemu je:
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
240 d - operator brisanja.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
241 pokret - ono na čemu će se operacija izvršavati (opisano u nastavku).
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
242
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
243 Kratak spisak pokreta:
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
244 w - sve do početka sledeće reči, NE UKLJUČUJUĆI prvo slovo.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
245 e - sve do kraja tekuće reči, UKLJUČUJUĆI poslednje slovo.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
246 $ - sve do kraje reda, UKLJUČUJUĆI poslednje slovo.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
247
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
248 Kucanjem de brisaće se tekst od kursora do kraja reči.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
249
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
250 NAPOMENA: Pritiskom samo na taster pokreta dok ste u Normal modu, bez
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
251 operatora, kursor se pomera kao što je opisano.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
252
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
253 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
254 Lekcija 2.4: KORIŠĆENJE BROJANJA ZA POKRETE
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
255
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
256
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
257 ** Unošenjem nekog broja pre pokreta, pokret se izvršava taj broj puta. **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
258
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
259 1. Pomerite kursor na red označen sa --->.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
260
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
261 2. Otkucajte 2w da pomerite kursor dve reči napred.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
262
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
263 3. Otkucajte 3e da pomerite kursor na kraj treće reči napred.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
264
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
265 4. Otkucajte 0 (nulu) da pomerite kursor na početak reda.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
266
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
267 5. Ponovite korake 2 i 3 s nekim drugim brojevima.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
268
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
269 ---> Rečenica sa rečima po kojoj možete pomerati kursor.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
270
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
271 6. Pređite na lekciju 2.5.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
272
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
273
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
274
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
275
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
276 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
277 Lekcija 2.5: KORIŠĆENJE BROJANJA ZA VEĆE BRISANJE
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
278
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
279
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
280 ** Unošenje nekog broja s operatorom ponavlja operator taj broj puta. **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
281
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
282 U kombinaciji operatora brisanja s pokretima spomenutim iznad
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
283 možete uneti broj pre pokreta da biste izbrisali više znakova:
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
284
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
285 d broj pokret
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
286
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
287 1. Pomerite kursor na prvo slovo u reči s VELIKIM SLOVIMA u redu
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
288 označenom sa --->.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
289
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
290 2. Otkucajte d2w da izbrišete dve reči sa VELIKIM SLOVIMA
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
291
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
292 3. Ponovite korake 1 i 2 sa različitim brojevima da izbrišete
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
293 uzastopne reči sa VELIKIM SLOVIMA korišćenjem samo jedne komande.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
294
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
295 ---> ovaj ABCČĆ DĐE red FGHI JK LMN OP s rečima je RSŠ TUVZŽ ispravljen.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
296
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
297
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
298
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
299 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
300 Lekcija 2.6: OPERACIJE NAD REDOVIMA
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
301
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
302
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
303 ** Otkucajte dd za brisanje celog reda. **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
304
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
305 Zbog učestalosti brisanja celih redova, autori Vi-ja odlučili su da
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
306 je lakše brisati redove ako se otkuca d dvaput.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
307
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
308 1. Pomerite kursor na drugi red u donjoj strofi.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
309 2. Otkucajte dd da ga izbrišete.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
310 3. Pomerite kursor na četvrti red.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
311 4. Otkucajte 2dd da biste izbrisali dva reda.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
312
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
313 ---> 1) Sedlo mi je od marame,
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
314 ---> 2) blato na sve strane,
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
315 ---> 3) uzda od kanapa,
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
316 ---> 4) auto mi je ovde,
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
317 ---> 5) satovi pokazuju vreme,
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
318 ---> 6) a bič mi je od očina
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
319 ---> 7) prebijena štapa.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
320
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
321
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
322 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
323 Lekcija 2.7: PONIŠTAVANJE PROMENA
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
324
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
325
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
326 ** Pritisnite u za poništavanje poslednje komande, U za ceo red. **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
327
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
328 1. Pomerite kursor na red označen sa ---> i postavite ga na mesto
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
329 prve greške.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
330 2. Otkucajte x da izbrišete prvi neželjeni znak.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
331 3. Otkucajte u da poništite poslednju izvršenu komandu.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
332 4. Sad ispravite sve greške u redu koristeći komandu x .
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
333 5. Otkucajte veliko U da biste vratili sadržaj reda u prvobitno
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
334 stanje.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
335 6. Onda otkucajte u nekoliko puta da biste poništili U
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
336 i prethodne komande.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
337 7. Sad otkucajte CTRL-R (držeći CTRL dok pritiskate R)
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
338 nekoliko puta da biste vratili izmene (poništili poništavanja).
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
339
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
340 ---> Iiisspravite greške uu ovvom redu ii pooništiteee ih.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
341
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
342 8. Ovo su veoma korisne komande. Pređite na rezime lekcije 2.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
343
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
344
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
345 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
346 REZIME lekcije 2
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
347
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
348
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
349 1. Brisanje od kursora do sledeće reči: dw
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
350 2. Brisanje od kursora do kraja reda: d$
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
351 3. Brisanje celog reda: dd
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
352
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
353 4. Za ponavljanje pokreta prethodno unesite broj: 2w
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
354 5. Oblik komande za izmenu:
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
355 operator [broj] pokret
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
356 gde je:
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
357 operator - šta uraditi, recimo d za brisanje
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
358 [broj] - neobavezan broj ponavljanja pokreta
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
359 pokret - kretanje po tekstu na kome se radi,
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
360 kao što je: w (reč), $ (kraj reda), itd.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
361
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
362 6. Pomeranje kursora na početak reda: 0
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
363
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
364 7. Za poništavanje prethodnih izmena, pritisnite: u (malo u)
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
365 Za poništavanje svih promena u redu, pritisnite: U (veliko U)
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
366 Za vraćanja promena, otkucajte: CTRL-R
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
367
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
368 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
369 Lekcija 3.1: KOMANDA POSTAVLJANJA
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
370
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
371
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
372 ** Otkucajte p da postavite prethodno izbrisan tekst iza kursora. **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
373
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
374 1. Pomerite kursor na prvi sledeći red označen sa --->.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
375
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
376 2. Otkucajte dd da izbrišete red i smestite ga u Vim registar.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
377
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
378 3. Pomerite kursor na red c), IZNAD mesta gde treba postaviti izbrisan red.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
379
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
380 4. Otkucajte p da postavite red ispod kursora.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
381
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
382 5. Ponavljajte korake 2 do 4 da biste postavili sve linije u pravilnom
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
383 redosledu.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
384
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
385 ---> d) prebijena štapa.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
386 ---> b) uzda od kanapa,
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
387 ---> c) a bič mi je od očina
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
388 ---> a) Sedlo mi je od marame,
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
389
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
390
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
391 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
392 Lekcija 3.2: KOMANDA ZAMENE
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
393
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
394
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
395 ** Otkucajte rx da zamenite znak ispod kursora slovom x . **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
396
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
397 1. Pomerite kursor na prvi sledeći red označen sa --->.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
398
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
399 2. Pomerite kursor tako da se nalazi na prvoj grešci.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
400
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
401 3. Otkucajte r i onda znak koji treba da tu stoji.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
402
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
403 4. Ponavljajte korake 2 i 3 sve dok prvi red ne bude
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
404 isti kao drugi.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
405
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
406 ---> Kedi ju ovej red ugašen, nako je protresao pustašne testere!
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
407 ---> Kada je ovaj red unošen, neko je pritiskao pogrešne tastere!
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
408
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
409 5. Pređite na lekciju 3.2.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
410
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
411 NAPOMENA: Setite se da treba da učite vežbanjem, ne pamćenjem.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
412
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
413
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
414 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
415 Lekcija 3.3: OPERATOR IZMENE
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
416
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
417
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
418 ** Za izmenu teksta do kraja reči, otkucajte ce .**
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
419
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
420 1. Pomerite kursor na prvi sledeći red označen sa --->.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
421
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
422 2. Postavite kursor na a u rakdur.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
423
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
424 3. Otkucajte ce i ispravite reč (u ovom slučaju otkucajte ed ).
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
425
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
426 4. Pritisnite <ESC> i pomerite kursor na sledeći znak koji
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
427 treba ispraviti.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
428
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
429 5. Ponavljajte korake 3 i 4 sve dok prva rečenica ne bude ista
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
430 kao druga.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
431
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
432 ---> Ovaj rakdur ima nekoliko rejga koje treflja isprpikati operagrom izmene.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
433 ---> Ovaj red ima nekoliko reči koje treba ispraviti operatorom izmene.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
434
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
435 Uočite da ce briše reč i postavlja editor u Insert mod.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
436
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
437 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
438 Lekcija 3.4: DALJE IZMENE UPOTREBOM c
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
439
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
440
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
441 ** Komanda izmene se koristi sa istim pokretima kao i brisanje. **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
442
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
443 1. Operator izmene se koristi na isti način kao i operator brisanja:
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
444
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
445 c [broj] pokret
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
446
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
447 2. Pokreti su isti, recimo: w (reč) i $ (kraj reda).
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
448
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
449 3. Pomerite kursor na prvi sledeći red označen sa --->.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
450
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
451 4. Pomerite kursor na prvu grešku.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
452
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
453 5. Otkucajte c$ i unesite ostatak reda tako da bude isti kao
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
454 drugi red, pa pritisnite <ESC>.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
455
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
456 ---> Kraj ovog reda treba izmeniti tako da izgleda kao red ispod.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
457 ---> Kraj ovog reda treba ispraviti korišćenjem c$ komande.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
458
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
459 NAPOMENA: Za ispravljanje grešaka možete koristiti Backspace .
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
460 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
461 REZIME lekcije 3
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
462
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
463
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
464 1. Za postavljanje teksta koji ste upravo izbrisali, pritisnite p . Ovo
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
465 postavlja tekst IZA kursora (ako je bio izbrisan jedan ili više redova
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
466 sadržaj će doći na red ispod kursora).
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
467
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
468 2. Za zamenu znaka na kome se nalazi kursor, pritisnite r i onda
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
469 željeni znak.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
470
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
471 3. Operator izmene dozvoljava promenu teksta od kursora do pozicije gde
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
472 se završava pokret. Primera radi, kucajte ce za izmenu od kursora do
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
473 kraja reči, ili c$ za izmenu od kursora do kraja reda.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
474
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
475 4. Oblik operacije izmene je:
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
476
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
477 c [broj] pokret
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
478
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
479 Pređite na narednu lekciju.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
480
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
481
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
482
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
483 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
484 Lekcija 4.1: POZICIJA KURSORA I STATUS FAJLA
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
485
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
486 ** Pritisnite CTRL-G za prikaz pozicije kursora u tekstu i status fajla.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
487 Pritisnite G za pomeranje kursora na neki red u tekstu. **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
488
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
489 NAPOMENA: Pročitajte celu lekciju pre izvođenja bilo kog koraka!!
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
490
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
491 1. Držite taster CTRL i pritisnite g . Ovo zovemo CTRL-G.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
492 Editor će na dnu ekrana ispisati poruku sa imenom fajla i pozicijom
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
493 kursora u tekstu. Zapamtite broj reda za 3. korak.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
494
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
495 NAPOMENA: U donjem desnom uglu može se videti poziciju kursora ako je
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
496 uključena opcija 'ruler' (vidi :help ruler ili lekciju 6.5.)
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
497
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
498 2. Pritisnite G za pomeranje kursora na kraj teksta.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
499 Pritisnite 1G ili gg za pomranje kursora na početak teksta.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
500
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
501 3. Otkucajte broj reda na kome ste malopre bili i onda G . Kursor
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
502 će se vratiti na red na kome je bio kad ste otkucali CTRL-G.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
503
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
504 4. Ako ste spremni, izvršite korake od 1 do 3.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
505
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
506 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
507 Lekcija 4.2: KOMANDE PRETRAŽIVANJA
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
508
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
509 ** Otkucajte / i onda izraz koji želite da potražite. **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
510
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
511 1. U Normal modu otkucajte znak / . Primietite da se znak pojavio
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
512 zajedno sa kursorom na dnu ekrana kao i kod komande : .
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
513
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
514 2. Sada otkucajte 'grrreška' <ENTER>. (Bez razmaka i navodnika.)
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
515 To je reč koju tražite.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
516
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
517 3. Za ponovno traženje istog izraza, otkucajte n .
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
518 Za traženje istog izraza u suprotnom smeru, otkucajte N .
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
519
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
520 4. Za traženje izraza unatrag, koristite ? umesto / .
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
521
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
522 5. Za povratak na prethodnu poziciju otkucajte CTRL-O (držite CTRL dok
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
523 pritiskate O ). Ponavljajte za ranije pozicije. CTRL-I ide napred.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
524
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
525 ---> "grrreška" je pogrešno; umesto grrreška treba da stoji greška.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
526
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
527 NAPOMENA: Ako pretraga dođe do kraja teksta traženje će se nastaviti od
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
528 njegovog početka osim ako je opcija 'wrapscan' isključena.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
529 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
530 Lekcija 4.3: TRAŽENJE PARA ZAGRADE
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
531
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
532
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
533 ** Otkucajte % za nalaženje para ), ] ili } . **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
534
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
535 1. Postavite kursor na bilo koju od ( , [ ili {
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
536 otvorenih zagrada u redu označenom sa --->.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
537
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
538 2. Otkucajte znak % .
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
539
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
540 3. Kursor će se pomeriti na odgovarajuću zatvorenu zagradu.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
541
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
542 4. Otkucajte % da pomerite kursor na prvu zagradu u paru.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
543
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
544 5. Pomerite kursor na neku od (,),[,],{ ili } i ponovite komandu % .
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
545
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
546 ---> Red ( testiranja običnih ( [ uglastih ] i { vitičastih } zagrada.))
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
547
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
548
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
549 NAPOMENA: Vrlo korisno u ispravljanju koda sa rasparenim zagradama!
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
550
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
551
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
552 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
553 Lekcija 4.4: KOMANDA ZAMENE
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
554
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
555
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
556 ** Otkucajte :s/staro/novo/g da zamenite 'staro' za 'novo'. **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
557
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
558 1. Pomerite kursor na red označen sa --->.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
559
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
560 2. Otkucajte :s/rdi/ri/ <ENTER> . Primetite da ova komanda zamenjuje
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
561 samo prvo "rdi" u redu.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
562
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
563 3. Otkucajte :s/rdi/ri/g . Dodavanje opcije g znači da će se komanda
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
564 izvršiti u celom redu, zamenom svih pojava niza "rdi".
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
565
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
566 ---> rdiba rdibi grdize rep.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
567
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
568 4. Za zamenu svih izraza između neka dva reda,
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
569 otkucajte :#,#s/staro/novo/g gde su #,# krajnji brojevi redova u opsegu
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
570 u kome će se obaviti zamena.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
571 Otkucajte :%s/staro/novo/g za zamenu svih izraza u celom tekstu.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
572 Otkucajte :%s/staro/novo/gc za nalaženje svih izraza u tekstu i
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
573 potvrdu zamene.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
574
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
575 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
576 REZIME lekcije 4
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
577
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
578
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
579 1. CTRL-G prikazuje poziciju kursora u tekstu i status fajla.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
580 G pomera kursor na kraj teksta.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
581 broj G pomera kursor na navedeni red.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
582 gg pomera kursor na prvi red teksta.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
583
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
584 2. Kucanjem / sa izrazom taj izraz se traži UNAPRED.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
585 Kucanjem ? sa izrazom taj izraz se traži UNAZAD.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
586 Posle komande traženja koristite n za nalaženje izraza u istom
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
587 smeru, a N za nalaženje u suprotnom smeru.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
588 CTRL-O vraća kursor na prethodnu poziciju, a CTRL-I na narednu.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
589
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
590 3. Kucanjem % kad je kursor na zagradi on se pomera na njen par.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
591
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
592 4. Za zamenu prvog izraza staro za izraz novo :s/staro/novo/
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
593 Za zamenu svih izraza u celom redu :s/staro/novo/g
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
594 Za zamenu svih izraza u opsegu linija #,# :#,#s/staro/novo/g
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
595 Za zamenu u celom tekstu :%s/staro/novo/g
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
596 Za potvrdu svake zamene dodajte 'c' :%s/staro/novo/gc
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
597
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
598 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
599 Lekcija 5.1: IZVRŠAVANJE SPOLJAŠNJIH KOMANDI
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
600
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
601
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
602 ** Otkucajte :! pa spoljašnju komandu koju želite da izvršite. **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
603
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
604 1. Otkucajte poznatu komandu : da biste namestili kursor na dno
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
605 ekrana. Time omogućavate unos komande u komandnoj liniji editora.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
606
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
607 2. Otkucajte znak ! (uzvičnik). Ovime omogućavate
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
608 izvršavanje bilo koje spoljašnje komande.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
609
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
610 3. Kao primer otkucajte ls posle ! i pritisnite <ENTER>. Ovo će
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
611 prikazati sadržaj direktorijuma, kao da ste na komandnom promptu.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
612 Otkucajte :!dir ako :!ls ne radi.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
613
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
614 NAPOMENA: Na ovaj način moguće je izvršiti bilo koju spoljašnju komandu,
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
615 zajedno sa njenim argumentima.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
616
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
617 NAPOMENA: Sve : komande se izvršavaju pošto pritisnete <ENTER> .
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
618 U daljem tekstu to nećemo uvek napominjati.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
619
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
620
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
621 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
622 Lekcija 5.2: VIŠE O SNIMANJU FAJLOVA
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
623
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
624 ** Za snimanje promena, otkucajte :w IME_FAJLA . **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
625
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
626 1. Otkucajte :!dir ili :!ls za pregled sadržaja direktorijuma.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
627 Već znate da morate pritisnuti <ENTER> posle toga.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
628
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
629 2. Izaberite ime fajla koji još ne postoji, npr. TEST.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
630
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
631 3. Otkucajte: :w TEST (gde je TEST ime koje ste izabrali.)
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
632
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
633 4. Time ćete snimiti ceo fajl (Vim Tutor) pod imenom TEST.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
634 Za proveru, otkucajte opet :!dir ili :!ls za pregled
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
635 sadržaja direktorijuma.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
636
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
637 NAPOMENA: Ako biste napustili Vim i ponovo ga pokrenuli sa vim TEST ,
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
638 tekst bi bio tačna kopija ovog fajla u trenutku kad ste
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
639 ga snimili.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
640
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
641 5. Izbrišite fajl tako što ćete otkucati (MS-DOS): :!del TEST
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
642 ili (Unix): :!rm TEST
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
643
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
644 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
645 Lekcija 5.3: SNIMANJE OZNAČENOG TEKSTA
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
646
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
647
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
648 ** Da biste snimili deo teksta, otkucajte v pokret :w IME_FAJLA **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
649
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
650 1. Pomerite kursor na ovu liniju.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
651
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
652 2. Pritisnite v i pomerite kursor pet redova ispod. Primetite da je
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
653 tekst označen inverzno.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
654
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
655 3. Pritisnite : . Na dnu ekrana pojaviće se :'<,'> .
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
656
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
657 4. Otkucajte w TEST , gde je TEST ime fajla koji još ne postoji.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
658 Proverite da zaista piše :'<,'>w TEST pre nego što pritisnete <ENTER>.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
659
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
660 5. Vim će snimiti označeni tekst u TEST. Proverite sa :!dir ili !ls .
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
661 Nemojte još brisati fajl! Koristićemo ga u narednoj lekciji.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
662
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
663 NAPOMENA: Komanda v započinje vizuelno označavanje. Možete pomerati kursor
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
664 i tako menjati veličinu označenog teksta. Onda možete upotrebiti
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
665 operatore nad tekstom. Na primer, d će izbrisati označeni tekst.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
666
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
667 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
668 Lekcija 5.4: UČITAVANJE FAJLA U TEKST
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
669
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
670
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
671 ** Za ubacivanje sadržaja fajla, otkucajte :r IME_FAJLA **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
672
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
673 1. Postavite kursor iznad ove linije.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
674
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
675 NAPOMENA: Pošto izvršite 2. korak videćete tekst iz lekcije 5.3. Tada
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
676 pomerite kursor DOLE da biste ponovo videli ovu lekciju.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
677
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
678 2. Učitajte fajl TEST koristeći komandu :r TEST gde je TEST ime fajla
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
679 koje ste koristili u prethodnoj lekciji. Sadržaj učitanog fajla je
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
680 ubačen ispod kursora.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
681
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
682 3. Da biste proverili da je fajl učitan, vratite kursor unazad i
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
683 primetite dve kopije lekcije 5.3, originalnu i onu iz fajla.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
684
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
685 NAPOMENA: Takođe možete učitati izlaz spoljašnje komande. Na primer,
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
686 :r !ls će učitati izlaz komande ls i postaviti ga ispod
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
687 kursora.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
688
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
689
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
690 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
691 REZIME lekcije 5
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
692
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
693
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
694 1. :!komanda izvršava spoljašnju komandu.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
695
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
696 Korisni primeri:
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
697 (MS-DOS) (Unix)
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
698 :!dir :!ls - pregled sadržaja direktorijuma.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
699 :!del FAJL :!rm FAJL - briše fajl FAJL.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
700
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
701 2. :w FAJL zapisuje trenutni tekst na disk pod imenom FAJL.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
702
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
703 3. v pokret :w IME_FAJLA snima vizuelno označene redove u fajl
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
704 IME_FAJLA.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
705
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
706 4. :r IME_FAJLA učitava fajl IME_FAJLA sa diska i stavlja
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
707 njegov sadržaj ispod kursora.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
708
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
709 5. :r !dir učitava izlaz komande dir i postavlja ga ispod kursora.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
710
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
711
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
712
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
713 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
714 Lekcija 6.1: KOMANDA OTVORI
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
715
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
716
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
717 ** Pritisnite o da biste otvorili red ispod kursora
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
718 i prešli u Insert mod. **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
719
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
720 1. Pomerite kursor na sledeći red označen sa --->.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
721
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
722 2. Otkucajte malo o da biste otvorili novi red ISPOD kursora
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
723 i prešli u Insert mod.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
724
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
725 3. Otkucajte neki tekst i onda pritisnite <ESC> da biste izašli
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
726 iz Insert moda.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
727
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
728 ---> Kad pritisnete o kursor prelazi u novootvoreni red u Insert modu.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
729
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
730 4. Za otvaranje reda IZNAD kursora, umesto malog otkucajte veliko O .
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
731 Isprobajte na donjem redu označenom sa --->.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
732
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
733 ---> Otvorite red iznad ovog kucanjem velikog O dok je kursor u ovom redu.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
734
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
735
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
736 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
737 Lekcija 6.2: KOMANDA DODAJ
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
738
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
739
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
740 ** Otkucajte a za dodavanje teksta IZA kursora. **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
741
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
742 1. Pomerite kursor na početak sledećeg reda označenog sa --->.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
743
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
744 2. Kucajte e dok kursor ne dođe na kraj reči re .
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
745
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
746 3. Otkucajte a (malo) da biste dodali tekst IZA kursora.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
747
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
748 4. Dopunite reč kao što je u redu ispod. Pritisnite <ESC> za izlazak
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
749 iz Insert moda.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
750
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
751 5. Sa e pređite na narednu nepotpunu reč i ponovite korake 3 i 4.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
752
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
753 ---> Ovaj re omogućava ve dodav teksta u nekom redu.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
754 ---> Ovaj red omogućava vežbanje dodavanja teksta u nekom redu.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
755
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
756 NAPOMENA: Komande a, i, i A aktiviraju isti Insert mod, jedina
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
757 razlika je u poziciji od koje će se tekst ubacivati.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
758
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
759 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
760 Lekcija 6.3: DRUGI NAČIN ZAMENE
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
761
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
762
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
763 ** Otkucajte veliko R da biste zamenili više od jednog znaka. **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
764
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
765 1. Pomerite kursor na prvi sledeći red označen sa --->.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
766 Pomerite kursor na početak prvog xxx .
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
767
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
768 2. Pritisnite R i otkucajte broj koji je red ispod,
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
769 tako da zameni xxx .
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
770
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
771 3. Pritisnite <ESC> za izlazak iz Replace moda.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
772 Primetite da je ostatak reda ostao nepromenjen.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
773
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
774 4. Ponovite korake da biste zamenili drugo xxx.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
775
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
776 ---> Dodavanje 123 na xxx daje xxx.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
777 ---> Dodavanje 123 na 456 daje 579.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
778
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
779 NAPOMENA: Replace mod je kao Insert mod, s tom razlikom što svaki
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
780 uneti znak briše već postojeći.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
781
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
782 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
783 Lekcija 6.4: KOPIRANJE I LEPLJENJE TEKSTA
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
784
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
785
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
786 ** Koristite operator y za kopiranje a p za lepljenje teksta. **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
787
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
788 1. Pomerite kursor na red sa ---> i postavite kursor posle "a)".
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
789
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
790 2. Aktivirajte Visual mod sa v i pomerite kursor sve do ispred "prvi".
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
791
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
792 3. Pritisnite y da biste kopirali označeni tekst u interni bafer.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
793
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
794 4. Pomerite kursor do kraja sledećeg reda: j$
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
795
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
796 5. Pritisnite p da biste zalepili tekst. Onda otkucajte: a drugi <ESC> .
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
797
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
798 6. Upotrebite Visual mod da označite " red.", kopirajte sa y , kursor
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
799 pomerite na kraj sledećeg reda sa j$ i tamo zalepite tekst sa p .
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
800
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
801 ---> a) ovo je prvi red.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
802 b)
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
803
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
804 NAPOMENA: takođe možete koristiti y kao operator; yw kopira jednu reč.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
805 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
806 Lekcija 6.5: POSTAVLJANJE OPCIJA
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
807
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
808
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
809 ** Postavite opciju tako da traženje i zamena ignorišu veličinu slova **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
810
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
811 1. Potražite reč 'razlika': /razlika <ENTER>
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
812 Ponovite nekoliko puta pritiskom na n .
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
813
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
814 2. Aktivirajte opciju 'ic' (Ignore case): :set ic
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
815
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
816 3. Ponovo potražite reč 'razlika' pritiskom na n
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
817 Primetite da su sada pronađeni i RAZLIKA i Razlika.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
818
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
819 4. Aktivirajte opcije 'hlsearch' i 'incsearch': :set hls is
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
820
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
821 5. Ponovo otkucajte komandu traženja i uočite razlike: /razlika <ENTER>
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
822
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
823 6. Za deaktiviranje opcije ic kucajte: :set noic
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
824
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
825 NAPOMENA: Za neoznačavanje pronađenih izraza otkucajte: :nohlsearch
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
826 NAPOMENA: Ako želite da ne razlikujete veličinu slova u samo jednoj komandi
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
827 traženja, dodajte \c u izraz: /razlika\c <ENTER>
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
828 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
829 REZIME lekcije 6
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
830
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
831 1. Pritisnite o za otvaranje reda ISPOD kursora i prelazak u Insert mod.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
832 Pritisnite O za otvaranje reda IZNAD kursora.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
833
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
834 2. Pritisnite a za unos teksta IZA kursora.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
835 Pritisnite A za unos teksta na kraju reda.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
836
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
837 3. Komanda e pomera kursor na kraj reči.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
838
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
839 4. Operator y kopira tekst, p ga lepi.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
840
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
841 5. Kucanje velikog R aktivira Replace mod dok ne pritisnete <ESC> .
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
842
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
843 6. Kucanje ":set xxx" aktivira opciju "xxx". Neke opcije su:
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
844 'ic' 'ignorecase' ne razlikuje velika/mala slova pri traženju
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
845 'is' 'incsearch' prikazuje pronađen tekst dok kucate izraz
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
846 'hls' 'hlsearch' označava inverzno sve pronađene izraze
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
847 Možete koristite dugo ili kratko ime opcije.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
848
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
849 7. Ispred imena opcije stavite "no" da je deaktivirate: :set noic
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
850
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
851 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
852 Lekcija 7.1: DOBIJANJE POMOĆI
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
853
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
854
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
855 ** Koristite on-line sistem za pomoć **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
856
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
857 Vim ima detaljan on-line sistem za pomoć. Za početak, pokušajte nešto
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
858 od sledećeg:
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
859 - pritisnite taster <HELP> (ako ga imate na tastaturi)
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
860 - pritisnite taster <F1> (ako ga imate na tastaturi)
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
861 - otkucajte :help <ENTER>
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
862
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
863 Pročitajte tekst u prozoru pomoći da biste naučili pomoć radi.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
864 Kucanjem CTRL-W CTRL-W prelazite iz jednog prozora u drugi.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
865 Otkucajte :q <ENTER> da zatvorite prozor pomoći.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
866
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
867 Pomoć o praktično bilo kojoj temi možete dobiti dodavanjem argumenta
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
868 komandi ":help". Pokušajte ovo (ne zaboravite <ENTER> na kraju):
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
869
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
870 :help w
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
871 :help c_CTRL-D
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
872 :help insert-index
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
873 :help user-manual
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
874 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
875 Lekcija 7.2: PRAVLJENJE STARTNOG SKRIPTA
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
876
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
877
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
878 ** Aktivirajte mogućnosti editora **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
879
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
880 Vim ima mnogo više mogućnosti nego Vi, ali većina nije automatski
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
881 aktivirana. Za dodatne mogućnosti napravite "vimrc" fajl.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
882
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
883 1. Otvorite "vimrc" fajl. Ovo zavisi od vašeg sistema:
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
884 :e ~/.vimrc za Unix
24751
e69e7133c9cf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 6009
diff changeset
885 :e ~/_vimrc za MS-Windows
6009
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
886
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
887 2. Onda učitajte primer sadržaja "vimrc" fajla:
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
888 :r $VIMRUNTIME/vimrc_example.vim
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
889
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
890 3. Snimite fajl sa:
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
891 :w
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
892
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
893 Sledeći put kada pokrenete Vim, bojenje sintakse teksta biće
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
894 aktivirano. Sva svoja podešavanja možete dodati u "vimrc" fajl.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
895 Za više informacija otkucajte :help vimrc-intro
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
896
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
897 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
898 Lekcija 7.3: AUTOMATSKO DOVRŠAVANJE
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
899
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
900
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
901 ** Dovršavanje komandne linije sa CTRL-D i <TAB> **
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
902
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
903 1. Podesite Vim da ne bude u Vi-kompatibilnom modu: :set nocp
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
904
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
905 2. Pogledajte koji fajlovi postoje u direktorijumu: :!ls ili :!dir
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
906
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
907 3. Otkucajte početak komande: :e
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
908
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
909 4. Otkucajte CTRL-D i Vim će prikazati spisak komandi koje počinju sa "e".
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
910
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
911 5. Pritisnite <TAB> i Vim će dopuniti ime komande u ":edit".
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
912
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
913 6. Dodajte razmak i početak imena postojećeg fajla: :edit FA
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
914
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
915 7. Pritisnite <TAB>. Vim će dopuniti ime fajla (ako je jedinstveno).
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
916
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
917 NAPOMENA: Moguće je dopuniti mnoge komande. Samo probajte CTRL-D i <TAB>.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
918 Naročito je korisno za :help komande.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
919
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
920 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
921 REZIME lekcije 7
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
922
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
923
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
924 1. Otkucajte :help ili pritisnite <F1> ili <Help> za pomoć.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
925
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
926 2. Otkucajte :help komanda biste dobili pomoć za tu komandu.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
927
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
928 3. Otkucajte CTRL-W CTRL-W za prelazak u drugi prozor.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
929
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
930 4. Otkucajte :q da zatvorite prozor pomoći.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
931
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
932 5. Napravite vimrc startni skript za aktiviranje podešavanja koja
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
933 vam odgovaraju.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
934
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
935 6. Dok kucate neku od : komandi, pritisnite CTRL-D da biste videli moguće
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
936 vrednosti. Pritisnite <TAB> da odaberete jednu od njih.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
937
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
938
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
939
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
940
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
941
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
942
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
943 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
944 Ovim je priručnik završen. Njegov cilj je bio kratak pregled Vim editora,
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
945 koliko da omogući njegovo relativno jednostavno korišćenje. Priručnik nije
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
946 potpun, jer Vim ima mnogo više komandi. Kao sledeće, pročitajte priručnik:
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
947 ":help user-manual".
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
948
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
949 Za dalje čitanje i učenje, preporučujemo knjigu:
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
950 Vim - Vi Improved - by Steve Oualline
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
951 Izdavač: New Riders
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
952 Prva knjiga potpuno posvećena Vim-u. Naročito korisna za početnike.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
953 Ima mnoštvo primera i slika.
27623
179c118424a6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24751
diff changeset
954 Vidite https://iccf-holland.org/click5.html
6009
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
955
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
956 Sledeća knjiga je starija i više govori o Vi-u nego o Vim-u, ali je takođe
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
957 preporučujemo:
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
958 Learning the Vi Editor - by Linda Lamb
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
959 Izdavač: O'Reilly & Associates Inc.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
960 Dobra knjiga iz koje možete saznati skoro sve što možete raditi u Vi-ju.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
961 Šesto izdanje ima i informacija o Vim-u.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
962
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
963 Ovaj priručnik su napisali: Michael C. Pierce i Robert K. Ware,
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
964 Colorado School of Mines koristeći ideje Charlesa Smitha,
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
965 Colorado State University. E-mail: bware@mines.colorado.edu.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
966
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
967 Prilagođavanje za Vim uradio je Bram Moolenaar.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
968
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
969 Prevod na srpski: Ivan Nejgebauer <ian@uns.ac.rs>
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
970 Verzija 1.0, maj/juni 2014.
7b83c190d370 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
971 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~