*change.txt*     Vim version 6.2.   : 2003 May 24


		        VIM -  


    ,      
.         
̣       .  
     . ,   
 Ex       ".".

1.  		||
2.   		|-|
3.  		|_|	** *changing*
4.  		|_|
5.   	|-|
   
6.  	||

      |insert.txt|.

==============================================================================
1.  			          *deleting* ** *E470*

["x]<Del>						      *<Del>* *x* *dl*
["x]x			  [] ,    
			  [  x] ( ). 
			  ,   "dl".
			 <Del>    []. 
			,  ţ      
			   . 
			  <Del> ģ   ,  ,
			     |:fixdel|. 
			     ( 
			)      
			|'whichwrap'|.
			{Vi    <Del>}

							              *X* *dh*
["x]X			  []   
			[  x] ( ).    ,
			  "dh". .  |'whichwrap'|.

							                   *d*
["x]d{}	 ,    {} 
			[  x].    .

							                  *dd*
["x]dd			  []  [  x]
			().

							                   *D*
["x]D			 ,      
			  ,   []-1  
			[  x];     
			 "d$". 
			( )

{}["x]x				         *v_x* *v_d* *v_<Del>*
{}["x]d	
{}["x]<Del>	
			   [  x].  
			{} . |_|.
			{Vi    }

{}["x]CTRL-H   				   *v_CTRL-H* *v_<BS>*
{}["x]<BS>	
			  :    
			[  x].

{}["x]X					   *v_X* *v_D* *v_b_D*
{}["x]D	
			   [  x] ( 
			{} . |_|).  
			   "D"   
			 ,       .
			{Vi    }

						   *:d* *:de* *:del* *:delete*
:[]d[elete] [x]	 []  ( : 
			) [  x].

:[]d[elete] [x] {}
			  {} ,   , 
			  [] ( : 
			 |_-|) [  x].

     .      
 "." (  ":d"),      
.       .
   : ||.

   d{}:    
,         ,  
         
,     .  , 
    ,  , ,  
 .

     (,   "d0"  
)   ,    'cpoptions'   'E'. 

							                   *J*
J			  [] ,   .
			        
			 (. ).

							                 *v_J*
{}J		  ,   .  
			      .
			{Vi    }

							                  *gJ*
gJ			  [] ,   . 
			      .
			{Vi    }

							                *v_gJ*
{}gJ		  ,   .  
			     .
			{Vi    }

							          *:j* *:join*
:[]j[oin][!]	 ,  []. 
			  ,   "J",   ,  
			 [!]     
			.  []    
			,     .  
			      .
			{Vi   !}
			
:[]j[oin][!] {}
			 {} ,   , 
			[] ( :    
			|_-|).   
			,   "J",   ,  
			 [!]     
			.
			{Vi   !}

    <EOL>  .   
   .     ( ":j"),  
.

  ,   "gJ",    
 <EOL>,   ,      
     ')'.  ,  ,  
"gJ"       .   
'joinspaces',    '.', '!', '?'    (,
    'cpoptions'   'j',   
   '.').
 'B'  'M'    'formatoptions'   
       |fo-|.

==============================================================================
						   *-* **
2.   				   *delete-insert* *replacing*

							                   *R*
R			   :   
			  ,   ,
			   .  
			. |_|.

							                  *gR*
gR			    :  
			      
			 .  ,  <Tab> 
			     .
			ģ    []-1 .
			 . |__|.
			{    ,  Vim 
			  +vreplace}

							                   *c*
["x]c{}	 ,   ģ 
			{} [  x]   .  
			  'cpoptions'   'E'  
			   (,  
			   'x'    "cTx"),
		                
			   (   Vi). 
			 'cpoptions'    'E',   "c"
			     ,  
			   .

							                  *cc*
["x]cc			  []  [  x]  
			 ().    'autoindent',
			    .

							                   *C*
["x]C			      ,  
			[]-1   [  x], 
			   .   
			 "c$" ( ).

							                   *s*
["x]s			  []  [  x] 
			   (s   "substitute",
			"").     "cl" (
			).

							                   *S*
["x]S			  []  [  x] 
			   .   
			 "cc" ().

{}["x]c						   *v_c* *v_s*
{}["x]s		
			   [  x]   
			  (  {} .
			|_|).
			{Vi    }

							                 *v_r*
{}["x]r{}	      {}.

							                 *v_C*
{}["x]C		
			   [  x]  
			.     
			̣ , . |v_b_C|.
			{Vi    }

							                 *v_S*
{}["x]S		
			   [  x]  
			 (  {} .
			|_|).
			{Vi    }
							
							                 *v_R*
{}["x]R	      ,  
			{}["x]S.    
			    .
			{Vi    }

:

-         ̣   
   <Esc>.
-         .  " 
   " (|___|).
-   []   ,  Vim   
    .
-    'cpoptions'   '$',   
    ,  Vim   ,   ̣
    '$'    ̣ .


    ||.

      ,     , 
  ,      
 .     Vim   
,   ,     .     <BS>
   ,   .
 .  "   " |___|.

						                     *cw* *cW*
 :  "cw"  "cW"  ,    "ce"  "cE",
      .    , 
Vim  "cw"  "change-word", " ",    
   .  
{Vi:  "cw",       , 
   ,      ; ,
  , ,  "dw"   .   
-  ,   Vim    ,   Vi,
   'w'    'cpoptions'}

   ,   "cw"    , 
  : >

	:map cw dwi
<
							  *:c* *:ch* *:change*
:{}c[hange]	    . 
			    , 
			   ".".  {} 
			,     .

==============================================================================
3.  		           *simple-change* *_*

							                   *r*
r{}			       {}. 
			 {}  <CR>  <NL>,    
			    .  
			    <CR>  CTRL-V
			<CR>. CTRL-V <NL>    
			 <Nul>.
			{Vi: CTRL-V <CR>      
			.     <CR> }
			      [],  Vim
			 []    [] 
			{}. ,    {} 
			<CR>  <NL>,  Vim    <CR>:
			,   "5r<CR>" ģ  
			    . 
			    {}  <CR> 
			<NL>,  Vim   
			.       
			 ,    ,  
			,     "i<CR><Esc>".
			 {}   ģ   , .
			|-|. 
			 |:lmap|    {}. 
			CTRL-^      
			     |i_CTRL-^|. 
			   'encoding'  
			Unicode,       
			|utf8--|.

							                  *gr*
gr{}		      
			 {}.      
			 ,    .  . |gR| 
			|__|.     |r|,
			   -[].  
			{}     ,   
			 |r|. 
			{    ,  Vim 
			  +vreplace}

					       *digraph-arg* *-*
     ,  |r|  |t| 
 .     'cpo'    'D',  
    ģ    (. ||).   
 CTRL-K     . 
{    ,  Vim   
|+digraphs|}

						      *case* *_*
,  ,    .  
      (. ||). . 
|:language|.       LC_CTYPE.

							                   *~*
~			 'notildeop':     
			    .  
			 [],   
			 .
			{Vi:    []
			}

~{}		 'tildeop':    , 
			 ģ {}.
			{Vi:      
			}
			
							                  *g~*
g~{}		   ,  
			ģ {}.
			{Vi    }

g~g~							          *g~g~* *g~~*
g~~			    .
			{Vi    }

							                 *v_~*
{}~		    
			(  {} . |_|).
			{Vi    }

							                 *v_U*
{}U		     
			  (  {} .
			|_|).
			{Vi    }

				            *gU* *uppercase* *_*
gU{}		   ,  
			ģ {}  .
			{Vi    }

			: >

				:map! <C-F> <Esc>gUiw`]a
<			
			     :  
			CTRL-F       
			.     : 
			       
			     .
			
gUgU							          *gUgU* *gUU*
gUU			      .
			{Vi    }

							                 *v_u*
{}u		      
			 (  {} .
			|_|).
			{Vi    }

					     *gu* *lowercase* *_*
gu{}		   ,  
			ģ {}  .
			{Vi    }

gugu							          *gugu* *guu*
guu			      .
			{Vi    }

							          *g?* *rot13*
g?{}		 ,   ģ 
			  Rot13.
			{Vi    }

							                *v_g?*
{}g?		     Rot13
			(  {} . |_|).
			{Vi    }

g?g?						 	          *g?g?* *g??*
g??			     Rot13.
			{Vi    }


   ~
							              *CTRL-A*
CTRL-A			 []      
			    .
			{Vi    }

							              *CTRL-X*
CTRL-X			 []      
			    .
			{Vi    }

 CTRL-A  CTRL-X     ,    
,     ,   
 .      'nrformats'.

-     'nrformats'  "alpha",  Vim  
         .   
   ,      .

-     'nrformats'  "hex",  Vim   ,
    '0x'  '0X' .   
          
    .       
  ,  Vim   ,   
  . 

-     'nrformats'  "octal",  Vim  
  ,   '0' .    
       .    
  ,      ;    
    ,    .

     (    
),  Vim       ,  
. CTRL-A   "0077"    "0100", CTRL-X  
"0x100"    "0x0ff".  ,     
'nrformats'  "octal",      
,       .

 CTRL-A    . ,   
     :

1.    , ,     .
2. qa	     -     'a'.
3. Y	     -   .
4. p	     -     .
5. CTRL-A    -   
6. q	     -  
7. <>@a -  ,     
	       <> 


    	       *shift-left-right* *--*

							                   *<*
<{}		 ,   {}, 
			  'shiftwidth' .
			
							                  *<<*
<<			  []    
			'shiftwidth' .

							                 *v_<*
{}[]<	    [] 'shiftwidth'
			 (  {} .
			|_|).
			{Vi    }

							                   *>*
 >{}		 ,   {}, 
			  'shiftwidth' .

							                  *>>*
 >>			  []    
			'shiftwidth' .

							                 *v_>*
{}[]>	    [] 'shiftwidth'
			 (  {} .
			|_|).
			{Vi    }

							                  *:<*
:[]<		 ,   []  
			 'shiftwidth' .    
			 'shiftwidth'   
			 '<'.
			
:[]< {}	  {}    
			'shiftwidth' ,   ,  
			 [] ( :  ,
			. |_-|).   
			  'shiftwidth'  
			  '<'.

:[]le[ft] []  ,  [],  
			.      
			[] ( : 0).
			{Vi    }

							                  *:>*
:[]>		 ,   []  
			 'shiftwidth' .    
			 'shiftwidth'   
			 '>'.

:[]> {}	  {}    
			'shiftwidth' ,   ,  
			 [] ( :  ,
			. |_-|).   
			  'shiftwidth'  
			  '>'.

 ">"  "<"        .
  'shiftwidth'     ,
        . 
    8,        
  , , 3.   , 
     .     
.

   'shiftround',      ,
  'shiftwidth'.

   'smartindent'    'cindent'   
 'cinkeys'  '#',      ,
  '#' ( ,    
 C,      ).

  'expandtab'  ( ),  Vim   
  <Tab>,   .   ,
   , ,   
   <Tab>,   ">><<".   'expandtab'
,  Vim     .    
">><<"       <Tab>  .
       ":retab!".

      'shiftwidth', 
   ,   ":". : >

	Vjj4>		    4  
	:<<<		    3  
	:>> 5		 5   2  
	:5>>		  5  2  

==============================================================================
4.  			  *complex-change* *_*

						         *!* *filter* **
!{}{}	  ,   ģ
			{}   -{}.

							                  *!!*
!!{}		  []   
			-{}.

							                 *v_!*
{}!{}	    
			-{} (  {} 
			. |_|).
			{Vi    }

:{}![!]{} [!][]                             *:!*
			 ,    {}
			  -{}. Vim 
			  []  .
			     , 
			   . Vim  
			'shellredir'     
			 .

							                   *=*
={}		 ,   ģ
			{}   ,  
			   'equalprg'.  
			 'equalprg'   ( ), 
			   
			 |C-|. ,   
			 'indentexpr',     
			  |-|.

							                  *==*
==			  []   , 
			     ={}.

							                 *v_=*
{}=		    ,  
			    ={}.
			{Vi    }

 -  ,      ,
   -      
. , ģ ,      
.     "sort",  
  , "indent",      
    C (    "indent" 
).  'shell'    ,  Vim 
  - (.     'shelltype').
,   ,     ".". Vim 
  (  '"')   :!.

						      *:s* *:su* *:substitute*
:[]s[ubstitute]/{}/{}/[&][c][e][g][p][r][i][I] []
			    []  
			{}   {}.
			  . ||.
			{}      
			; . |__|.
			 []  []  ,  
			    . 
			  [],     
			 ,     [].
			 []  ,   
			   .
			.  |_-|.
			   . |:s_|.

:[]s[ubstitute] [c][e][g][p][r][i][I] []
:[]&[&][c][e][g][p][r][i][I] []			          *:&*
			   :substitute   
			    ,    
			   (. |:s_|).
			 ,    ":substitute"
			      '&',
			     .
			  ":substitute"   'c', 'g'  'r' 
			,      ӣ-
			,    .

:[]~[&][c][e][g][p][r][i][I] []			          *:~*
			       
			 ,     
			   .   
			 ":&r".    . 
			|:s_|.

						                           *&*
&			  ":s//~/" (  ).
			 ,    , 
			     . 
			,      , 
			 ":&&".

						                          *g&*
g&			  ":%s//~/&" (   
			     ).
			: global substitute (" ").
			{Vi    }

						                   *:snomagic*
:[]sno[magic] ...	
			 ,   ":substitute",   
			'nomagic'.
			{Vi    }

						                     *:smagic*
:[]sm[agic] ...	
			 ,   ":substitute",   
			'magic'.
			{Vi    }

					               *:s_flags* *|:s_|*
      :

[&]	      .    ,
	      . : >

		:&&
		:s/this/that/&
		
<	 ,  ":s"  ":&"   .	
	{Vi    }

								        *:s_c*
[c]	    . Vim   
	  (  |hl-IncSearch|).   
	:
	    
	    'y'	      
	    'l'	          ("last",
		    "").
	    'n'	      
	    <Esc>    
	    'a'	         
		    {Vi    }
	    'q'	     
		    {Vi    }
	    CTRL-E    
		    {Vi    ;    
		    ,  Vim   
		    +insert_expand}
	    CTRL-Y    
		    {Vi    ;    
		    ,  Vim   
		    +insert_expand}
		    
	   'edcompatible',  Vim   [c] 
	   ,   ,    
	     .
	{Vi    'y'  'n',    
	 }

[e]          ,   
	   .     
	  ,     , , 
	     .      , 
	,   "  "  
	.    , Vim     
	:

	              
		 \      /, ?,  &
		    
		 
		

	{Vi    }

[g]	    .     
	       . 
	  'edcompatible',  Vim    
	    ,    
	   .  ޣ  'gdefault'
	    ,    [g]  
	  .

[i]	       .  'ignorecase'
	 'smartcase'  .
	{Vi    }

[I]	      .  'ignorecase' 
	'smartcase'  .
	{Vi    }

[p]	 ,   .
	{Vi    }

[r]	      ":&"  ":s"  . ":&r"
	  ,   ":~":     ,  
	       
	      ":global".  
	,      ,  
	  ":global",      .  
	    ,  "/",  
	   .
	  ":s"       : >
	
		:s///
		/̣
		:s///     :~     :&r
<	
	    "̣"  "". >

		:s///
		/̣
		:&
<
	    ""  "".
	{Vi    }

 ,  ,    "" 
("magic")  .     .  
,        ,   ,
   ,  ,     --
   ,  . 

 {}     ,     
      ":global".  [r]
      ,  ":global"
  . 

   Vi     :
"\/{}/"  "\?{}?"   ,   "//{}/r".
"\&{}&"   ,   "//{}/".

							                *E146*
  '/',       
,     ,   ,
, '\', '"'  '|'.   ,    
'/'       . : >

	:s+/+//+

    : ||.

			        *sub-replace-special* *__*
 {}   "\=",     , 
  .      ,  
  ,   ,   "<CR>", "\<CR>"  "\\".
 ,       ,
     ,    <CR> 
   ,      
<CR>  .
    ,  ,    
"submatch(0)". ,     ()  , 
  "submatch(1)",        
 ().
    : -     ! 
      , , "@" 
":".    ,     
-.

: >

	:s@\n@\="\r" . expand("$HOME") . "\r"@

   {}   :

            ~

  &	      \&	               *s/\&*
 \&	      &	              &
         \0		          *\0* *s/\0*
         \1		          () *s/\1*
         \2	                
			     () 				        *s/\2*
         ..	            ..	 				        *s/\3*
         \9	                 
			     ()				        *s/\9*
  ~	      \~	      {}   
			                                     *s~*
 \~	      ~		      ~			        *s/\~*
	\u		         
			    					*s/\u*
	\U		         
			    ,    \E		*s/\U*
	\l		         
			    					*s/\l*
	\L		         
			    ,    \E		*s/\L*
	\e		     \u, \U, \l  \L 
			    (:  <Esc>!)			*s/\e*
	\E		     \u, \U, \l  \L			*s/\E*
	<CR>		          
			    (<CR>   CTRL-V <Enter>)	       *s<CR>*
	\r		     				        *s/\r*
	\<CR>		        (CTRL-M)		
			    (<CR>   CTRL-V <Enter>)	     *s/\<CR>*
	\n		      <NL> (  <NUL>)    
			    (  )		        *s/\n*
	\b		      <BS>			*s/\b*
	\t		      <Tab>			*s/\t*
	\\		                *s/\\*
	\x		     x   ,   :
			       

: >

  :s/\|/xxx\0xxx/g		  " "	      "xxxxxx xxxxxx"
  :s/\([]\)\([]\)/\2\1/g	  "  "  "  "
  :s//^M/		  ""     "", "" (
							)
  :s/$/\^M/			  ""     "^M"

:     CTRL-V   .
    ,     Vi. 
      .

			 ~
:s/aa/a^Ma/	aa	a<->a
:s/aa/a\^Ma/	aa	a^Ma
:s/aa/a\\^Ma/	aa	a\<->a

(  ^M    CTRL-V <CR>)

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

  :s/\(\(a[a-d] \)*\)/\2/       "aa ab x"  "ab x"

      '|', , ,  
\([ab]\)\|\([cd\),       ,  
   ,   \1,  \2  . : >

  :s/\([ab]\)\|\([cd]\)/\1x/g    "a b c d"   "ax bx x x"
<
						          *:pro* *:promptfind*
:promptf[ind] []
			    .  
			[],       
			  .
			{      
			 Win32, Motif  GTK}

						      *:promptr* *:promptrepl*
:promptr[epl] []
			      . 
			 [],     
			    .
			{      
			 Win32, Motif  GTK}

							       *:ret* *:retab*
:[]ret[ab][!] [__]
			   , 
			 <Tab> ,   
			.      
			,   ,  Vim  
			  'tabstop'.
			   'tabstop'  
			    
			. 
			 !  Vim   ,
			   ,  
			 ,   .
			 ޣ  'expandtab' Vim  
			     .
			     'tabstop',
			   .  ,  
			   ,   
			,     - 
			.
			:     <Tab> 
			     C.   
			,      
			"\t" (   ).
			":retab!"    
			  <Tab>,    
			    printf().
			{Vi    }
			{    ,  Vim 
			  |+ex_extra|}

					        *retab-example* *retab-*
ģ      ":retab"  
,   Σ      8, 
  ,  4. :   
 ! .     'softtabstop'. >

  :auto BufReadPost	*.xx	retab! 4
  :auto BufWritePre	*.xx	retab! 8
  :auto BufWritePost	*.xx	retab! 4
  :auto BufNewFile	*.xx	set ts=4

==============================================================================
5.          *copy-move* *-*

						             *quote* **
"{a-zA-Z0-9.%#:-"}	  {a-zA-Z0-9.%#:-"}  
			 ,    
			(     
			     ).
			 {.%#:}     .

							   *:reg* *:registers*
:reg[isters]		      .
			{Vi    }

:reg[isters] {}	     ,
			   {}. : >

				:dis 1a
				
<			   '1'  'a'. 
			 {}   .
			{Vi    }

							      *:di* *:display*
:di[splay] []	 ,   ":registers".
			{Vi    }

						      *y* *yank* **
["x]y{}	 ,   ģ
			{} [  x].   ,
			     (, 
			  "y0"   1),   
			 'E'    'cpoptions'  
			  .
			
							                  *yy*
["x]yy			  []  [  x]
			().

							                   *Y*
["x]Y			  []  [  x]
			(-  yy, ).   
			,   "Y"   
			    ,   , 
			    Vi,  
			 ":map Y y$".

							                 *v_y*
{}["x]y	   [  x] (
			 {} . |_|).
			{Vi    }

							                 *v_Y*
{}["x]Y	   [  x] (
			 {} . |_|).
			{Vi    }

							          *:y* *:yank*
:[]y[ank] [x]	  []  [  x].

:[]y[ank] [x] {}
			  {} ,  
			   [] ( : 
			, . |_-|), 
			[  x].

						    *p* *put* ** *E353*
["x]p			  [  x]   
			[] .
			{Vi     }

							                   *P*
["x]P			  [  x]   
			[] .
			{Vi     }

					 *<MiddleMouse>* *<>*
["x]<MiddleMouse>	      
			[] .    ,  
			 "*.      , 
			  'mouse'  'n'  'a'.
			{Vi    }
			          
			   ,   
			    : >

				:map <MiddleMouse> <Nop>
				:imap <MiddleMouse> <Nop>
<
							                  *gp*
["x]gp			 ,   "p",     
			 .
			{Vi    }

							                  *gP*
["x]gP			 ,   "P",     
			 .
			{Vi    }

							          *:pu* *:put*
:[]pu[t] [x]	  [  x]   []
			( :   ).  
			  , ţ  
			    .
			     '=' 
			- .    
			   .   '|'  '"'
			    , 
			 . : >

				:put ='path' . \",/test\"

<			   '='  ,  Vim 
			 .   
			   ":dis =".

:[]pu[t]! [x]	  [  x]  
			[] ( :   ).

["x]]p		    					*]p* *]<MiddleMouse>*
["x]]<MiddleMouse>	 ,   "p",     
			    .  
			   ,    'mouse' 
			'n'  'a'.
			{Vi    }

["x][P		    					*[P*
["x]]P		    					*]P*
["x][p		    					*[p* *[<MiddleMouse>*
["x][<MiddleMouse>	 ,   "P",     
			    .  
			   ,    'mouse' 
			'n'  'a'.
			{Vi    }

           .
    ,     
 ,         
.           
   ,  Vim    
   (      
 CTRL-^).

				   *_* *_*
				  *linewise-register* *characterwise-register*
       "." (  
:put)  .  ,    
,  ,  Vim     ("p")  
("P") ,    .    Vim 
  ("p")   ("P") .   ":put" Vim 
     .    
     "xp".  
      "ddp".    
     "deep" ( 
      ).   
    "']"  "`]"    
  ,       
 "'["  "`[".

		      *-_* *put-Visual-mode* *v_p* *v_P*
   ,   |p|  |P|   ,
Vim      .  
       ,   
.    ,      
   ,        (  ,
         
 ,      ).

				       *blockwise-register* *_*
         ,
     ("P")   ("p") ,  
      . Vim   , 
        .  , 
    ,       . Vim
    <Tab>     
.    ,       ,  
     <Tab>,   
  .

 ,     Vim   
   ,     
.    ,   "yl"   ,  
"yh"      .   
  :  Vi  "y",     
 ,       
, ..   .  Vim     
,    Posix.

   :		 ** *registers* *E354*

1.   ""
2. 10    "0  "9
3.    "-
4. 26    "a  "z   "A  "Z
5.      ":, "., "%  "#
6.   "=
7.   "*, "+  "~ 
8. -"ޣ " "_
9.      "/


1.   ""	  *quote_quote* *quotequote* *_*

Vim    ,   ̣    "d",
"c", "s", "x",     "y",   ,  
 -   (, "xdd).  
 "_:  "_dd   ̣   . Vim
       ,  
  .        '"', ..
     .    ""  
   "0.
{Vi:         ;  Vi
  '"'}

	                                 *_* *0* *1* 
		                   *2* *3* *4* *9*
          *quote_number* *quote0* *quote1* *quote2* *quote3* *quote4* *quote9*


2.    "0  "9	

Vim     ,   
  . 
     0      
,       -  
["x].
     1      
   ,       -
   ̣   ,    (
  ,     ).
      : |%|, |(|, |)|, |`|, |/|,
|?|, |n|, |N|, |{|  |}|.       1,
     Vi.  ,   
  ,   "-  . 
         Vim  
  1   2,  2 -   3,  ..;
   9 . 
{Vi:         
;  Vi   0}


3.    "-    *quote_-* *quote-* *_-* *-*

       ,   
  ,   ,      -
  ["x].
{Vi    }

					            *_* *a*
4.    "a  "z   "A  "Z       *quote_alpha* *quotea*

Vim       .   
   ,     .
          
 . 


5.     ":, "., "%  "#

 '%', '#', ':'  '.'    .  
    "p", "P"  ":put",     CTRL-R.
{Vi    }

			       *quote_.* *quote.* *_.* *.* *E29*
	".	    ( , 
		   CTRL-A  CTRL-@).
		:   CTRL-R    
		   :   
		  ޣ   'textwidth'  .

				     *quote_%* *quote%* *_%* *%*
	"%	   .

				     *quote_#* *quote#* *_#* *#*
	"#	   .

			       *quote_:* *quote:* *_:* *:* *E30*
	":	      .
		 , ,    
		 "@:".
		        , 
		   ţ   ģ  .  
		  ,      . 
                {    ,  Vim  
		 |+cmdline_hist|}


6.   "=		     *quote_=* *quote=* *_=* *=*

        ,  
   ,   . 
     -     . 
 '='     ,    
 (. ||).        
  ,    . 
         <CR>,  Vim
  .     
 <Esc>,  Vim    .   
 ,  Vim    (   "/").
  "=    "p",     
 <NL>.     <NL>,   
 .
{Vi    }


7.   "*, "+  "~ 

         
  . .  |_ף|  |+|. 
      ,    
  . 
{Vi    }

 ,   ,   X11  
 "*  "+.      |x11-|. 
MS-Windows  "*  "+      
    , . |gui-_|.

			    *quote_~* *quote~* *_~* *~* *<Drop>*
    "~   ,    
    (..  drag'n'drop).  - 
      Vim,   -  
 "~       <Drop>. 
      ;   
       "~   . 
{Vi    }
{          GTK 
   ,  Vim    |+dnd|}

:  "~        Vim
 .      URI  .


8. -"ޣ " "_			           *quote_* *_*

       .    
   ,      . 
      .
{Vi    }


9.      "/                 *quote_/* *quote/*
                                                        *_/* */*

       .  
    "n"    'hlsearch'.   
      ":let",   
'hlsearch'       
.         
.
{Vi    }

							                  *@/*
        ":let" |let-@|. :
>
	:let @/ = "the"

      ,  Vim 
,       (  
 ).    ,  
 ":dis"  ,  ,     
 (        
;     '"').

       .

:[]co[py] {}				         *:co* *:copy*
			 ,  [], 
			  ,   {}.

							                  *:t*
:t			   :copy.

:[]m[ove] {}			     *:m* *:mo* *:move* *E134*
			 ,  [],  ,
			  .

==============================================================================
6.  		         *formatting* **


:[]ce[nter] []				       *:ce* *:center*
			    []  , 
			   [] (   
			     'textwidth'
			 80,    'textwidth'  0).
			{Vi    }
			{    ,  Vim 
			  |+ex_extra|}

:[]ri[ght] []					*:ri* *:right*
			    []  
			,   []  (  
			     
			'textwidth'  80,    'textwidth'
			 0).
			{Vi    }
			{    ,  Vim 
			  |+ex_extra|}

							         *:le* *:left*
:[]le[ft] []
			    []  
			.     
			[] (  0). 
			{Vi    }
			{    ,  Vim 
			  |+ex_extra|}

							                  *gq*
gq{}		 ,   ģ
			.   'textwidth' 
			   .  
			 'textwidth'  0,   
			     ( 
			  79).
			{Vi    }
			    
			'formatoptions', . |fo-|.
			:      "Q".
			      , 
			 : >

				:nnoremap Q gq

gqgq							          *gqgq* *gqq*
gqq			  .
			{Vi    }

							                *v_gq*
{}gq		   (
			 {} . |_|).
			{Vi    }

:      : >

	gqap

 "gq"       ,  
   .   
    ".".     
 "gqj" (    )  "gq}"
(    ). :  ޣ 
'formatprg' "gq"       ( 
   ). 

 ޣ  'autoindent' Vim      
 .

     (  ,  
  !).

 'joinspaces'    .

     'formatprg'   
,  Vim     . 
        'textwidth'
   .

			          *right-justify* *___*
 Vim         .  
    ,  "par" (  
   , ,  "!}par"),  
  'formatprg'  "par".

			        *format-comments* *-*
Vim     . Vim 
       ( ). 
     :

- ,        .
          ,
      '#'.
- ,        , 
    .      ,  
      .
- ,    ң ,  :   
  ,        
     . ,    ,
       .    - 
     C: >

	/*
	 *     C 
	 */

  'comments'   , ̣ . 
    .    
:

	{}:{}

{}   ,     .

{}:
  n	 .    
	.    'comments'   "n:),n:>", 
	,    "> ) >"  .

  b	 {}       <Space>, <Tab>
	 <EOL>.

  f	      . ,
	 ,     , 
	    (,  ).

  s	 ң 

  m	 ң 

  e	 ң 

  l	        
	    ( ).    
	,     's'  'e'.

  r	        
	   .     , 
	   's'  'e'.

  O	      "O".

  x	  ң    
	        , 
	      .
	 . .

  {}
	    's'  'e':  
	   .     
	         
	     .

  -{}
	 ,   {},    ,  . 
	    ,      
	  ,   .

     'f', 's', 'm'  'e',  Vim , 
       . 
   .

     {}   {}  
{},        ,  
    .

      ,    
  . ,      
"-",   "->",  >

	:set comments=f:->,f:-

ң       : 
,     ,    
 .  ң : >

	sr:/*,mb:*,ex:*/

  ,  ,      C. 
     "*ptr"   ,
    'b'.  ң  Vim 
         .  Vim
  ,      
. ң     , 
 Vim      .

     "x"  ģ  
ң .     ͣ  <Return> 
    C, Vim      
,  " * ".     
   "/"        .
  ģ       
      " */".  ,  
    <Backspace>.

: >

   "b:*"	 ,   "*",  ,  
		"*"   .   
		,     ("*str")
		  .
   "n:>"	 ,    ">", ">>", ">>>"  ..
   "fb:-"	 ,    "- "

   "b:#".  ,  ,   
"#include"    ,  , 
  "# define"   . 

          
     . ,   
 Javadoc,      (
 ":set"     ): >

	s1:/*,mb:*,ex:*/

 ,      ,   
      ,    
.           
  : >

	/**
	 * 
	 */

{    ,  Vim   
|+comments|}

						       *fo-table* *fo-*
 'formatoptions'       ,  Vim
 .   'formatoptions'   ,
       .  
     "tcq".    
   .

	   'formatoptions'    ~

t	      
	'textwidth' ( ).
	
c	      
	 'textwidth',     .
	
r	      <Enter> 
	 .
	
o	      'o'  'O'
	  .
	
q	     "gq".
	:       ,
	    .   
	        .
	
w	    ,     
	. ,    , 
	.
	
a	  .  ,  
	  ,   . . 
	||.
	   'c',       
	.
	
n	     . 
	        .
	    '.', ':', ')', ']'  '}'.
	 ,       
	'autoindent'.          "2".
	: >

		1.  
		   
		2.  

2	        
	   ,    . 
	  ,      ,
	    .  ,  
	     'autoindent'. : >

			  
		    
		 .

v	Vi-      : 
	   , ģ    
	. (:    100%-  Vi.   ,
	  Vi   ,  " "  
	. Vi      .)

b	 ,   'v',       
	,          . 
	    ,    'textwidth', 
	      ,   
	'textwidth',  Vim     . 
	
l	      :    
	   ,    'textwindth',  Vim
	     .
	
m	        255. 
	       ,  
	   . 
	
M	         
	.      'B'.
	
B	        
	.     'M'.

1	       .  
	    ,   .

 't'  'c'  ,  Vim   
:

    	~
""	       (  
	      "gq")
"t"	      ,   
"c"	      ,    (
	         C)
"tc"	        

:    'textwidth'  0,  Vim  
,        
 'comments'.

:  ޣ  'paste' Vim    .

:   'textwidth'       ,
 Vim    .     'textwidth'
       "gq".

  'comments'  "/*", "*" / "*/",  Vim 
   ݣ     
. 
      "/*"  "*/" (   'r' 
'o'  'formatoptions')     .  
        .
   ,    "/*"  "*"  
"*/",          , 
      ,   
. :

    /* ~
     *  . ~
     */ ~

        ,    ,   
    .

    ,    
  :autocmd,      
  .

 :
      C (  ): >
  
	:set fo=croq
< 
       ( ӣ,  
      "o"): >

	:set fo=tcrq
<

 		    *auto-format* **

    'formatoptions'   'a',   
       
.       .  
    :

-     .      -
     .      ,
       -    'w'  
         . 

-   'formatoptions'      
  (. |_|)        
  |_|).

-   'formatoptions' "aw2tq"     
  : >

	    , , p, p,  -
	  .
	       
	   .

-  'c'     
  .      .

 :

-       ,    
          
  .   ,   
  : >

	:set fo-=a

-    'w' (     
     ),       
  |dd|         . 

- Σ     .   
   .  ,      
      ,     .
       .

-    /      
  .

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