*usr_03.txt*	 Vim version 6.2.   : 2002 Oct 29

		  VIM -  

			      

 ,     ,    ݣ 
 .  Vim     
 .      
   .       |Q_lr|.

|03.1|	  
|03.2|	     
|03.3|	  
|03.4|	   
|03.5|	   
|03.6|	   
|03.7|	
|03.8|	  
|03.9|	    
|03.10|	 

  : |usr_04.txt|    
 : |usr_02.txt|     Vim
      : |usr_toc.txt|

==============================================================================
*03.1*	  

      ,   "w" (word,
).      Vim,    
       . , "3w"
     ң.    :

	        ~
	 --->------>->--------------------------->
	  w  w      w 3w

 ,  "w"      , 
      .
    "b" (back, )      
:

	        ~
	<---<------<-<---------------<-----
	  b     b   b      2b           b
	  
   "e" (end, ),     
 ,   "ge",      
:

	        ~
	         <-        <---    ------------> ->
		 ge          ge          e       e
		 
       ,   "w" 
       .   
     ,    "l".
"b" ģ  ,    .

   - , ,  ".", "-"  ")". 
 ,   Vim     ,
    'iskeyword'.
       ||, ̣ . 
||       ,  
 .     ||   
,   :

            ge           b           w                            e
           <--          <-         ----->	                 -->
 -  ,  // ( ݣ -). ~
     <--------   <--------         ----------------------->      -------->
            gE           B           W                            E

           
 ң     .

==============================================================================
*03.2*	     

 "$"     .     
 <End>,       .

 "^"       . 
"0"       .  <Home> 
  "0".    :

                    ^
	     <--------------
	.....     ~
	<-------------------  ---------->
	            0             $

( .....  ).

    "$"    ,    
. ,        
 .  ,    
     . , "1$"   
 () , "2$"      ..
    "0"    ,    "0"  
  .    "^"   
.

==============================================================================
*03.3*	  

         .
 "fx" (find, )   x   ң,   
 . 
   ,      . ,  
      .    ?
 "f",       :

	 : "   ." ~
	-------->------------>
	   f         f
	   
 "f"      .
        .    
    "3f":

	 : "   ." ~
	        --------------------------->
		            3f

 "F"      :

	 : "   ." ~
	        <---------------------------
			    F

 "tx" (to, )  ,    "fx",   
    .     -- "Tx".

	 : "   ." ~
		 <-------------------  --------->
		        T                t

        ";". "," 
   .      
,     .

,   ,  ,     .
,    "f",        
 .   ,  <Esc>.  ,
"f<Esc>"        . :
<Esc>    ,    .

==============================================================================
*03.4*	   

        
.  "%"      :  
   .     "(",   
    ")".     ")", 
 "%"     ")".

			    %
			 <----->
		if (a == (b * c) / d) ~
		   <---------------->
			    %
			    
       []  {}. (   
   'matchpairs').

      ,  "%"   
ң    ,   ģ . ,  
   ,  "%" ģ  "("    ţ :

		if (a == (b * c) / d) ~
		---+---------------->
			   %

==============================================================================
*03.5*	   

    C  C++,      
  :

	prog.c:33: j   undeclared (first use in this function) ~

    ,   -    33.  
     33?   "9999k",    
   "32j",     32 .  ,  
   .     "G" (go, ). 
        . ,
"33G"     33. (    
   ,  . .   
:make  |usr_30.txt|).
     , "G"      .
       "gg". "1G"   
,       .

	    |	        ^
	    |	     |
	    |	     |  gg
	7G  |	     |
	    |	   
	    |	   
	    V	     |
		     |  G
		     |
		     V

      "%"   .
, "50%"    , "90%"    
.

  ,        
  ,         .   
      ,   ?  
  ,     :

			+---------------------------+
		H -->	|   	    |
			|  		    |
			|   	    |
			|  		    |
		M -->	|   	    |
			|  		    |
			|   	    |
			|  		    |
		L -->	|   	    |
			+---------------------------+

(H - Home, ; M - Middle, ; L - Last, ).

==============================================================================
*03.6*	   

        :

1.     CTRL-G.     ,   
    (   'ruler'):

	"usr_03.txt"  238  693 --34%--  45-52 ~

        ,     ,
     ,    ,   ,
            ,  , 
      .
              . , " 2-9".
     ,        , 
          ,  
     ,      9.

2.    'number'.        
     : >

	:set number
<
         :
>
	:set nonumber
<
     'number'   ,   "no"  ţ 
     ţ.       , on (.) 
    off (.).
        Vim   .   ,   ,
        .    
     .

3.    'ruler'.       
       Vim: >

	:set ruler

  'ruler'   ,   "" 
  ,        
.

==============================================================================
*03.7*	

 CTRL-U (Up, )        .
,            
    .       .
,       ?  , 
     .
    CTRL-D (Down, )      
,      .

				        +----------------+
				        | -  |
				        | -  |
				        | -  |
	+----------------+	        | -  |
	| -  |  CTRL-U  --> |		 |
	|		 |	        | 123456	 |
	| 123456	 |	        +----------------+
	| 7890		 |
	|		 |	        +----------------+
	|  	 |  CTRL-D -->  | 7890		 |
	+----------------+	        |		 |
				        |  	 |
				        |  	 |
				        |  	 |
				        |   	 |
				        +----------------+

      CTRL-E ( )  CTRL-Y
( ).   : CTRL-E  ݣ  .
(     MS-Windows   ,  CTRL-Y 
 Σ   .)

  ң    (   )  CTRL-F
