Introduction to vi Text Editor for Unix/Linux Systems

the linux command line chapter 12 a gentle n.w
1 / 11
Embed
Share

Learn about vi text editor, a lightweight and fast tool available in Unix/Linux systems. Explore its two modes, basic commands for editing, saving, exiting, and navigating within vi. Discover how to insert, append, delete, copy, paste, and search text efficiently. Enhance your productivity with vi.

  • vi text editor
  • Unix
  • Linux
  • editing
  • productivity

Uploaded on | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. The Linux Command Line Chapter 12 A Gentle Introduction to vi Prepared by Dr. Reyes, New York City College of Technology

  2. vi Editor vi is a text editor that is always available in Unix/Linux systems. It is a light way text editor It is very fast It is difficult to use compared to other text editors such as gedit and nano Modern versions of Linux include vim, that is a user- friendlier version of vi Has two modes: o Editing or Insert mode (pressing i or a) o Command mode (pressing ESC key)

  3. Starting vi vi Command to start the vi editor To start vi and create a new file use vi followed by the file name. For example:

  4. Saving Your Work To save your work you need to be in Command mode (press ESC key) :w - command in vi to write or save your work

  5. Exiting vi :q command used to quit vi :q! command used to quit vi without saving any changes If in Insert mode, press the ESC key to go to Command mode

  6. Navigating in vi

  7. vi Editor i vi command used to insert text a vi command used to append text A vi command to append at the end of the line After using i, a or A vi will switch to Insert mode and then you will be able to type.

  8. Deleting in vi

  9. Copy (yank) and paste in vi p vi command used to paste text u vi command to undo

  10. Searching in vi f vi command to search a single character in the current line. / vi command to search a word or phrase in the entire file. Example for searching the word Line

  11. vi Resources vim Tutorial: http://www.openvim.com/tutorial.html vim Adventures Game: http://vim-adventures.com/ vim Genius: http://www.vimgenius.com/

More Related Content