/[gentoo-dk]/gentoo-dk/pre1/nano-basics-guide.xml
ViewVC logotype

Diff of /gentoo-dk/pre1/nano-basics-guide.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by mejlholm, Tue Nov 18 20:51:32 2003 UTC revision 1.3 by mejlholm, Tue Nov 18 23:31:43 2003 UTC
# Line 1  Line 1 
1  <?xml version='1.0' encoding="UTF-8"?>  <?xml version='1.0' encoding="iso-8859-1"?>
2  <?xml-stylesheet href="/xsl/guide.xsl" type="text/xsl"?>  <!-- $Header$ -->
3  <guide link="/doc/en/nano-basics-guide.xml">  <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4    
5  <title>Nano Basics Guide</title>  <guide link="/doc/da/nano-basics-guide.xml">
6    
7  <author title="Gentoo Doc Editor">  <title>Nano Basics Guide</title>
8  <mail link="meekrob@gentoo.org">Sherman Boyd</mail>  
9  </author>  <author title="Forfatter"><!-- meekrob@gentoo.org -->
10      Sherman Boyd
11  <abstract>This is a simple introduction to nano.  To get you familiar with it's basic functions, fast.</abstract>  </author>
12    <author title="Redaktør">
13  <version>1.0</version>    <mail link="swift@gentoo.org">Sven Vermeulen</mail>
14  <date>15 April 2002</date>  </author>
15    <author title="Oversætter">
16  <chapter>  <mail link="mejlholm@stud.auc.dk">Arne Mejlholm</mail>
17  <title>Nano Basics</title>  </author>
18  <section>  
19  <title>Purpose</title>  <abstract>Dette er en simpel introduktion til nano. Formålet er, hurtigt, at
20  <body>  gøre dig bekendt med nanos basale funktioner.</abstract>
21  <p>  
22  This guide was written to cover basic operations in nano, and is meant to be very concise.  For more information about nano check out:  <version>1.1</version>
23  </p><p>  <date>November 16, 2003</date>
24  <uri>http://www.nano-editor.org</uri>  
25  </p>  <chapter>
26  </body>  <title>Nano Basics</title>
27  </section>  <section>
28    <title>Formål</title>
29  <section>  <body>
30  <title>Opening and creating files</title>  <p>
31  <body>  Denne guide blev skrevet for at dække de basale operationer i nano og
32  <p>  det er meningen at den skal være meget kort og præcis. For mere
33  Opening and creating files is simple in nano, simply type: <pre># <i><c>nano filename</c></i></pre>Nano is a modeless editor so you can start typing immediately to insert text.  If you are editing a configuration file like <path>/etc/fstab</path> use the -w switch, for example: <pre># <i><c>nano -w /etc/fstab</c></i></pre><warn>It is very, very important that you use the -w switch when opening a config file.  Failure to do so may keep your system from booting or other bad things.</warn>  information omkring nano, kig på:
34  </p>  </p><p>
35  </body>  <uri>http://www.nano-editor.org</uri>
36  </section>  </p>
37    </body>
38  <section>  </section>
39  <title>Cutting and pasting</title>  
40  <body>  <section>
41  <p>  <title>At åbne og lave filer</title>
42  To cut a single line line you use <c>^K</c>.  You simply hold down <c>CTRL</c> and <c>k</c> at the same time.  The line dissapears.  To paste it you simply move the cursor to where you want to paste and punch <c>^U</c> (<c>CTRL u</c>) on your keyboard.  BAM!  The line reapears.  Suppose you need to move a whole paragraph.  To move multiple lines simply cut each line one at a time, and then paste.  BAM!  The whole paragraph appears wherever you want it.        </p>  <body>
43  <p>  <p>
44  If you need a little more fine grained control then you need to mark the text.  Move the cursor to the beginning of the text you want to cut.  Hit <c>^^</c> (that's <c>ctrl ^</c> or <c>ctrl 6</c>).  Now move your cursor to the end of the text you want to cut.  The desired text should be highlighted now.  If need to cancel your text marking simply hit <c>^^</c> again.  Click <c>^K</c> to cut the text.  Use <c>^U</c> to paste it.  BAM!  Now that's cooking.  At åbne og lave filer er simpelt i nano, bare skriv: <pre># <i><c>nano
45  </p>  filnavn</c></i></pre>. Nano er en editor uden modes, så du kan starte
46  </body>  med at skrive, for at indsætte tekst. Hvis du ændrer i en
47  </section>  konfigurationsfil såsom
48    <path>/etc/fstab</path> så brug -w muligheden, f.eks: <pre>#
49  <section>  <i><c>nano -w /etc/fstab</c></i></pre>
50  <title>Searching for text</title>  <warn>Det er meget, meget vigtigt at du bruger -w muligheden når du
51  <body>  åbner en konfigurations fil. Ikke at gøre dette kan gøre at dit system ikke
52  <p>  booter eller andre grimme ting.</warn>
53  Searching for a string is easy as long as you think <em>"WhereIs"</em> instead of <em>"Search"</em>.  Simple hit <c>^W</c> (<c>CTRL w</c>) and type in your search string.  Like I said, easy.</p>  </p>
54  </body>  </body>
55  </section>  </section>
56    
57  <section>  <section>
58  <title>Wrap up</title>  <title>At gemme og exit'te</title>
59  <body>  <body>
60  <p>  
61  That is all!  Thanks to kiyose and quazion from #gentoo.  Again, for more information about nano check out:  <p>
62  </p><p>  Hvis du vil gemme de ændringer du har lavet, tryk <c>Ctrl+O</c>. For
63  <uri>http://www.nano-editor.org</uri>  at forlade <c>nano</c>, tryk <c>Ctrl+X</c>. Hvis du beder <c>nano</c>
64  </p>  om at forlade en ændret fil, spørger den om du vil gemme den. Bare
65  </body>  tryk <c>N</c> hvis du ikke vil eller <c>Y</c> hvis du vil. Derefter
66  </section>  spørger den efter et filnavn. Bare tast det ind og tryk <c>Enter</c>.
67  </chapter>  </p>
68  </guide>  
69    <p>
70    Hvis du ved et uheld kom til at bekræfte at du vil gemme en fil, men
71    du faktisk ikke vil, kan du altid fortryde ved at trykke <c>Ctrl+C</c>
72    når den spørger dig efter et filnavn.
73    </p>
74    
75    </body>
76    </section>
77    
78    <section>
79    <title>At "Cutte og paste"</title>
80    <body>
81    <p>
82    For at cutte en enkelt linie bruger du <c>^K</c>.  Du holder
83    simpelthen <c>CTRL</c> og <c>k</c> nede på samme tid. Linien
84    forsvinder. For at paste den flytter du simpelthen markøren hen hvor
85    du vil have den og trykker <c>^U</c> (<c>CTRL u</c>) på
86    tastaturet. SLAM! Linien dukker op igen. Hvad nu hvis du nu vil flytte
87    en hel paragraf? For at flytte flere linier, skal du simpelthen cutte
88    hver linie en af gangen og derefter paste. SLAM! Hele paragraffen
89    dukker op igen hvor end du ønsker det.</p>
90    
91    <p>
92    Hvis du har brug for lidt mere fintfølende kontrol så skal du markere
93    teksten. Flyt markøren hen til begyndelsen af det tekst du vil
94    cutte. Tryk <c>^^</c> (det er <c>ctrl ^</c> eller <c>ctrl 6</c>). Flyt
95    nu din markør til slutningen af den tekst du vil cutte. Den ønskede
96    tekst burde nu være markeret. Hvis du har brug for at fortryde din
97    markering af tekst skal du bare trykke <c>^^</c> igen. Tryk <c>^K</c>
98    for at cutte teksten. Brug <c>^U</c> for at paste den. SLAM! Se det er madlavning.
99    </p>
100    </body>
101    </section>
102    
103    <section>
104    <title>At lede efter tekst</title>
105    <body>
106    <p>
107    At lede efter en streng er nemt så længe du tænker <em>"HvorEr"</em> i
108    stedet for <em>"Søg"</em>. Bare tryk <c>^W</c> (<c>CTRL w</c>) og tast
109    den streng du leder efter. Som jeg sagde, nemt.</p>
110    </body>
111    </section>
112    
113    <section>
114    <title>Opsamling</title>
115    <body>
116    <p>
117    Det var det! Tak til kiyose og quazion fra #gentoo. Igen, for at få
118    mere information omkring nano, kig på:
119    </p><p>
120    <uri>http://www.nano-editor.org</uri>
121    </p>
122    </body>
123    </section>
124    </chapter>
125    </guide>
126    
127    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26