Vi (en): Unterschied zwischen den Versionen

Aus Gemini-Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „{|width="40%" |Bild:deutsch.png - in Deutsch |Bild:english.png - in English |}“)
 
 
(4 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt)
Zeile 3: Zeile 3:
 
  |[[Bild:english.png]] - [[Vi (en)|in English]]
 
  |[[Bild:english.png]] - [[Vi (en)|in English]]
 
  |}
 
  |}
 +
The '''[http://en.wikipedia.org/wiki/Vi Vi]''' is a long-term [http://de.wikipedia.org/wiki/Linux Linux-]/[http://en.wikipedia.org/wiki/Unix 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 (en)|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.<br>
 +
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.<br>
 +
''':wq!''' stands for: write quit and forces a save if needed.<br>
 +
If something goes wrong, it's always possible to press '''Esc''' and enter ''':q!'''.<br>
 +
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.
 +
 +
 +
[[Kategorie:Instructions (en)]]

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.