BrainDump
  Home arrow BrainDump arrow A Look at the VI Editor
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
BRAINDUMP

A Look at the VI Editor
By: Mamun Zaman
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 9
    2007-08-07

    Table of Contents:
  • A Look at the VI Editor
  • Saving and Closing a file
  • Cursor motion/movements
  • Undo editing

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    Save your reputation with your customers. Learn how you can have embedding success with Advantage Database Server (ADS).

    A Look at the VI Editor
    (Page 1 of 4 )

    VI is the widely used text editor in UNIX operating systems. I have had the chance to use the VI editor in the Solaris and Linux operating systems. In this article we are going to learn how to use the VI editor.

    VI in Linux and Solaris is almost the same. The main difference I encountered is the arrow keys. In UNIX-based versions you have to use h, j, k and l for left, down, up and right, moving one character/line at a time. But in Linux, we can use the standard arrow keys for editing.

    In the Solaris OS, if you use the standard arrow keys during editing you will see some unwanted outputs if the arrow keys are not mapped correctly. Sometimes it may display the error "Terminal too wide" if your terminal is wider than the typical 1024 x 768.

    Open a new file/open for editing: To open a new file just use the vi command with a filename like the example below.

    vi newfile.txt

    This command will open the VI editor with a new file named newfile.txt in the current directory. If a file named newfile.txt is present in the current directory, then the above command will open that file for editing.

    More BrainDump Articles
    More By Mamun Zaman


       · As someone who has been using vi for over 20 years, the part about "Unix" using the...
       · After you have done a search (using / or ?) you can repeat the search using either n...
     

       

    BRAINDUMP ARTICLES

    - Outsourcing: the Hoopla, the Reality
    - MySQL Plays in the Sun
    - All About SQL Functions
    - SQL: Functioning in the Real World
    - More Advanced SQL Statements
    - Beginning SQL the SEQUEL: Working with Advan...
    - Beginning SQL
    - A Look at the VI Editor
    - A Quick Tour of Boo
    - Book Review: Open Source Licensing
    - PGP and GPG: Email for the Practical Parano...
    - Microsoft Continues War on Open Source
    - Secure Remote Desktop Sharing with VNC on Li...
    - A Look at Google Project Hosting
    - What we can Learn from Two Linux vs. Microso...




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway