Using Vi editor

More
6 years 11 months ago - 6 years 10 months ago #3 by admin
Using Vi editor was created by admin
You can use the vi editor in almost all the Unix Systems to edit text in the console, so you can use it in Linux and Mac OS.

The syntax to use vi, is the following:

Create a new file or Edit an existing one with vi
vi fileName.txt



Edit the file

When you enter in the file, you are in command mode, in this mode you cannot enter new characters, in this mode you can navigate into the file and make a lot of things. If you are going to insert or edit the current file, you need to enter to insert mode, to do that, you can just type the "i" letter, you can be sure that you are in the Insert mode if you see the INSERT key word below the console.



Save the file
  1. Press the key ESC to exit from the Insert mode
  2. Type :w
  3. Press the key RETURN

Exit from the file
  1. Press the key ESC to exit from the Insert mode
  2. Type :q
  3. Press the key RETURN

Exit from the file and discard any change
  1. Press the key ESC to exit from the Insert mode
  2. Type :q!
  3. Press the key RETURN

More info here
Last edit: 6 years 10 months ago by admin.

Please Log in or Create an account to join the conversation.

Time to create page: 0.081 seconds

Education

  • Mobile Web Apps

    The mobile web apps are built using the same development tools than the web pages, so with some knowledge in HTML, Javascript, etc. you can begin to learn this kind of development. To use a web mobile app, the user must enter to any web browser installed on the mobile device and in this way the user can navigate at the URL site or URL app. One of the most important thing to know in the time of coding a web mobile app is the screen because the screen on mobile devices have multiple sizes and the user can interact with the content there in many ways, for example scrolling, zooming or doing the click action just touching the screen with one or more fingers.



    Read More
  • The Hard Drive

    Many of the first computers did not have a storage device where to save the information and the applications, in this way all the information was in the RAM all the time, and this information was deleted every time the pc was turn off. (We must remember that the RAM, is a kind of memory volatile, also known as work memory because is available to use when the pc is turn on)



    Read More
  • The RAM - The Random Access Memory

    The RAM or Random Access Memory is the work memory, where all the programs and data information that are open in a defined moment is loaded. The RAM only stores data information when the computer is on, when we computer is off the information on the RAM is cleared.



    Read More

Software

  • Eclipse

    Eclipse ha sido ampliamente reconocido por su IDE para Java, sin embargo en la actualidad, Eclipse es mucho mas que eso, tambien tiene IDE para C, C++ y PHP, ademas de muchas otras herramientas y plugins.



    Read More
  • Android Studio

    Android Studio is the Google official IDE for Android Apps development, providing fastest tools with a lot of features: Visual Layout Editor, APK Analyzer, Fast Emulator, Intelligent Code Editor, Flexible Build System, Realtime profilers, thousands of learning videos and blogs, an more.



    Read More