annotate runtime/tutor/tutor.no.utf-8 @ 8466:e9e6914bef63

Added tag v7.4.1523 for changeset 5927180d0b4d728c5557d7a94f253cecd5b318b8
author Christian Brabandt <cb@256bit.org>
date Tue, 08 Mar 2016 21:00:05 +0100
parents 1003f9b262d7
children e69e7133c9cf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1621
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
1 ===============================================================================
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
2 = V e l k o m m e n t i l i n n f ø r i n g e n i V i m -- Ver. 1.7 =
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
3 ===============================================================================
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
4
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
5 Vim er en meget kraftig editor med mange kommandoer, alt for mange til å
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
6 kunne gå gjennom alle i en innføring som denne. Den er beregnet på å
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
7 sette deg inn i bruken av nok kommandoer så du vil være i stand til lett
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
8 å kunne bruke Vim som en editor til alle formål.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
9
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
10 Tiden som kreves for å gå gjennom denne innføringen tar ca. 25-30
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
11 minutter, avhengig av hvor mye tid du bruker til eksperimentering.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
12
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
13 MERK:
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
14 Kommandoene i leksjonene vil modifisere teksten. Lag en kopi av denne
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
15 filen som du kan øve deg på (hvis du kjørte «vimtutor»-kommandoen, er
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
16 dette allerede en kopi).
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
17
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
18 Det er viktig å huske at denne innføringen er beregnet på læring gjennom
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
19 bruk. Det betyr at du må utføre kommandoene for å lære dem skikkelig.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
20 Hvis du bare leser teksten, vil du glemme kommandoene!
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
21
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
22 Først av alt, sjekk at «Caps Lock» IKKE er aktiv og trykk «j»-tasten for
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
23 å flytte markøren helt til leksjon 1.1 fyller skjermen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
24 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
25 Leksjon 1.1: FLYTTING AV MARKØREN
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
26
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
27
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
28 ** For å flytte markøren, trykk tastene h, j, k, l som vist. **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
29 ^
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
30 k Tips: h-tasten er til venstre og flytter til venstre.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
31 < h l > l-tasten er til høyre og flytter til høyre.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
32 j j-tasten ser ut som en pil som peker nedover.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
33 v
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
34 1. Flytt markøren rundt på skjermen til du har fått det inn i fingrene.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
35
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
36 2. Hold inne nedovertasten (j) til den repeterer.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
37 Nå vet du hvordan du beveger deg til neste leksjon.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
38
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
39 3. Gå til leksjon 1.2 ved hjelp av nedovertasten.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
40
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
41 Merk: Hvis du blir usikker på noe du har skrevet, trykk <ESC> for å gå til
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
42 normalmodus. Skriv deretter kommandoen du ønsket på nytt.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
43
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
44 Merk: Piltastene skal også virke. Men ved å bruke hjkl vil du være i stand til
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
45 å bevege markøren mye raskere når du er blitt vant til det. Helt sant!
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
46
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
47 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
48 Leksjon 1.2: AVSLUTTE VIM
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
49
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
50
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
51 !! MERK: Før du utfører noen av punktene nedenfor, les hele leksjonen!!
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
52
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
53 1. Trykk <ESC>-tasten (for å forsikre deg om at du er i normalmodus).
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
54
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
55 2. Skriv: :q! <ENTER>.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
56 Dette avslutter editoren og FORKASTER alle forandringer som du har gjort.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
57
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
58 3. Når du ser kommandolinjen i skallet, skriv kommandoen som startet denne
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
59 innføringen. Den er: vimtutor <ENTER>
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
60
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
61 4. Hvis du er sikker på at du husker dette, utfør punktene 1 til 3 for å
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
62 avslutte og starte editoren på nytt.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
63
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
64 MERK: :q! <ENTER> forkaster alle forandringer som du gjorde. I løpet av noen
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
65 få leksjoner vil du lære hvordan du lagrer forandringene til en fil.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
66
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
67 5. Flytt markøren ned til leksjon 1.3.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
68
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
69
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
70 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
71 Leksjon 1.3: REDIGERING AV TEKST -- SLETTING
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
72
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
73
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
74 ** Trykk x for å slette tegnet under markøren. **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
75
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
76 1. Flytt markøren til den første linjen merket med --->.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
77
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
78 2. For å ordne feilene på linjen, flytt markøren til den er oppå tegnet som
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
79 skal slettes.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
80
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
81 3. Trykk tasten x for å slette det uønskede tegnet.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
82
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
83 4. Repeter punkt 2 til 4 til setningen er lik den som er under.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
84
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
85 ---> Hessstennnn brrråsnudddde ii gaaata.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
86 ---> Hesten bråsnudde i gata.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
87
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
88 5. Nå som linjen er korrekt, gå til leksjon 1.4.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
89
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
90 MERK: Når du går gjennom innføringen, ikke bare prøv å huske kommandoene, men
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
91 bruk dem helt til de sitter.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
92
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
93 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
94 Leksjon 1.4: REDIGERING AV TEKST -- INNSETTING
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
95
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
96
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
97 ** Trykk i for å sette inn tekst. **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
98
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
99 1. Flytt markøren til den første linjen som er merket med --->.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
100
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
101 2. For å gjøre den første linjen lik den andre, flytt markøren til den står
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
102 på tegnet ETTER posisjonen der teksten skal settes inn.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
103
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
104 3. Trykk i og skriv inn teksten som mangler.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
105
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
106 4. Etterhvert som hver feil er fikset, trykk <ESC> for å returnere til
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
107 normalmodus. Repeter punkt 2 til 4 til setningen er korrekt.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
108
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
109 ---> Det er tkst som mnglr .
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
110 ---> Det er ganske mye tekst som mangler her.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
111
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
112 5. Når du føler deg komfortabel med å sette inn tekst, gå til oppsummeringen
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
113 nedenfor.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
114
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
115
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
116 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
117 Leksjon 1.5: REDIGERING AV TEKST -- LEGGE TIL
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
118
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
119
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
120 ** Trykk A for å legge til tekst. **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
121
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
122 1. Flytt markøren til den første linjen nedenfor merket --->.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
123 Det har ikke noe å si hvor markøren er plassert på den linjen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
124
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
125 2. Trykk A og skriv inn det som skal legges til.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
126
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
127 3. Når teksten er lagt til, trykk <ESC> for å returnere til normalmodusen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
128
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
129 4. Flytt markøren til den andre linjen markert med ---> og repeter steg 2 og
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
130 3 for å reparere denne setningen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
131
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
132 ---> Det mangler noe tekst p
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
133 Det mangler noe tekst på denne linjen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
134 ---> Det mangler også litt tek
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
135 Det mangler også litt tekst på denne linjen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
136
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
137 5. Når du føler at du behersker å legge til tekst, gå til leksjon 1.6.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
138
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
139 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
140 Leksjon 1.6: REDIGERE EN FIL
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
141
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
142
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
143 ** Bruk :wq for å lagre en fil og avslutte. **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
144
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
145 !! MERK: Før du utfører noen av stegene nedenfor, les hele denne leksjonen!!
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
146
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
147 1. Avslutt denne innføringen som du gjorde i leksjon 1.2: :q!
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
148
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
149 2. Skriv denne kommandoen på kommandolinja: vim tutor <ENTER>
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
150 «vim» er kommandoen for å starte Vim-editoren, «tutor» er navnet på fila
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
151 som du vil redigere. Bruk en fil som kan forandres.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
152
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
153 3. Sett inn og slett tekst som du lærte i de foregående leksjonene.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
154
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
155 4. Lagre filen med forandringene og avslutt Vim med: :wq <ENTER>
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
156
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
157 5. Start innføringen på nytt og flytt ned til oppsummeringen som følger.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
158
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
159 6. Etter å ha lest og forstått stegene ovenfor: Sett i gang.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
160
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
161
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
162 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
163 OPPSUMMERING AV LEKSJON 1
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
164
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
165
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
166 1. Markøren beveges ved hjelp av piltastene eller hjkl-tastene.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
167 h (venstre) j (ned) k (opp) l (høyre)
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
168
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
169 2. For å starte Vim fra skall-kommandolinjen, skriv: vim FILNAVN <ENTER>
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
170
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
171 3. For å avslutte Vim, skriv: <ESC> :q! <ENTER> for å forkaste endringer.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
172 ELLER skriv: <ESC> :wq <ENTER> for å lagre forandringene.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
173
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
174 4. For å slette tegnet under markøren, trykk: x
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
175
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
176 5. For å sette inn eller legge til tekst, trykk:
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
177 i skriv innsatt tekst <ESC> sett inn før markøren
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
178 A skriv tillagt tekst <ESC> legg til på slutten av linjen
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
179
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
180 MERK: Når du trykker <ESC> går du til normalmodus eller du avbryter en uønsket
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
181 og delvis fullført kommando.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
182
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
183 Nå kan du gå videre til leksjon 2.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
184
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
185 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
186 Leksjon 2.1: SLETTEKOMMANDOER
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
187
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
188
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
189 ** Trykk dw for å slette et ord. **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
190
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
191 1. Trykk <ESC> for å være sikker på at du er i normalmodus.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
192
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
193 2. Flytt markøren til den første linjen nedenfor merket --->.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
194
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
195 3. Flytt markøren til begynnelsen av ordet som skal slettes.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
196
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
197 4. Trykk dw og ordet vil forsvinne.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
198
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
199 MERK: Bokstaven d vil komme til syne på den nederste linjen på skjermen når
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
200 du skriver den. Vim venter på at du skal skrive w . Hvis du ser et annet
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
201 tegn enn d har du skrevet noe feil; trykk <ESC> og start på nytt.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
202
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
203 ---> Det er agurk tre ord eple som ikke hører pære hjemme i denne setningen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
204 ---> Det er tre ord som ikke hører hjemme i denne setningen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
205
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
206 5. Repeter punkt 3 og 4 til den første setningen er lik den andre. Gå
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
207 deretter til leksjon 2.2.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
208 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
209 Leksjon 2.2: FLERE SLETTEKOMMANDOER
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
210
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
211
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
212 ** Trykk d$ for å slette til slutten av linjen. **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
213
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
214 1. Trykk <ESC> for å være sikker på at du er i normalmodus.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
215
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
216 2. Flytt markøren til linjen nedenfor merket --->.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
217
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
218 3. Flytt markøren til punktet der linjen skal kuttes (ETTER første punktum).
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
219
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
220 4. Trykk d$ for å slette alt til slutten av linjen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
221
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
222 ---> Noen skrev slutten på linjen en gang for mye. linjen en gang for mye.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
223
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
224 5. Gå til leksjon 2.3 for å forstå hva som skjer.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
225
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
226
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
227
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
228
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
229
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
230
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
231 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
232 Leksjon 2.3: OM OPERATORER OG BEVEGELSER
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
233
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
234
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
235 Mange kommandoer som forandrer teksten er laget ut i fra en operator og en
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
236 bevegelse. Formatet for en slettekommando med sletteoperatoren d er:
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
237
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
238 d bevegelse
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
239
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
240 Der:
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
241 d - er sletteoperatoren.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
242 bevegelse - er hva operatoren vil opere på (listet nedenfor).
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
243
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
244 En kort liste med bevegelser:
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
245 w - til starten av det neste ordet, UNNTATT det første tegnet.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
246 e - til slutten av det nåværende ordet, INKLUDERT det siste tegnet.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
247 $ - til slutten av linjen, INKLUDERT det siste tegnet.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
248
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
249 Ved å skrive de vil altså alt fra markøren til slutten av ordet bli
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
250 slettet.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
251
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
252 MERK: Ved å skrive kun bevegelsen i normalmodusen uten en operator vil
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
253 markøren flyttes som spesifisert.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
254 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
255 LEKSJON 2.4: BRUK AV TELLER FOR EN BEVEGELSE
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
256
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
257
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
258 ** Ved å skrive et tall foran en bevegelse repeterer den så mange ganger. **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
259
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
260 1. Flytt markøren til starten av linjen markert ---> nedenfor.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
261
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
262 2. Skriv 2w for å flytte markøren to ord framover.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
263
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
264 3. Skriv 3e for å flytte markøren framover til slutten av det tredje
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
265 ordet.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
266
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
267 4. Skriv 0 (null) for å flytte til starten av linjen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
268
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
269 5. Repeter steg 2 og 3 med forskjellige tall.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
270
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
271 ---> Dette er en linje med noen ord som du kan bevege deg rundt på.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
272
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
273 6. Gå videre til leksjon 2.5.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
274
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
275
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
276
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
277 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
278 Leksjon 2.5: BRUK AV ANTALL FOR Å SLETTE MER
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
279
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
280
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
281 ** Et tall sammen med en operator repeterer den så mange ganger. **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
282
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
283 I kombinasjonen med sletteoperatoren og en bevegelse nevnt ovenfor setter du
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
284 inn antall før bevegelsen for å slette mer:
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
285 d nummer bevegelse
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
286
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
287 1. Flytt markøren til det første ordet med STORE BOKSTAVER på linjen markert
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
288 med --->.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
289
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
290 2. Skriv 2dw for å slette de to ordene med store bokstaver.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
291
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
292 3. Repeter steg 1 og 2 med forskjelling antall for å slette de etterfølgende
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
293 ordene som har store bokstaver.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
294
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
295 ---> Denne ABC DE linjen FGHI JK LMN OP er nå Q RS TUV litt mer lesbar.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
296
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
297 MERK: Et antall mellom operatoren d og bevegelsen virker på samme måte som å
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
298 bruke bevegelsen uten en operator.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
299
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
300 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
301 Leksjon 2.6: OPERERE PÅ LINJER
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
302
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
303
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
304 ** Trykk dd for å slette en hel linje. **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
305
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
306 På grunn av at sletting av linjer er mye brukt, fant utviklerne av Vi ut at
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
307 det vil være lettere å rett og slett trykke to d-er for å slette en linje.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
308
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
309 1. Flytt markøren til den andre linjen i verset nedenfor.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
310 2. Trykk dd å slette linjen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
311 3. Flytt deretter til den fjerde linjen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
312 4. Trykk 2dd for å slette to linjer.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
313
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
314 ---> 1) Roser er røde,
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
315 ---> 2) Gjørme er gøy,
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
316 ---> 3) Fioler er blå,
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
317 ---> 4) Jeg har en bil,
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
318 ---> 5) Klokker viser tiden,
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
319 ---> 6) Druer er søte
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
320 ---> 7) Og du er likeså.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
321
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
322
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
323 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
324 Leksjon 2.7: ANGRE-KOMMANDOEN
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
325
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
326
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
327 ** Trykk u for å angre siste kommando, U for å fikse en hel linje. **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
328
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
329 1. Flytt markøren til linjen nedenfor merket ---> og plasser den på den
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
330 første feilen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
331 2. Trykk x for å slette det første uønskede tegnet.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
332 3. Trykk så u for å angre den siste utførte kommandoen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
333 4. Deretter ordner du alle feilene på linjene ved å bruke kommandoen x .
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
334 5. Trykk nå en stor U for å sette linjen tilbake til det den var
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
335 originalt.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
336 6. Trykk u noen ganger for å angre U og foregående kommandoer.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
337 7. Deretter trykker du CTRL-R (hold CTRL nede mens du trykker R) noen
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
338 ganger for å gjenopprette kommandoene (omgjøre angrekommandoene).
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
339
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
340 ---> RReparer feiilene påå denne linnnjen oog erssstatt dem meed angre.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
341
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
342 8. Dette er meget nyttige kommandoer. Nå kan du gå til oppsummeringen av
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
343 leksjon 2.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
344
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
345
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
346 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
347 OPPSUMMERING AV LEKSJON 2
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
348
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
349
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
350 1. For å slette fra markøren fram til det neste ordet, trykk: dw
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
351 2. For å slette fra markøren til slutten av en linje, trykk: d$
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
352 3. For å slette en hel linje, trykk: dd
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
353
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
354 4. For å repetere en bevegelse, sett et nummer foran: 2w
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
355 5. Formatet for en forandringskommando er:
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
356 operator [nummer] bevegelse
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
357 der:
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
358 operator - hva som skal gjøres, f.eks. d for å slette
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
359 [nummer] - et valgfritt antall for å repetere bevegelsen
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
360 bevegelse - hva kommandoen skal operere på, eksempelvis w (ord),
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
361 $ (til slutten av linjen) og så videre.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
362
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
363 6. For å gå til starten av en linje, bruk en null: 0
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
364
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
365 7. For å angre tidligere endringer, skriv: u (liten u)
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
366 For å angre alle forandringer på en linje, skriv: U (stor U)
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
367 For å omgjøre angringen, trykk: CTRL-R
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
368
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
369 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
370 Leksjon 3.1: «LIM INN»-KOMMANDOEN
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
371
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
372
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
373 ** Trykk p for å lime inn tidligere slettet tekst etter markøren **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
374
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
375 1. Flytt markøren til den første linjen med ---> nedenfor.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
376
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
377 2. Trykk dd for å slette linjen og lagre den i et Vim-register.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
378
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
379 3. Flytt markøren til c)-linjen, OVER posisjonen linjen skal settes inn.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
380
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
381 4. Trykk p for å legge linjen under markøren.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
382
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
383 5. Repeter punkt 2 til 4 helt til linjene er i riktig rekkefølge.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
384
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
385 ---> d) Kan du også lære?
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
386 ---> b) Fioler er blå,
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
387 ---> c) Intelligens må læres,
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
388 ---> a) Roser er røde,
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
389
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
390
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
391
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
392 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
393 Leksjon 3.2: «ERSTATT»-KOMMANDOEN
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
394
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
395
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
396 ** Trykk rx for å erstatte tegnet under markøren med x. **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
397
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
398 1. Flytt markøren til den første linjen nedenfor merket --->.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
399
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
400 2. Flytt markøren så den står oppå den første feilen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
401
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
402 3. Trykk r og deretter tegnet som skal være der.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
403
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
404 4. Repeter punkt 2 og 3 til den første linjen er lik den andre.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
405
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
406 ---> Da dfnne lynjxn ble zkrevet, var det nøen som tjykket feite taster!
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
407 ---> Da denne linjen ble skrevet, var det noen som trykket feile taster!
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
408
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
409 5. Gå videre til leksjon 3.2.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
410
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
411 MERK: Husk at du bør lære ved å BRUKE, ikke pugge.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
412
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
413
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
414
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
415 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
416 Leksjon 3.3: «FORANDRE»-OPERATOREN
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
417
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
418
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
419 ** For å forandre til slutten av et ord, trykk ce . **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
420
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
421 1. Flytt markøren til den første linjen nedenfor som er merket --->.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
422
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
423 2. Plasser markøren på u i «lubjwr».
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
424
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
425 3. Trykk ce og det korrekte ordet (i dette tilfellet, skriv «injen»).
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
426
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
427 4. Trykk <ESC> og gå til det neste tegnet som skal forandres.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
428
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
429 5. Repeter punkt 3 og 4 helt til den første setningen er lik den andre.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
430
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
431 ---> Denne lubjwr har noen wgh som må forkwåp med «forækzryas»-kommandoen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
432 ---> Denne linjen har noen ord som må forandres med «forandre»-kommandoen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
433
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
434 Vær oppmerksom på at ce sletter ordet og går inn i innsettingsmodus.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
435
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
436
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
437
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
438 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
439 Leksjon 3.4: FLERE FORANDRINGER VED BRUK AV c
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
440
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
441
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
442 ** Forandringskommandoen blir brukt med de samme bevegelser som «slett». **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
443
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
444 1. Forandringsoperatoren fungerer på samme måte som «slett». Formatet er:
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
445
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
446 c [nummer] bevegelse
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
447
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
448 2. Bevegelsene er de samme, som for eksempel w (ord) og $ (slutten av en
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
449 linje).
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
450
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
451 3. Gå til den første linjen nedenfor som er merket --->.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
452
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
453 4. Flytt markøren til den første feilen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
454
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
455 5. Skriv c$ og skriv resten av linjen lik den andre og trykk <ESC>.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
456
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
457 ---> Slutten på denne linjen trenger litt hjelp for å gjøre den lik den neste.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
458 ---> Slutten på denne linjen trenger å bli rettet ved bruk av c$-kommandoen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
459
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
460 MERK: Du kan bruke slettetasten for å rette feil mens du skriver.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
461 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
462 OPPSUMMERING AV LEKSJON 3
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
463
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
464
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
465 1. For å legge tilbake tekst som nettopp er blitt slettet, trykk p . Dette
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
466 limer inn den slettede teksten ETTER markøren (hvis en linje ble slettet
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
467 vil den bli limt inn på linjen under markøren).
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
468
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
469 2. For å erstatte et tegn under markøren, trykk r og deretter tegnet som
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
470 du vil ha der.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
471
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
472 3. Forandringsoperatoren lar deg forandre fra markøren til dit bevegelsen
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
473 tar deg. Det vil si, skriv ce for å forandre fra markøren til slutten
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
474 av ordet, c$ for å forandre til slutten av linjen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
475
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
476 4. Formatet for «forandre» er:
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
477
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
478 c [nummer] bevegelse
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
479
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
480 Nå kan du gå til neste leksjon.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
481
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
482
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
483
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
484 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
485 Leksjon 4.1: POSISJONERING AV MARKØREN OG FILSTATUS
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
486
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
487 ** Trykk CTRL-G for å vise posisjonen i filen og filstatusen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
488 Trykk G for å gå til en spesifikk linje i filen. **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
489
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
490 Merk: Les hele leksjonen før du utfører noen av punktene!
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
491
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
492 1. Hold nede Ctrl-tasten og trykk g . Vi kaller dette CTRL-G. En melding
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
493 vil komme til syne på bunnen av skjermen med filnavnet og posisjonen i
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
494 filen. Husk linjenummeret for bruk i steg 3.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
495
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
496 Merk: Du kan se markørposisjonen i nederste høyre hjørne av skjermen. Dette
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
497 skjer når «ruler»-valget er satt (forklart i leksjon 6).
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
498
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
499 2. Trykk G for å gå til bunnen av filen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
500 Skriv gg for å gå til begynnelsen av filen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
501
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
502 3. Skriv inn linjenummeret du var på og deretter G . Dette vil føre deg
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
503 tilbake til linjen du var på da du først trykket CTRL-G.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
504
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
505 4. Utfør steg 1 til 3 hvis du føler deg sikker på prosedyren.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
506
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
507 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
508 Leksjon 4.2: SØKEKOMMANDOEN
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
509
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
510 ** Skriv / etterfulgt av en søkestreng som du vil lete etter. **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
511
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
512 1. Trykk / når du er i normalmodusen. Legg merke til at skråstreken og
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
513 markøren kommer til syne på bunnen av skjermen i likhet med
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
514 «:»-kommandoene.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
515
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
516 2. Skriv «feeeiil» og trykk <ENTER>. Dette er teksten du vil lete etter.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
517
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
518 3. For å finne neste forekomst av søkestrengen, trykk n .
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
519 For å lete etter samme søketeksten i motsatt retning, trykk N .
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
520
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
521 4. For å lete etter en tekst bakover i filen, bruk ? istedenfor / .
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
522
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
523 5. For å gå tilbake til der du kom fra, trykk CTRL-O (Hold Ctrl nede mens
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
524 du trykker bokstaven o ). Repeter for å gå enda lengre tilbake. CTRL-I
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
525 går framover.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
526
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
527 ---> «feeeiil» er ikke måten å skrive «feil» på, feeeiil er helt feil.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
528 Merk: Når søkingen når slutten av filen, vil den fortsette fra starten unntatt
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
529 hvis «wrapscan»-valget er resatt.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
530 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
531 Leksjon 4.3: FINN SAMSVARENDE PARENTESER
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
532
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
533
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
534 ** Trykk % for å finne en samsvarende ), ] eller } . **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
535
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
536 1. Plasser markøren på en (, [ eller { på linjen nedenfor merket --->.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
537
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
538 2. Trykk % .
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
539
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
540 3. Markøren vil gå til den samsvarende parentesen eller hakeparentesen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
541
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
542 4. Trykk % for å flytte markøren til den andre samsvarende parentesen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
543
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
544 5. Flytt markøren til en annen (, ), [, ], { eller } og se hva % gjør.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
545
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
546 ---> Dette ( er en testlinje med (, [ ] og { } i den )).
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
547
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
548 Merk: Dette er veldig nyttig til feilsøking i programmer som har ubalansert
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
549 antall parenteser!
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
550
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
551
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
552
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
553 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
554 Leksjon 4.4: ERSTATT-KOMMANDOEN
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
555
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
556
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
557 ** Skriv :s/gammel/ny/g for å erstatte «gammel» med «ny». **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
558
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
559 1. Flytt markøren til linjen nedenfor som er merket med --->.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
560
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
561 2. Skriv :s/deen/den/ <ENTER> . Legg merke til at denne kommandoen bare
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
562 forandrer den første forekomsten av «deen» på linjen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
563
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
564 3. Skriv :s/deen/den/g . Når g-flagget legges til, betyr dette global
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
565 erstatning på linjen og erstatter alle forekomster av «deen» på linjen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
566
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
567 ---> deen som kan kaste deen tyngste steinen lengst er deen beste
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
568
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
569 4. For å erstatte alle forekomster av en tekststreng mellom to linjer,
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
570 skriv :#,#s/gammel/ny/g der #,# er linjenumrene på de to linjene for
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
571 linjeområdet erstatningen skal gjøres.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
572 Skriv :%s/gammel/ny/g for å erstatte tekst i hele filen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
573 Skriv :%s/gammel/ny/gc for å finne alle forekomster i hele filen, og
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
574 deretter spørre om teksten skal erstattes eller
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
575 ikke.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
576 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
577 OPPSUMMERING AV LEKSJON 4
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
578
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
579
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
580 1. Ctrl-G viser nåværende posisjon i filen og filstatusen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
581 G går til slutten av filen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
582 nummer G går til det linjenummeret.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
583 gg går til den første linjen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
584
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
585 2. Skriv / etterfulgt av en søketekst for å lete FRAMOVER etter teksten.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
586 Skriv ? etterfulgt av en søketekst for å lete BAKOVER etter teksten.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
587 Etter et søk kan du trykke n for å finne neste forekomst i den samme
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
588 retningen eller N for å lete i motsatt retning.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
589 CTRL-O tar deg tilbake til gamle posisjoner, CTRL-I til nyere posisjoner.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
590
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
591 3. Skriv % når markøren står på en (, ), [, ], { eller } for å finne den
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
592 som samsvarer.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
593
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
594 4. Erstatte «gammel» med første «ny» på en linje: :s/gammel/ny
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
595 Erstatte alle «gammel» med «ny» på en linje: :s/gammel/ny/g
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
596 Erstatte tekst mellom to linjenumre: :#,#s/gammel/ny/g
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
597 Erstatte alle forekomster i en fil: :%s/gammel/ny/g
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
598 For å godkjenne hver erstatning, legg til «c»: :%s/gammel/ny/gc
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
599 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
600 Leksjon 5.1: HVORDAN UTFØRE EN EKSTERN KOMMANDO
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
601
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
602
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
603 ** Skriv :! etterfulgt av en ekstern kommando for å utføre denne. **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
604
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
605 1. Skriv den velkjente kommandoen : for å plassere markøren på bunnen av
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
606 skjermen. Dette lar deg skrive en kommandolinjekommando.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
607
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
608 2. Nå kan du skrive tegnet ! . Dette lar deg utføre en hvilken som helst
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
609 ekstern kommando.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
610
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
611 3. Som et eksempel, skriv ls etter utropstegnet og trykk <ENTER>. Du vil
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
612 nå få en liste over filene i katalogen, akkurat som om du hadde kjørt
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
613 kommandoen direkte fra kommandolinjen i skallet. Eller bruk :!dir hvis
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
614 «ls» ikke virker.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
615
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
616 MERK: Det er mulig å kjøre alle eksterne kommandoer på denne måten, også med
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
617 parametere.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
618
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
619 MERK: Alle «:»-kommandoer må avsluttes med <ENTER>. Fra dette punktet er det
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
620 ikke alltid vi nevner det.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
621
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
622 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
623 Leksjon 5.2: MER OM LAGRING AV FILER
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
624
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
625
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
626 ** For å lagre endringene gjort i en tekst, skriv :w FILNAVN. **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
627
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
628 1. Skriv :!dir eller :!ls for å få en liste over filene i katalogen. Du
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
629 vet allerede at du må trykke <ENTER> etter dette.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
630
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
631 2. Velg et filnavn på en fil som ikke finnes, som for eksempel TEST .
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
632
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
633 3. Skriv :w TEST (der TEST er filnavnet du velger).
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
634
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
635 4. Dette lagrer hele filen (denne innføringen) under navnet TEST . For å
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
636 sjekke dette, skriv :!dir eller :!ls igjen for å se innholdet av
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
637 katalogen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
638
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
639 Merk: Hvis du nå hadde avsluttet Vim og startet på nytt igjen med «vim TEST»,
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
640 ville filen vært en eksakt kopi av innføringen da du lagret den.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
641
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
642 5. Fjern filen ved å skrive :!rm TEST hvis du er på et Unix-lignende
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
643 operativsystem, eller :!del TEST hvis du bruker MS-DOS.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
644
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
645 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
646 Leksjon 5.3: VELGE TEKST SOM SKAL LAGRES
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
647
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
648
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
649 ** For å lagre en del av en fil, skriv v bevegelse :w FILNAVN **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
650
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
651 1. Flytt markøren til denne linjen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
652
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
653 2. Trykk v og flytt markøren til det femte elementet nedenfor. Legg merke
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
654 til at teksten blir markert.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
655
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
656 3. Trykk : (kolon). På bunnen av skjermen vil :'<,'> komme til syne.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
657
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
658 4. Trykk w TEST , der TEST er et filnavn som ikke finnes enda. Kontroller
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
659 at du ser :'<,'>w TEST før du trykker Enter.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
660
3847
1003f9b262d7 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
661 5. Vim vil skrive de valgte linjene til filen TEST. Bruk :!dir eller :!ls
1621
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
662 for å se den. Ikke slett den enda! Vi vil bruke den i neste leksjon.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
663
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
664 MERK: Ved å trykke v startes visuelt valg. Du kan flytte markøren rundt for
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
665 å gjøre det valgte området større eller mindre. Deretter kan du bruke en
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
666 operator for å gjøre noe med teksten. For eksempel sletter d teksten.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
667
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
668 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
669 Leksjon 5.4: HENTING OG SAMMENSLÅING AV FILER
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
670
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
671
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
672 ** For å lese inn en annen fil inn i nåværende buffer, skriv :r FILNAVN **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
673
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
674 1. Plasser markøren like over denne linjen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
675
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
676 MERK: Etter å ha utført steg 2 vil du se teksten fra leksjon 5.3. Gå deretter
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
677 NED for å se denne leksjonen igjen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
678
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
679 2. Hent TEST-filen ved å bruke kommandoen :r TEST der TEST er navnet på
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
680 filen du brukte. Filen du henter blir plassert nedenfor markørlinjen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
681
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
682 3. For å sjekke at filen ble hentet, gå tilbake og se at det er to kopier av
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
683 leksjon 5.3, originalen og denne versjonen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
684
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
685 MERK: Du kan også lese utdataene av en ekstern kommando. For eksempel, :r !ls
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
686 leser utdataene av ls-kommandoen og legger dem nedenfor markøren.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
687
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
688
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
689
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
690
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
691 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
692 OPPSUMMERING AV LEKSJON 5
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
693
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
694
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
695 1. :!kommando utfører en ekstern kommandio.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
696
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
697 Noen nyttige eksempler er:
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
698 (MS-DOS) (Unix)
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
699 :!dir :!ls - List filene i katalogen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
700 :!del FILNAVN :!rm FILNAVN - Slett filen FILNAVN.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
701
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
702 2. :w FILNAVN skriver den nåværende Vim-filen disken med navnet FILNAVN .
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
703
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
704 3. v bevegelse :w FILNAVN lagrer de visuelt valgte linjene til filen
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
705 FILNAVN.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
706
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
707 4. :r FILNAVN henter filen FILNAVN og legger den inn nedenfor markøren.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
708
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
709 5. :r !dir leser utdataene fra «dir»-kommandoen og legger dem nedenfor
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
710 markørposisjonen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
711
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
712
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
713
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
714 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
715 Leksjon 6.1: «ÅPNE LINJE»-KOMMANDOEN
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
716
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
717
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
718 ** Skriv o for å «åpne opp» for en ny linje etter markøren og gå til
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
719 innsettingsmodus **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
720
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
721 1. Flytt markøren til linjen nedenfor merket --->.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
722
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
723 2. Skriv o (liten o) for å åpne opp en linje NEDENFOR markøren og gå inn i
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
724 innsettingsmodus.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
725
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
726 3. Skriv litt tekst og trykk <ESC> for å gå ut av innsettingsmodusen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
727
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
728 ---> Etter at o er skrevet blir markøren plassert på den tomme linjen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
729
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
730 4. For å åpne en ny linje OVER markøren, trykk rett og slett en stor O
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
731 istedenfor en liten o . Prøv dette på linjen nedenfor.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
732
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
733 ---> Lag ny linje over denne ved å trykke O mens markøren er på denne linjen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
734
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
735
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
736
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
737 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
738 Leksjon 6.2: «LEGG TIL»-KOMMANDOEN
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
739
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
740
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
741 ** Skriv a for å legge til tekst ETTER markøren. **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
742
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
743 1. Flytt markøren til starten av linjen merket ---> nedenfor.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
744
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
745 2. Trykk e til markøren er på slutten av «li».
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
746
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
747 3. Trykk a (liten a) for å legge til tekst ETTER markøren.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
748
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
749 4. Fullfør ordet sånn som på linjen nedenfor. Trykk <ESC> for å gå ut av
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
750 innsettingsmodusen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
751
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
752 5. Bruk e for å gå til det neste ufullstendige ordet og repeter steg 3 og
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
753 4.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
754
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
755 ---> Denne li lar deg øve på å leg til tek på en linje.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
756 ---> Denne linjen lar deg øve på å legge til tekst på en linje.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
757
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
758 Merk: a, i og A går alle til den samme innsettingsmodusen, den eneste
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
759 forskjellen er hvor tegnene blir satt inn.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
760 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
761 Leksjon 6.3: EN ANNEN MÅTE Å ERSTATTE PÅ
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
762
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
763
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
764 ** Skriv en stor R for å erstatte mer enn ett tegn. **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
765
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
766 1. Flytt markøren til den første linjen nedenfor merket --->. Flytt markøren
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
767 til begynnelsen av den første «xxx»-en.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
768
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
769 2. Trykk R og skriv inn tallet som står nedenfor på den andre linjen så
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
770 det erstatter xxx.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
771
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
772 3. Trykk <ESC> for å gå ut av erstatningsmodusen. Legg merke til at resten
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
773 av linjen forblir uforandret.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
774
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
775 4. Repeter stegene for å erstatte den gjenværende xxx.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
776
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
777 ---> Ved å legge 123 til xxx får vi xxx.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
778 ---> Ved å legge 123 til 456 får vi 579.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
779
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
780 MERK: Erstatningsmodus er lik insettingsmodus, men hvert tegn som skrives
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
781 erstatter et eksisterende tegn.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
782
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
783 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
784 Leksjon 6.4: KOPIERE OG LIME INN TEKST
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
785
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
786
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
787 ** Bruk y-operatoren for å kopiere tekst og p for å lime den inn **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
788
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
789 1. Gå til linjen merket ---> nedenfor og plasser markøren etter «a)».
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
790
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
791 2. Gå inn i visuell modus med v og flytt markøren til like før «første».
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
792
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
793 3. Trykk y for å kopiere (engelsk: «yank») den uthevede teksten.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
794
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
795 4. Flytt markøren til slutten av den neste linjen: j$
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
796
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
797 5. Trykk p for å lime inn teksten. Trykk deretter: a andre <ESC> .
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
798
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
799 6. Bruk visuell modus for å velge « valget.», kopier det med y , gå til
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
800 slutten av den neste linjen med j$ og legg inn teksten der med p .
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
801
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
802 ---> a) Dette er det første valget.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
803 b)
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
804
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
805 Merk: Du kan også bruke y som en operator; yw kopierer ett ord.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
806 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
807 Leksjon 6.5: SETT VALG
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
808
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
809
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
810 ** Sett et valg så søk eller erstatning ignorerer store/små bokstaver. **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
811
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
812 1. Let etter «ignore» ved å skrive: /ignore <ENTER>
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
813 Repeter flere ganger ved å trykke n .
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
814
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
815 2. Sett «ic»-valget (Ignore Case) ved å skrive: :set ic
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
816
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
817 3. Søk etter «ignore» igjen ved å trykke n .
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
818 Legg merke til at både «Ignore» og «IGNORE» blir funnet.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
819
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
820 4. Sett «hlsearch»- og «incsearch»-valgene: :set hls is
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
821
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
822 5. Skriv søkekommandoen igjen og se hva som skjer: /ignore <ENTER>
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
823
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
824 6. For å slå av ignorering av store/små bokstaver, skriv: :set noic
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
825
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
826 Merk: For å fjerne uthevingen av treff, skriv: :nohlsearch
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
827 Merk: Hvis du vil ignorere store/små bokstaver for kun en søkekommando, bruk
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
828 \c i uttrykket: /ignore\c <ENTER>
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
829 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
830 OPPSUMMERING AV LEKSJON 6
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
831
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
832 1. Trykk o for å legge til en linje NEDENFOR markøren og gå inn i
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
833 innsettingsmodus.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
834 Trykk O for å åpne en linje OVER markøren.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
835
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
836 2. Skriv a for å sette inn tekst ETTER markøren.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
837 Skriv A for å sette inn tekst etter slutten av linjen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
838
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
839 3. Kommandoen e går til slutten av et ord.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
840
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
841 4. Operatoren y («yank») kopierer tekst, p («paste») limer den inn.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
842
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
843 5. Ved å trykke R går du inn i erstatningsmodus helt til <ESC> trykkes.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
844
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
845 6. Skriv «:set xxx» for å sette valget «xxx». Noen valg er:
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
846 «ic» «ignorecase» ignorer store/små bokstaver under søk
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
847 «is» «incsearch» vis delvise treff for en søketekst
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
848 «hls» «hlsearch» uthev alle søketreff
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
849
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
850 7. Legg til «no» foran valget for å slå det av: :set noic
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
851
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
852 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
853 Leksjon 7.1: FÅ HJELP
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
854
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
855
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
856 ** Bruk det innebygde hjelpesystemet. **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
857
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
858 Vim har et omfattende innebygget hjelpesystem. For å starte det, prøv en av
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
859 disse måtene:
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
860 - Trykk Hjelp-tasten (hvis du har en)
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
861 - Trykk F1-tasten (hvis du har en)
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
862 - Skriv :help <ENTER>
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
863
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
864 Les teksten i hjelpevinduet for å finne ut hvordan hjelpen virker.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
865 Skriv CTRL-W CTRL-W for å hoppe fra et vindu til et annet
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
866 Skriv :q <ENTER> for å lukke hjelpevinduet.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
867
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
868 Du kan få hjelp for omtrent alle temaer om Vim ved å skrive et parameter til
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
869 «:help»-kommandoen. Prøv disse (ikke glem å trykke <ENTER>):
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
870
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
871 :help w
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
872 :help c_CTRL-D
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
873 :help insert-index
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
874 :help user-manual
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
875 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
876 Leksjon 7.2: LAG ET OPPSTARTSSKRIPT
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
877
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
878
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
879 ** Slå på funksjoner i Vim **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
880
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
881 Vim har mange flere funksjoner enn Vi, men flesteparten av dem er slått av
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
882 som standard. For å begynne å bruke flere funksjoner må du lage en
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
883 «vimrc»-fil.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
884
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
885 1. Start redigeringen av «vimrc»-filen. Dette avhenger av systemet ditt:
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
886 :e ~/.vimrc for Unix
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
887 :e $VIM/_vimrc for MS Windows
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
888
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
889 2. Les inn eksempelfilen for «vimrc»:
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
890 :r $VIMRUNTIME/vimrc_example.vim
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
891
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
892 3. Lagre filen med:
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
893 :w
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
894
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
895 Neste gang du starter Vim vil den bruke syntaks-utheving. Du kan legge til
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
896 alle dine foretrukne oppsett i denne «vimrc»-filen.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
897 For mer informasjon, skriv :help vimrc-intro
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
898 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
899 Leksjon 7.3: FULLFØRING
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
900
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
901
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
902 ** Kommandolinjefullføring med CTRL-D og <TAB> **
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
903
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
904 1. Vær sikker på at Vim ikke er i Vi-kompatibel modus: :set nocp
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
905
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
906 2. Se hvilke filer som er i katalogen: :!ls eller :!dir
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
907
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
908 3. Skriv starten på en kommando: :e
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
909
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
910 4. Trykk CTRL-D og Vim vil vise en liste over kommandoer som starter med
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
911 «e».
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
912
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
913 5. Trykk <TAB> og Vim vil fullføre kommandonavnet til «:edit».
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
914
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
915 6. Legg til et mellomrom og starten på et eksisterende filnavn: :edit FIL
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
916
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
917 7. Trykk <TAB>. Vim vil fullføre navnet (hvis det er unikt).
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
918
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
919 MERK: Fullføring fungerer for mange kommandoer. Prøv ved å trykke CTRL-D og
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
920 <TAB>. Det er spesielt nyttig for bruk sammen med :help .
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
921 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
922 OPPSUMMERING AV LEKSJON 7
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
923
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
924
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
925 1. Skriv :help eller trykk <F1> eller <Help> for å åpne et hjelpevindu.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
926
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
927 2. Skriv :help kommando for å få hjelp om kommando .
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
928
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
929 3. Trykk CTRL-W CTRL-W for å hoppe til et annet vindu.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
930
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
931 4. Trykk :q for å lukke hjelpevinduet.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
932
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
933 5. Opprett et vimrc-oppstartsskript for å lagre favorittvalgene dine.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
934
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
935 6. Når du skriver en «:»-kommando, trykk CTRL-D for å se mulige
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
936 fullføringer. Trykk <TAB> for å bruke en fullføring.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
937
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
938
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
939
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
940
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
941
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
942
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
943
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
944 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
945
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
946 Her slutter innføringen i Vim. Den var ment som en rask oversikt over
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
947 editoren, akkurat nok til å la deg sette i gang med enkel bruk. Den er på
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
948 langt nær komplett, da Vim har mange flere kommandoer. Les bruksanvisningen
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
949 ved å skrive :help user-manual .
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
950
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
951 For videre lesing og studier, kan denne boken anbefales:
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
952 «Vim - Vi Improved» av Steve Oualline
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
953 Utgiver: New Riders
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
954 Den første boken som er fullt og helt dedisert til Vim. Spesielt nyttig for
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
955 nybegynnere. Inneholder mange eksempler og illustrasjoner.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
956 Se http://iccf-holland.org/click5.html
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
957
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
958 Denne boken er eldre og handler mer om Vi enn Vim, men anbefales også:
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
959 «Learning the Vi Editor» av Linda Lamb
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
960 Utgiver: O'Reilly & Associates Inc.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
961 Det er en god bok for å få vite omtrent hva som helst om Vi.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
962 Den sjette utgaven inneholder også informasjon om Vim.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
963
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
964 Denne innføringen er skrevet av Michael C. Pierce og Robert K. Ware,
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
965 Colorado School of Mines med idéer av Charles Smith, Colorado State
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
966 University. E-mail: bware@mines.colorado.edu .
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
967
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
968 Modifisert for Vim av Bram Moolenaar.
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
969 Oversatt av Øyvind A. Holm. E-mail: vimtutor _AT_ sunbase.org
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
970 Id: tutor.no 406 2007-03-18 22:48:36Z sunny
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
971
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
972 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82b5078be2dd updated for version 7.2a
vimboss
parents:
diff changeset
973 vim: set ts=8 :