Vi (en): Unterschied zwischen den Versionen

Aus Gemini-Wiki
Zur Navigation springen Zur Suche springen
 
(2 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt)
Zeile 6: Zeile 6:
  
 
Therefore it is good to get involved with this tool (as with the [[Midnight Commander (en)|Midnight Commander]]).
 
Therefore it is good to get involved with this tool (as with the [[Midnight Commander (en)|Midnight Commander]]).
Denn warum sollte man auf irgendwelche Windowstools fixiert sein, wenn die Systeme eigentlich alles mitbringen und so ziehmlich alle gleich sind,
+
Because it makes no sense to use any windows tool, when the system has everythin "on board". And this is the case for different systems: Dreamboxes, NAS or other systems.
egal ob es sich da nun um Dreamboxen, NAS oder sonstiges handelt.
 
  
== Die Bedienung ==
+
== Usage ==
  
Die einfachste Bedienung ist wohl folgende:
+
The easiest way to use Vi is:
  
* 1. Datei öffnen bzw. neu erstellen mit '''vi pfad_zur_datei/dateinamen''' z.B.:
+
* 1. Open the file, or create a new one with '''vi path_to_the_file/file_name''' e.g.:
  
 
  vi /etc/auto.network
 
  vi /etc/auto.network
  
Hier wird die Datei '''auto.network''' geöffnet oder angelegt im Verzeichnis '''/etc'''
+
Here the file '''auto.network''' is opened, or created in the directory '''/etc'''
  
  
* 2. Im vi am besten zu Anfang immer die '''Esc'''-Taste drücken. Jetzt ist man in einer definierbaren Ausgangssituation, aus der man alle Befehle eingeben kann.
+
* 2. Press always the '''Esc''' key in Vi. This way you are always in a defined start position to enter commands.
  
  
* 3.Jetzt die '''i'''-Taste für den Input drücken
+
* 3. Press the '''i''' key for input
und anschließend mit der rechten Maustaste in das '''vi'''-Fenster klicken. Der Text aus der Zwischenablage wird sofort eingefügt oder man kan die Datei eben editieren.<br>
+
now you can click the right mouse button in the '''vi''' window. A text from the clipboard will be copied, or you can edit the file.<br>
Mit Hilfe der Pfeiltasten kann man in den Zeilen navigieren.
+
It is possible to navigate in the lines with the arrow keys.
  
* 4. Das Speichern erfolgt so
+
* 4. Saving the file is done as follows
  Esc-Taste drücken
+
  Press the Esc key
  :wq! drücken
+
  enter :wq!  
  
Die '''Ecs'''-Taste wird gedrückt, um wieder im Befehlsmodus zu sein.<br>
+
The '''Ecs''' key is used to get into the command mode of Vi.<br>
''':wq!''' entspricht: write quit und erzwinge das Speichern falls erforderlich.<br>
+
''':wq!''' stands for: write quit and forces a save if needed.<br>
Falls etwas schief gehen sollte, dann kann man immer '''Esc''' drücken und anschliessend ''':q!'''.<br>
+
If something goes wrong, it's always possible to press '''Esc''' and enter ''':q!'''.<br>
So wird nichts gespeichert und man darf von vorne anfangen....
+
This way, nothing is saved, and you can restart....
  
== Anleitungen ==
+
== Manuals ==
  
Natürlich ist der Editor recht umfangreich und deshalb gibt es auch für eingefleischte Benutzer, die damit auf der Konsole z.B. Programmieren wollen, auch nette große Anleitungen.
+
Of course, Vi offers many more commands.
 +
Look into the internet for a good manual.
  
* [http://www.thomas.teufl.eu/blog/2009/07/31/vi-anleitung-zum-audrucken/ Anleitung zum Drucken]
 
* [http://www.gentoo.de/doc/de/vi-guide.xml die wohl beste Deutschsprachige Anleitung]
 
  
 
+
[[Kategorie:Instructions (en)]]
[[Kategorie:Anleitungen]]
 

Aktuelle Version vom 12. November 2013, 00:19 Uhr

Deutsch.png - in Deutsch English.png - in English

The Vi is a long-term Linux-/Unix editor, which is available in most Linux systems by default.

Therefore it is good to get involved with this tool (as with the Midnight Commander). Because it makes no sense to use any windows tool, when the system has everythin "on board". And this is the case for different systems: Dreamboxes, NAS or other systems.

Usage

The easiest way to use Vi is:

  • 1. Open the file, or create a new one with vi path_to_the_file/file_name e.g.:
vi /etc/auto.network

Here the file auto.network is opened, or created in the directory /etc


  • 2. Press always the Esc key in Vi. This way you are always in a defined start position to enter commands.


  • 3. Press the i key for input

now you can click the right mouse button in the vi window. A text from the clipboard will be copied, or you can edit the file.
It is possible to navigate in the lines with the arrow keys.

  • 4. Saving the file is done as follows
Press the Esc key
enter :wq! 

The Ecs key is used to get into the command mode of Vi.
:wq! stands for: write quit and forces a save if needed.
If something goes wrong, it's always possible to press Esc and enter :q!.
This way, nothing is saved, and you can restart....

Manuals

Of course, Vi offers many more commands. Look into the internet for a good manual.