(Forward, ң).      CTRL-B (Backward,
).

  ,        
  .      , 
   "zz".

	+-------------------+		 +-------------------+
	| -     |		 | -     |
	| -     |		 | -     |
	| -     |		 | -     |
	| -     |   zz  -->	 |    |
	| -     |		 | -     |
	| -     |		 | -     |
	|    |		 | -     |
	+-------------------+		 +-------------------+

 "zt"       (top, ),  "zb" 
(bottom, ).       , .
|Q_sc|.          , 
  'scrolloff'.

==============================================================================
*03.8*	  

  ,   "/". ,   
include,  : >

	/include

 ,    "/"     
 Vim,  ,   .    
    ,   <BS>,  
 .    <Left>  <Right> 
,    .
    <Enter>  .

	:
	 .*[]^%/\?~$   .   
	    ,      
	  \. . .

      ,   "n" (next,
).  ,    #include  : >

	/#include

  "n"  .     #include  #include
 . ,    ,   , 
   . "3n"   . 
  "/"  .

 "?"   "/",     
: >

	?

 "N"      .  , "N"
  "/"  ,    "?"  ң.

 

       ,    ,  ޣ
 .           ,
   'ignorecase': >

	:set ignorecase

      "",     ģ 
""  "".         ,
 >
	
	:set noignorecase




,    : >

	/
	/
	/

,        "/"  
<Enter>.     <Up>,  Vim    
"/".  <Enter>      Vim   .  
 <Enter>    ͣ <Up>,  Vim    
"/".    <Up> ģ     "/".
             
     <Down>.

       ,  , 
   ,       <Up>.
    "/<Up>" ģ   "/"  
.

,   ":"    .    
       ţ.    
   .


   

,    "TheLongFunctionName"     
     .    
"/TheLongFunctionName",      .    
    .
      :       
"*". Vim ң         
  . 
    "#"       .  
   : "3*"     
  . 


  

  ң "/",      "".  
 ,    "",  >

	/\>

"\>"   ,    .
, "\<"    . ,  
 "",  >

	/\<\>

      ""  "".  ,
  "*"  "#"    " "  " "
     (    
  "g*"  "g#").


 

,       , 
  "nr".       "nr" 
  "*"    "n",    
   .
      .   >

	:set hlsearch

    ģ  "nr",  Vim   
.     ,  ,  
,     .
       >

	:set nohlsearch

     ,     ţ 
  .       ,
   >

	:nohlsearch

     ,     .
     - ,    
.       "n"  "N".


 

  ,    .  
: 
>
	:set incsearch

 Vim        .
       .
<Enter>     ,    ,
        .
>
	:set nowrapscan

   , ,    ,   . 
'wrapscan'   ,  ,     
      .




   ,    ,   , 
    ,    Vim,    
   Vim.
      ,      ||.
       : >

	:scriptnames

 ,  : >

	:edit ~/.vimrc

,        ,    
 ţ  Vim. : >

	Go:set hlsearch<Esc>

"G"    , "o"   ,   
   ":set".      <Esc>.
     : >

	ZZ

,     Vim,   'hlsearch'  .

==============================================================================
*03.9*	    

 Vim       .
        
  .  ,      
 .
            . 
         27 |usr_27.txt|.
    : ||.


   

 ^   .     
    6.  "include"   include 
  ,      "^include"  
 include    ,      .
    $   .  , "$" 
      ,     
.

  ,    ""      "x":

	 ,    ,    ~
	xx               xx                   xx

"/$"    : 

	 ,    ,    ~
	                                      xx

 "/^" :

	 ,    ,    ~
	xx

      "/^$",     ,
    "".   ,   ,  
   ""  ,     .


   

 .    . ,  "." 
 ,   ,       
  . :

	 ,     ~
	     xxx                    xxx	


   

        ?    
 ţ  ,       
. 
       "..",      
:

	    . ~
		xxx  xxx xxx     xxx

   ".\."    .

==============================================================================
*03.10*	 

       "G",  Vim  ,
    ۣ.    . (:
      -- mark  
"",  tag  "".     .)   
,  ۣ    >

	``

`     .
       ,   Σ  
.   ,  `     
,    ,  ۣ .

 ,  ,    ,  
  ,   .    "/"  "n"
(  ,    ).  
, ,    "fx"  "tx",    
  "w"  "e".
    , "j"  "k"    ,    , 
         
.

 ``     ң   
.  CTRL-O     (older,  ).
CTRL-I       (I  
   O).    : >

	33G
	/^
	CTRL-O

     33,   ,  
 "". CTRL-O      33.  CTRL-O
    .    
CTRL-I,   ۣ     33.  CTRL-I
      "".

	     |	   ^	     |
	33G  |	   |  CTRL-O     | CTRL-I
	     |	   |	     |
	     V	 33    ^	     V
	     |	   |	     |
       /^ |	   |  CTRL-O     | CTRL-I
	     V	   |	     V
		 

	:
	CTRL-I   ,   <Tab>.

 ":jumps"    ,    .
     ">".


 

Vim       .  "ma"
      a.       26
 (   a  z).   ,  -
,   Vim.
         `{},  {}
   .  , ,   a, 
>
	`a

 '{} ()     , 
.     `{},   
 ,   .

    ,     
  . ,     , 
 ,         . 
              s
(start): >

	ms

   ,         e
(end): >

	me

       ,    
   ,       >

	's

 ,        '',  'e
   ,      . 
     s  e  ͣ    ,  
  .
   
      >

	:marks

 ,       . 
 , :

	'	    
	"	      
	[	   
	]	   

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

 : |usr_04.txt|    
 : . |___|  

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