*usr_27.txt*	 Vim version 6.2.   : 2002 Dec 31

		  VIM -  

			      


  3        
 |03.9|. Vim       . 
       . 
     : ||.

|27.1|	  ޣ 
|27.2|	    
|27.3|	
|27.4|	    
|27.5|	
|27.6|	 
|27.7|	 
|27.8|	   
|27.9|	

  : |usr_28.txt|  
 : |usr_26.txt|	  
      : |usr_toc.txt|

==============================================================================
*27.1*	  ޣ 

    Vim    ,  
. "Include", "INCLUDE"  "include"     
          .
    'ignorecase'    : >

	:set ignorecase

,       "include",    
 "Include", "INCLUDE"  "InClUDe". (    
  ,   'hlsearch').
        : >

	:set noignorecase

,    ޣ     "INCLUDE".
    . ,  
'smartcase': >

	:set ignorecase smartcase

           ,  
 .  ,    
       ,    
    ,       
.   ?
          ޣ    
:

	 			 ~
				, , ,   ..
				
				
				


       

         ,
     "\c".  "\C", , 
  .      "\c" 
"\C",   'ignorecase'  'smartcase'   .

	 			 ~
	\C			
	\C			
	\c			, , ,   ..
	\c			, , ,   ..

  "\c"  "\C"   ,    
  , ,      'ignorecase' 
'smartcase',          
,    .

	:
	 ,   "\",    
	   'magic'.    ,  
	 ,      
	.      'magic',   
	   .

	:
	   ,  ,    
	 CTRL-C  Unix  CTRL-Break  MS-DOS  MS-Windows.

==============================================================================
*27.2*	    

 ,  ң       
     .      ,
       ,     
  ,    .
     ,      "n"    
Σ    .     , 
     . Vim    ,
 , :

	      ~

    "?"     ,  
  :

	      ~

  ,    ,  
   'ruler': >

	:set ruler

 Vim          ( 
 ):

	101,29       84% ~

    .     ,  
     .


      

       , 
: >

	:set nowrapscan

        :

	E385:     ; forever   ~

  ,    ,      
 "gg"         .
          "?",    
:
	
	E384:     ; forever   ~

==============================================================================
*27.3*	

 ,        .
     Vim     - 
.    ң ("/"),    
   (/)   : >

	/default/2

     "default"     
    .     
,  ,  Vim      "default"  
     ,  .

   ,    ݣ   ,
        . , 
 ,     .  
     ,   
   .


 

 "e"      . : >

	/const/e

      ,  
   "t"   "const".
   ԣ     "e",    ,
    ,    
. ,  >

	/const/e+1

         
 const.     , 
: >

	/const/e-1

    "s"   "const".
  
     "b",     
.      ,  
 "b"     ,   "b"   
   . : >

	/const/b+2

          . 
,     "n".


    

         , 
    . : >

	/that
	//e

  : >

	/that/e

    ,  : >

	/

   , ,   "n".     
  : >

	//


   

      "?"   
,         "?" 
"/": >

	?const?e-2

 "b"  "e"  ϣ ,      , 
  "?".


   

    ,    .  
      . : >

	/const/-2

   ģ   "const"     
 .     "n"   , 
Vim      ,   ,  ģ  
    !
    ӣ    : ,     
  "const".   ,    , 
  ݣ ݣ    .

    Vim   ,    
      , 
          .

==============================================================================
*27.4*	    

"*"      ,     
    . : >

	/a*

  "a", "aa", "aaa"  ..    ,  
    "",      
  .
   "*"    ,    
ף. "ab*"   "a", "ab", "abb", "abbb"  .. 
   ,      
 .   ,      "\(" 
"\)".  ,  >

	/\(ab\)*

ģ  : "ab", "abab", "ababab"  .,   "".

        ,
 "\+".     ,   
      . >

	/ab\+

  "ab", "abb", "abbb"  ..,    
"a"   "b".

     ,  "\=". : >

	/folders\=

   "folder",   "folders".


     

      ,  
"\{n,m}".  "n"  "m"  .  ,   
  "n"  "m"  . : >

	/ab\{3,5}

  "abbb", "abbbb"  "abbbbb".
   "n" ,       .  
"m",       .   ",m",
      "n". :

	 		   ~
	\{,4}		0, 1, 2, 3  4
	\{3,}		3, 4, 5  ..
	\{0,1}		0  1,  ,   \=
	\{0,}		0  ,  ,   *
	\{1,}		1  ,  ,   \+
	\{3}		3


  

        . 
    ,  
