'vi' Commands to Move Cursor and Search for Locations

This section provides a list of commands to move the cursor on text area of the screen, scroll text on screen, and search for location with character or string matches.

Here is a list of 'vi' commands to move the cursor on text area of the screen:

   [n]h
      Move left n times

   [n]l
      Move right n times

   [n]j
      Move down n times

   [n]k
      Move up n times

   [n]w
      Move to next word n times

   [n]b
      Move to previous word n times

   $
      Move to the end of the line

   ^
      Move to the beginning of the line

   [n]+
   [n]<Enter>
      Move to the beginning of next line n times

   [n]-
      Move to the beginning of previous line n times

   [n]H
      Move to top left corner of the screen n times

   [n]L 
      Move to bottom left corner of the screen n times

   [ln]G
      Go to line ln

   1G
      Go to first line

   G
      Go to last line

Here is a list of 'vi' commands to scroll text on the screen using control key combinations:

   [n]^D
      Scroll down n lines
  
   [n]^U
      Scroll up n lines

   [n]^F
      Scroll forward n pages

   [n]^B
      Scroll backward n pages

Here is a list of 'vi' commands to search for specific location in the text files:

   [n]f{char}
      Search forward for char n times

   [n]F{char}
      Search backward for char n times

   ;
      Repeat the last f or F command

   [n]/[string]
      Search forward for string n times

   [n]?[string]
      Search backward for string n times

   n
      Repeat the last / or ? command

Table of Contents

 About This Book

 1957 - FORTRAN Language Developed by IBM

 1970 - UNIX Operating System Developed by AT&T Bell Labs

 1971 - FTP Protocol Created by Abhay Bhushan

 1972 - C Language Developed by Dennis Ritchie

1976 - vi Text Editor Developed by Bill Joy

 What Is vi Text Editor?

'vi' Commands to Move Cursor and Search for Locations

 'vi' Commands to Insert and Change Text

 'vi' Miscellaneous Commands in 'ex' Line Mode

 1977 - Apple II Designed by Steve Jobs and Steve Wozniak

 1977 - The Bourne Shell Developed by Stephen Bourne

 1978 - The C Shell Developed by Bill Joy

 1978 - Bash (Bourne-Again Shell) Developed by Brian Fox

 1979 - The Tcsh (TENEX C Shell) Developed by Ken Greer

 1983 - "Sendmail" Mail Transfer Agent Developed by Eric Allman

 1984 - Macintosh Developed by Apple Inc.

 1984 - X Window System Developed a MIT Team

 1991 - WWW (World Wide Web) Developed by Tim Berners-Lee

 1991 - Gopher Protocol Created by a University of Minnesota Team

 1995 - Java Language Developed by Sun Microsystems

 1995 - PHP: Hypertext Preprocessor Created by Rasmus Lerdorf

 2002 - .NET Framework Developed by Microsoft

 References

 PDF Printing Version