*usr_20.txt*	 Vim version 6.2.   : 2003 Apr 30

		  VIM -  

		           


 Vim   ,   . ,
  ,  ,   .
        .

|20.1|	  
|20.2|	  
|20.3|	  
|20.4|	  
|20.5|	  

  : |usr_21.txt|   -   
 : |usr_12.txt|	  	
      : |usr_toc.txt|

==============================================================================
*20.1*	  

  ,    (:),    
 /  ?, Vim       ,  
      .    
,       ,      
.

        --
     <BS>,    
.    ,  ,  
    .
   , ,     : >

	:s///

 ,   <Enter>,  ,   ""  
 "".      <Left>  . 
   "".   <BS>  ""  
: >

	:s///

   <Enter>.     
     .

         :

	<Left>			  
	<Right>			  
	<S-Left> or <C-Left>	  
	<S-Right> or <C-Right>	  
	CTRL-B or <Home>	   
	CTRL-E or <End>		   

	:
	<S-Left> (       Shift) 
	<C-Left> (       Control)
	     .     
	  Shift  Control.

 ,      ,  
.




   , <BS>    .   
      CTRL-W.

	/the fine pig ~

		     CTRL-W

	/the fine ~

CTRL-U     ,      .




 <Insert>        
.   :

	/   ~

     "",   <S-Left> ( 11 
 <Left>,  <S-Left>  ).   <Insert> 
      "".

	/   ~


  

     :  /,   ,  
CTRL-C  <Esc>.

	:
	<Esc>    .  ,    Vi
	  <Esc>      
	! Vim  <Esc>   , 
	  .      Vim
	   Vi    'cpoptions'.  , 
	  (     Vi) <Esc>
	   Vi.  , CTRL-C   .
	
      ,   <BS>  
.  ӣ ,    ":"  "/",  
 .

==============================================================================
*20.2*	  

  ":"    .   , 
":substitute"    ":s". ,   
":" .

    ?   26   , 
  . , ":set"    ":s",  ":s"  
    ":substitute". , ":set"  
":se".
        ,    
    .     ,   
  .        
. : >

	:s[ubstitute]

 ,     ":substitute"  ":s". 
   ,       ":su"
 ":sub".

        ,  
, ,   , . , ":function"  
 ":fu",      ,   ,   
 ":fun".

  Vim     .  
     .  
   ,   ":w" (":write")  ":r"
(":read").
    ,  ":end"    ":endif", ":endwhile" 
":endfunction".        .


  

        . 
     .    ":" , 
     . ,  
 'autoindent' -- 'ai'.  ,      
 : >

	:set autoindent
	:set ai

     ͣ    : |_|.

==============================================================================
*20.3*	  

          , 
  Vi  Vim.        ,
     ţ .

,    ,     :

	info.txt
	intro.txt
	bodyofthepaper.txt

      : >

	:edit bodyofthepaper.txt

   ,    .   :
>
	:edit b<Tab>

    .  ?  <Tab>
   ,   , 
   "b". Vim       , 
  "b".    ,  Vim    
 .

 : >

	:edit i<Tab>

Vim      : >

	:edit info.txt

  ,  Vim ۣ  ,  
    .   ͣ <Tab>  ,   >

	:edit intro.txt

 ,     <Tab>     , 
   ݣ .   ,    ң 
.
     ͣ <Tab>    ,  Vim Σ 
,   : >

	:edit i

    . Vim       
.  ,      , 
CTRL-P:

	      <------------------- <Tab> -------------------------+
								  |
		  <Tab> -->		       <Tab> -->
	:edit i		      :edit info.txt		   :edit intro.txt
		  <-- CTRL-P		       <-- CTRL-P
	   |
	   +---------------------- CTRL-P ------------------------>




  ":edit i"  ң ":set i"  ͣ <Tab>,   >

	:set icon

  ":set info.txt"?  Vim    
-.  ,       
,    .    ":set"  
  ,     .
    ,    <Tab>, Vim     
 .  ,    ,  
 ,      : >

	:set isk<Tab>

   >

	:set iskeyword

  "="    <Tab>: >

	:set iskeyword=@,48-57,_,192-255

Vim    ,    .
   <Tab>      ,  
   . ,     .
       ,  .   
 ,  Vim  ,   ,     
  .        
 <Tab> (  ^I).


   

  ,  , ,    . 
  CTRL-D. ,  CTRL-D  >

	:set is

  >

	:set is
	incsearch  isfname    isident    iskeyword  isprint
	:set is

Vim         .
 ,     ,   ,   
   <BS>.   ,   
     <Tab>,     .
      ,  ,  "incsearch"   
"is".   , "is"  ݣ  "incsearch" (
    ݣ ). Vim  ̣, 
,       ݣ  
.


    !

 CTRL-L       .
  ң ":edit i"      "info.txt"  "info_backup.txt",
   ":edit info".

 'wildmode'     . 
 'wildmenu'        
  ,  .
 'suffixes'   ,    
      .
 'wildignore'   ͣ ,     
    .

   ӣ  . |__|.

==============================================================================
*20.4*	  

  3      .    ,  
        <Up>, 
<Down>         . 

    Vim   .     
,     ":"    "/"  "?".
    ,     
    .        
   input(). . |__|.

,    ":set",    ,
  ,       ":set"  .
 ,    <Up>   ,   
: >

	:se<Up> 

Vim  Σ   ,    "se".  
     ":set",   .   , 
ģ   <Up>    .

 <Up>          
     . 
       ,  ,    <Down>, 
  ,        .  
CTRL-U,       ӣ .

     : >

	:history

     ":",   .   
   : >

	:history /

CTRL-P (previous, )      ,    <Up>,
     ,       .
, CTRL-N (next, )   ,   <Down>.

==============================================================================
*20.5*	  

        
        .  
     ,    ,
     ,    
 .

       >

	q:

     Vim   ,  
       :

	+-------------------------------------+
	| 			      |
	|~				      |
	|file.txt=============================|
	|:e c				      |
	|:e config.h.in			      |
	|:set path=.,/usr/include,,	      |
	|:set iskeyword=@,48-57,_,192-255     |
	|:set is			      |
	|:q				      |
	|:				      |
	|-=====================|
	|				      |
	+-------------------------------------+

    .     
  "hjkl". ,       
 ":e config.h.in".  "$h"  ,     "i" 
"in"   "cwout".    

	:e config.h.out ~

  <Enter>   .    
.
    <Enter>  ,    ,
  ,        
. 
             , 
      ,    
. 

      ,     
 ,       ţ  
 ,  .       
. 
         ,  
"config"      "?config".  , 
     !     
    ,     .

	 :   >

	    q/
<
	     .

==============================================================================

 : |usr_21.txt|   -   
 : . |___|  

vim:tw=78:ts=8:ft=help:norl:
