===============================================================================
=                      V I M   T u t o r    -     1.5     =
===============================================================================

      Vim        , 
             .   
              
          Vim     .

               
      25-30 ,        
     .

            .  
            (  
     "Vimtutor"     ).

               
          .     
            .    
     ,   !

     ,     Shift-Lock    
        j        
        1.1     .

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		       1.1:    

  **     ,    h,j,k,l  . **
	     ^
	     k	      Hint:   h     ' .
       < h	 l >	      l      .
	     j		      j      .
	     v

  1.          .

  2.      (j)   .
--->        .

  3.    ,    1.2.

:      ,  <ESC>   
	    .       .

:         .    hjkl
	       ,   .

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		 1.2:      VIM

  !! :      ,    !!

  1.    <ESC> (      ).

  2. :		:q! <ENTER>.

--->            .
              :
	      :wq <ENTER>

  3.      ,      
         .   :	vimtutor <ENTER>
       :			vim tutor <ENTER>

---> 'vim'     vim, 'tutor'    
       .

  4.         , 
       1  3         . 
           1.3.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		    1.3:    - 

   **        x     
          . **

  1.         --->.

  2.     ,        
         .

  3.    x      .

  4.    2  4      .

---> The ccow jumpedd ovverr thhe mooon.

  5.      ,    1.4.

:     ,   
	  ,    .

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		    1.4:   - 

 **        i     . **

  1.           --->.

  2.          ,  
                .

  3.    i      .

  4.      <ESC>    
      .    2  4   
      .

---> There is text misng this .
---> There is some text missing from this line.

  5.         
      .

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
			        1 


  1.           hjkl.
	 h ()	j ()	k ()	l ()

  2.     Vim (   %) :  vim  <ENTER>

  3.    :  <ESC>   :q!   <ENTER>      .
		  :  <ESC>   :wq   <ENTER>      .

  4.          
       :  x

  5.            :
	 i       	<ESC>

:  <ESC>       
	        .

     2.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
			  2.1:  

	 **   dw         . **

  1.   <ESC>         .

  2.         --->.

  3.           .

  4.   dw        .

:   dw        
	   .    ,   <ESC>  
	     .

---> There are a some words fun that don't belong paper in this sentence.

  5.    3  4       
        2.2.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		    2.2:   

    **   d$         . **

  1.   <ESC>         .

  2.         --->.

  3.         (   . ).

  4.    d$          .

---> Somebody typed the end of this line twice. end of this line twice.

  5.    2.3     .







~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		    2.3:    


      d    :

	 []   d   		d   []   
  :
     -       (, ' =1).
    d -    .
     -        ( ).

      :
    w -        ,   .
    e -        ,   .
    $ -        .

:      ,     
	           
	         .



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	        2.4:    '-'

	   **   dd       . **

        ,  
   Vim          d 
       .

  1.         .
  2.   dd      .
  3.     .
  4.   2dd  (  --)  
       .

      1)  Roses are red,
      2)  Mud is fun,
      3)  Violets are blue,
      4)  I have a car,
      5)  Clocks tell time,
      6)  Sugar is sweet
      7)  And so are you.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
			  2.5:   

	    **   u       ,
	       U      . **

  1.         ---> 
          .
  2.   x        .
  3.    u        .
  4.             x.
  5.      U        
      .
  6.    u         U  
      .
  7.   CTRL-R (    CTRL    R)
            (  ).

---> Fiix the errors oon thhis line and reeplace them witth undo.

  8.     .    
        2.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
			        2 


  1.           :      dw

  2.           :    d$

  3.       :    dd

  4.         :

      []                 []   
     :
        -      
        -   ,    d   
        -       ,   w  (),
		     $ (  ), .

  5.     , :        u   ( u)
            , :  U  ( U)
         , :               CTRL-R

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
			 3.1:   


  **   p          .  **

  1.         .

  2.   dd           
        Vim.

  3.             
       .

  4.     ,   p      .

  5.    2  4       
      .

     d) Can you learn too?
     b) Violets are blue,
     c) Intelligence is learned,
     a) Roses are red,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		       3.2:   


    **   r         
          . **

  1.          --->.

  2.           .

  3.   r          .

  4.    2  3       .

--->  Whan this lime was tuoed in, someone presswd some wrojg keys!
--->  When this line was typed in, someone pressed some wrong keys!

  5.     3.2.

:         ,   
	   .

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
			   3.3:   

	   **        ,   cw  . **

  1.          --->.

  2.      u   lubw.

  3.   cw      (  ,   'ine'.)

  4.  <ESC>      ( 
       ).

  5.    3  4       
        .

---> This lubw has a few wptfd that mrrf changing usf the change command.
---> This line has a few words that need changing using the change command.

    cw      ,   
  .

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		      3.4:    c


  **          . **


  1.           .   :

       []   c             c   []   

  2.      ,  w (), $ ( ), .

  3.        --->.

  4.      .

  5.   c$            
       <ESC>.

---> The end of this line needs some help to make it like the second.
---> The end of this line needs to be corrected using the  c$  command.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
			        3 


  1.        ,   p .
             ( 
              .

  2.         ,   r
             .

  3.          
            . ..   cw   
             , c$   
        .

  4.      :

	 []   c             c   []   

     .


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		      4.1:    


 **  CTRL-g            .
     SHIFT-G        . **

  :          !!

  1.     Ctrl    g .   
                 
       .        3.

  2.  shift-G       .

  3.          shift-G.  
                Ctrl-g.
     (   ,     ).

  4.     ,    1  3.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
			 4.2:   


	  **    /        . **

  1.        / .    
                  : .

  2.   'errroor' <ENTER>.        .

  3.        ,    n .
             ,   Shift-N .

  4.          ,     ?     / .

--->             .

  "errroor" is not the way to spell error;  errroor is an error.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		    4.3:   


	  **    %        ), ],  } . **

  1.      (, [,  {   
       --->.

  2.      % .

  3.           .

  4.   %          
    ( ).

---> This ( is a test line with ('s, ['s ] and {'s } in it. ))

:        
	     !



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		     4.4:     


       **   :s/old/new/g      'new'   'old'. **

  1.         --->.

  2.   :s/thee/the <ENTER> .       
         .

  3.     :s/thee/the/g       
     .        .

---> thee best time to see thee flowers is in thee spring.

  4.          ,
        :#,#s/old/new/g    #,#     .
        :%s/old/new/g             .




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
			        4 


  1.   Ctrl-g           .
       Shift-G      .   
        Shift-G      .

  2.   /          
      .   ?         
       .       n     
             Shift-N    
        .

  3.   %         (,),[,],{,  }  
         .

  4.    new   old     :s/old/new
        new   'old'     :s/old/new/g
          #        :#,#s/old/new/g
                :%s/old/new/g
            'c'       "%s/old/new/gc

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		   5.1:     


**   :!          . **

  1.      :         
      .       .

  2.      !  ().     
         .

  3.     ls     !   <ENTER>.  
           ,     
       .    :!dir    ls  .

---> :       
        .

---> :     :       <ENTER>.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		  5.2:    


   **         ,   :w .  **

  1.   :!dir    :!ls         .
           <ENTER>   .

  2.        ,   TEST.

  3.  :  :w TEST  ( TEST      ).

  4.      (vim Tutor)    TEST.   
     ,    :!dir      .

--->       Vim      
      TEST,        tutor   .

  5.      (MS-DOS):      :!del TEST



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		      5.3:   


	  **      ,   :#,# w  **

  1.   ,   :!dir    :!ls        
               TEST.

  2.           
     Ctrl-g         .
         !

  3.           Ctrl-g  .
          !

  4.        ,    :#,# w TEST
      #,#      (,)  TEST 
        .

  5. ,          :!dir    .


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		   5.4:    


     **       ,    :r  **

  1.   :!dir       TEST   .

  2.        .

:      3     5.3.
	          .

  3.      TEST     :r TEST
      TEST     .

:          
	    .

  4.       ,    
             5.3, 
          .

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
			        5 


  1.  :!     .

          (MS-DOS):
      :!dir            -    .
      :!del      -   .

  2.  :w         Vim     .

  3.  :#,#w        #  #  .

  4.  :r           
              .







~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
			 6.1:   


      **   o            
	    . **

  1.         --->.

  2.   o ()           
        .

  3.      --->     <ESC>  
         .

---> After typing  o  the cursor is placed on the open line in Insert mode.

  4.         ,    
     O,      o.      .
      Shift-O      



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
			  6.2:   

	  **    a         . **

  1.         
       --->   $    .

  2.    a  ()        
          .  (   A    
      ).

:       i ,   , 
	    , <ESC>, -,  , x,  
	         !

  3.     .      
             , 
           .

---> This line will allow you to practice
---> This line will allow you to practice appending text to the end of a line.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		    6.3:    


 **    R        . **

  1.          --->.

  2.           
           ---> (  'last').

  3.    R           
                 
       .

---> To make the first line the same as the last on this page use the keys.
---> To make the first line the same as the second, type R and the new text.

  4.     <ESC>   ,  
      .



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
			   6.4:  


   **            
        - **

  1.   'ignore' :
     /ignore
           n.

  2.    'ic' (Ignore case) :
     :set ic

  3.     'ignore' : n
              n

  4.    'hlsearch'  'incsearch':
     :set hls is

  5.      ,    
     /ignore

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
			        6 


  1.   o           
           .

  2.   a           
      .    A      
      .

  3.    R       
       <ESC>   .

  4.  ":set xxx"    "xxx".








~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		        7: ON-LINE  


		**   on-line   **

   Vim    on-line  .   ,
      :
	-    <HELP> (  )
	-    <F1> (  )
	-    :help <ENTER>

    :q <ENTER>         .

         ,   
    ":help".    (    <ENTER>):

	:help w
	:help c_<T
	:help insert-index
	:help user-manual


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		   8:   SCRIPT 

		   **    Vim **

   Vim     ' ,  Vi,  
     .     
         "vimrc".

  1.     "vimrc",      :
	:edit ~/.vimrc                Unix
	:edit $VIM/_vimrc             MS-Windows

  2.        "vimrc":
	:read $VIMRUNTIME/vimrc_example.vim

  3.     :
	:write

         Vim   
  .         ' 
    "vimrc".

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

     Vim Tutor.       
     Vim,       
      .    
      Vim    . 
     :
	":help user-manual".

      ,    :
	Vim - Vi Improved - by Steve Oualline
	Publisher: New Riders
	      Vim.
	   .
	    .
	  http://iccf-holland.org/click5.html

           Vi    Vim,
    :
	Learning the Vi Editor - by Linda Lamb
	Publisher: O'Reilly & Associates Inc.
	           
	    Vi.
	        Vim.

        Michael C. Pierce  Robert K. Ware,
  Colorado School of Mines     Charles Smith,
  Colorado State University.  E-mail: bware@mines.colorado.edu.

     Vim   Bram Moolenaar.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