"\{-n,m}".     ,   "\{n,m}",   , 
       .
   : >

	/ab\{-1,3}

  "ab"  "abbb".  ,  
       b,     
.   ,     ,
 -    .
     "n"  "m"     .  , 
  ,     "\{-}".   
        
.         
 .  ,     
  - : >

	/a.\{-}b

  ģ  "axb"  "axbxb".    
>
	/a.*b

       ,  
    "axbxb".

==============================================================================
*27.5*	

 ""    "\|". : >

	/foo\|bar

    "foo",   "bar".   
 : >

	/\|\|

    "", ""  "".
             ,
     "\("  "\)": >

	/\(foo\|bar\)\+

   "foo", "foobar", "foofoo", "barfoobar"  ..
    : >

	/end\(if\|while\|for\)

    "endif", "endwhile"  "endfor".

       -- "\&".  ,  
     -  .  
     . : >

	/forever\&...

 "for"  "forever",    "fortuin".

==============================================================================
*27.6*	 

  "a", "b"  "c"     "/a\|b\|c".
,         "a"  "z",
      .   
: >

	/[a-z]

 []     .  
    ,   
, : >

	/[0123456789abcdef]

   .  , 
  ,     . "0-3" 
  "0123", "w-z"  "wxyz".
 ,      : >

	/[0-9a-f]

       "-",    
   .  ,    
 (      ,    []):

	\e	<Esc>
	\t	<Tab>
	\r	<CR>
	\b	<BS>

       
 [], . |/[]|.


  

 ,   -   ,   
  "^".       
,     []. : >

	/"[^"]*"
<
	 "	   
	  [^"]	   ,   
	      *	    
	       "     

 "foo"  "3!x",   .


 

     .    
Vim   . : >

	/\a

   .    "/[a-zA-Z]".
   :

				 ~
	\d				[0-9]
	\D	  		[^0-9]
	\x	 	[0-9a-fA-F]
	\X	 . 	[^0-9a-fA-F]
	\s	     		[ 	]     (<Tab> and <Space>)
	\S	            	[^ 	]     (not <Tab> and <Space>)
	\l	   	[a-z]
	\L	  . 	[^a-z]
	\u	  . 	[A-Z]
	\U	  . 	[^A-Z]

	:
	     
	 ,     .
	      []. ,
	"[\d\l]"         .
	 ,   "\(\d\|\l\)".

    .  |/\s|.

==============================================================================
*27.7*	 

      .
    ,     : 
      .
   ,     : >

	/\f\+

"\f"  ,      .  ,
  ,     .
    ,      ,   
.  MS-Windows      ,   Unix --
.     'isfname'.    
  Unix : >

	:set isfname
	isfname=@,48-57,/,.,-,_,+,,,#,$,%,~,=

      . , 
   "\f"    ,    
    . 

	:
	 , Unix     
	  ,  . , ,
	     'isfname'   ,  
	        . 
	      .

  :

					  ~
	\i	 ͣ         		'isident'
	\I	 \i,  
	\k	  		'iskeyword'
	\K	 \k,    
	\p	     		'isprint'
	\P	 \p,    
	\f	 ͣ  		'isfname'
	\F	 \f,    

==============================================================================
*27.8*	   

Vim     ,   .  
  ,    .
         ̣  , 
 "\n": >

	/\n

   ""   ,   
   "".      "
",     ,    
 .      "\_s": >

	/\_s

       ,
 >

	/\_s\+

       : "   "  
   "   "   .

"\s"  ,  "\_s"     .
, "\a"    ,  "\_a"
      .   "_"
         .

         "\_" 
  . , "\_."    
 .

	:
	"\_.*"      .   
	  ,       
	.

 : "\_[]",  ,   . >

	/"\_[^"]*"

     ,    ̣
  .

==============================================================================
*27.9*	

 ݣ       .  
,    ,     .


     

     : "1MGU103".   , 
      .  ,   
: >

	/\d\u\u\u\d\d\d

        : >

	/\d\u\{3}\d\{3}

    []: >

	/[0-9][A-Z]\{3}[0-9]\{3}

      ?  ,   
 ,  ,  .       
,   ӣ-    , 
            . 


 

    C,      , 
          .  
  ޣ.      : >

	/\<\h\w*\>

"\<"  "\>"     . "\h" 
"[A-Za-z_]",  "\w"    ,   "[0-9A-Za-z_]".

	:
	"\<"  "\>"     'iskeyword'.  
	, , "-",  "ident-"   .   
	 : >

		/\w\@<!\h\w*\w\@!
<
	   "\w"     .
	. |/\@<!|  |/\@!|.

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

 : |usr_28.txt|  
 : . |___|  

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