*intro.txt*      Vim version 6.2.   : 2003 May 31


		        VIM   


  Vim			                *ref* *reference* **

1.     			||
2. Vim      		||
3. 			||
4. 			||
5.    Vim	|_vim|
6.   	|_|
7.  		|_|
8. 			||

==============================================================================
1.     						    *intro* **

Vim    Vi IMproved ( Vi).  
   Vi IMitation (" Vi"),   
 ,     . Vim 
 ,       
"Vi", Σ   Unix,    .  
       .
         .  ,  
          . 
,     ,   ,  
  (. |gui.txt|).

        "help.txt",
|help.txt|.  Vim       <Help>  <F1>  
  |:help| (  ":help",    
).
    'helpfile'      ,   ,  
  -  .      
:    ,     CTRL-], 
  CTRL-T.

      Vi  Vim   
, : {Vi    }. . |vi_diff.txt|
      Vim  Vi.

     Vim   . 
       . 
   ,      
,    Vim, . |___|.

         Vim.  
    Vi  Vim,    ,
    .    
||.   Vim    
|usr_toc.txt|.

							        *book* **
Vi   ,      . 
 ,  ,  :

	"Vim - Vi Improved"   (Steve Oualline)

   ,   Vim.    
.         
.         ,
     .     
  .       
|_|.
  New Riders Publishing.  ISBN: 0735710015
      :
	http://vim.iccf-holland.org
	http://www.vim.org/iccf/click5.html

	"Learning the Vi editor"   (Linda Lamb)  
				   (Arnold Robbins)
				 
    Vi,       Vim (  ).
    Vi     . , 
   Vim   .     .
  O'Reilly.  ISBN: 1-56592-426-6.

==============================================================================
2. Vim      					 *internet* **
				   *www* *faq* *FAQ* *distribution* *download*
  Vim        Vim. 
       Vim. FAQ   
  .     ,   
.

	  VIM:	http://vim.sf.net/
	   VIM:	http://www.vim.org/
	 :	http://www.vim.org/news.html
	VIM FAQ:		http://www.vim.org/faq/
	 :	ftp://ftp.vim.org/pub/vim/MIRRORS


  Usenet,   Vim is discussed:      *news* *usenet*
	comp.editors
. http://www.vim.org/usenet.html.       
 .     Vim,     .

					     *mail-list* *maillist* **
							            **
Vim    :
<vim@vim.org>
	    Vim:  , ,
	,        ..
<vim-dev@vim.org>				            *vim-dev* *vimdev*
	    Vim:  ,  
	 , , -  ..
<vim-announce@vim.org>				                *vim-announce*
	    Vim;   -   
	 .
<vim-multibyte@vim.org>				               *vim-multibyte*
	       
	Vim.
<vim-mac@vim.org>				                     *vim-mac*
	      Vim  Macintosh.

. http://www.vim.org/mail.html.

:
-           !
-          ,   
   (   ).
-    40000 .

				   *subscribe-maillist* *--*
   ,     
	<vim-help@vim.org>
,    "From:" .    
   ,  .

         . 
     vim-help.

  :                 *maillist-archive* *-*
http://groups.yahoo.com/group/vim
http://groups.yahoo.com/group/vimdev
http://groups.yahoo.com/group/vimannounce
http://groups.yahoo.com/group/vim-multibyte
http://groups.yahoo.com/group/vim-mac

      http://www.somelist.com  
"Editeurs" (    ,   ).


  :

<vim-fr@club.voila.fr>				             *french-maillist*
	 Vim  .     
		<vim-fr-subscribe@club.voila.fr>
	   : http://groups.yahoo.com/group/vim-fr.


	                                  *bugs* *bug-reports* *bugreport.vim*
						          *__*
								       **
    :

     : Vim bugs <bugs@vim.org>
   ,   ,    ,
 .   ; , 
 ,   ,   , 
  Vim!   ,    
      
.   ,     
.   ,      !

   : >
   :so $VIMRUNTIME/bugreport.vim
    "bugreport.txt"   ,  
     .   ,  
   -  !

						     *debug-vim* *_vim*
 Vim        ,  
   gcc, ,     Vim 
,   :

1.  Vim   "-g" ( Makefile  ,  
    ,   ).

2.    ( "11"  ,   
    ): >
	cd testdir
	gdb ../vim
	run -u unix.vim -U NONE -s dotest.in test11.in

3. ,  Vim  , gdb     .

4.   gdb  : >
	where
<        : >
	frame 3
<  "3"          .

					     *year-2000* *Y2K* *_2000*
   Vim     ,   2000
       . Vim    
,   1  1970 .    
           
-,         
.

   2038 ,   , 
 1  1970       32-  .
     ,   
.  ,  time_t   ctime(). 
time_t   -   ,    
           
 .

 Vim strftime()     strftime().
localtime()    time(). getftime()  ,
   stat().     
 2000- ,        Vim.

     Vim,   
.       2000 ,   
      Vim.

==============================================================================
3. 			                   *credits* *author* **

  Vim    (Bram Moolenaar) <Bram@vim.org>.

        Vi,

	..  (W.N. Joy)
	 ..  (Alan P.W. Hewett)
	  (Mark Horton)

 Vim   Stevie       
 ,    ,  . 
   ,      ,   Vim
   .

Vim     ,   ,    !

	           (Ron Aaron)              
	                                           Win32
	     (Zoltan Arpadffy)        VMS
	         (Tony Andrews)       Stevie
	   (Gert van Antwerpen)   DJGPP  MS-DOS
	Berkeley DB(3)				   -
	         (Keith Bostic)       Nvi
	      (Walter Briscoe)      Makefile, 
	                                           
                 (Ralf Brown)          SPAWNO  MS-DOS
	        (Robert Colon)         
	      (Marcin Dalecki)       GTK+ GUI, 
	                                           , gettext()
	      (Kayhan Demirel)         
	                                           
	     (Chris&John Downey)  xvi (  
	                                           )
	         (Henk Elbers)           VMS
	          (Eric Fischer)         Mac, 'cindent', 
	                                             
	        (Benji Fisher)          
	                                            
	         (Bill Foster)         Athena GUI
	          (Loic Grenie)        xvim (  
	                                           )
	         (Sven Guckes)          Vim
	       (Darren Hiebert)     exuberant ctags
	      (Bruce Hunsaker)        VMS
	            (Andy Kahn)           cscope,  
	                                           GTK+ GUI
	         (Oezguer Kesim)         Vim
	     (Axel Kielhorn)          Macintosh
	      (Steve Kirkendall)   Elvis
	       (Roger Knobbe)          
	                                           Windows NT
	     (Sergey Laskavy)       Vim  
	   (Felix von Leitner)     Vim
	       (David Leonard)        Python 
	                                           Unix
	        (Avner Lottem)          
	                                           
	     (Flemming Madsen)    -  X11,
	                                             
						   
	MicroSoft				   DevStudio
	                                             Vim
	             (Paul Moore)           Python,
	                                            
	     (Katsuhito Nagano)     
	                                           
                 (Sung-Hyun Nam)        
	                                           
	         (Vince Negri)          Win32  
	                                            
						   
	         (Steve Oualline)         
	                                           Vim |_|
	 .    (George V. Reilly)     Win32,   
	                                              
						   Win32.
	          (Stefan Roemer)       
	         (Ralf Schandl)         IBM OS/390
	        (Olaf Seibert)         DICE  BeBox,
	                                            
						    
	       (Mortaza Shiran)       
	      (Peter da Silva)	termlib
	         (Paul Slootman)        OS/2
	       (Henry Spencer)       
	 -    (Dany St-Amant)        Macintosh
	         (Tim Thompson)       Stevie
	..()  (G.R. (Fred) Walter) Stevie
	      (Sven Verdoolaege)     Perl
	         (Robert Webb)          ,
	                                             
						   , 
						   
	         (Ingo Wilken)          Tcl
	        (Mike Williams)       PostScript
	        (Juergen Weigert)      Lattice version, 
						      AUX, 
						      UNIX  MS-DOS, 
						    autoconf
	 ''   (Stefan 'Sec' Zehl)	 vim.org

    ,       
.     ,     . Vim
   ,   ,       :  
Vim !


        Vi:
							                  *Vi*
Vi	"".    ,     Vi,  
	  Sun OS 4.x. ":version"     
	"Version 3.7, 6/7/85".       . 
	   Unix.      .
	      :
		http://vi-editor.org
							               *Posix*
Posix	  IEEE 1003.2, Part 2:   .
	   "Posix".    ,   
	  Vi.
	     1996,  
	     .     
	...
							                 *Nvi*
Nvi	 "The New" Vi.   Vi  BSD 4.4  FreeBSD.  
	    Vi,   .
	  1.79.  ":version"  "Version 1.79
	(10/23/96)".         ,  
	     1.81.
	   .
							               *Elvis*
Elvis	ݣ   Vi clone,   . 
	,     ,  Vim.
	  2.1.     .  
	 .

==============================================================================
4. 					       *notation* **

    ,    
     Special.     
[], {}  <>,  CTRL-X.

: Vim      .  [], {} 
<>    ;      .

[]		     . 

			            *count* *[count]* *[]* ** *E489*
[]		    , 
		   .    , 
		  ,      -
		.  ,     [] 
		   ,   .  
		  ,      . 
		  'showcmd',     
		   .    
		  <Del> (|N<Del>|).

						       *[quotex]* *[x]*
["x]		   ,    
		. . ||. x     'a'  'z'
		  'A'  'Z'  '"', ,    ( 
		put)  '0'  '9', '%', '#',   .  
		     ,   
		    ,  
		     .  ""x" 
		""""      .

									  *{}*
{}		     ,  
		,      
		.   Vim  Vi    
		 (   ).

					       *{char1-char2}* *{1-2}*
{1-2}	     1  2. : {a-z}
		  .    
		. , {a-zA-Z0-9}   
		- .

							       *{}*
{}	,  .  . |motion.txt|.
		:
			w		   
			4j		   
			/The<CR>	    "The"
		     || 
		  ,     .
		-        
		  ,     . , "2d3w"
		    .
		-       . 
		   ,     .
		-  ":omap"     
		    ,    .
		-  Ex     
		  .      ,
		    .  
		      ,   ,
		    ":" .  ,  
		         
		  (    'virtualedit').
		    Ex     , 
		    ,     ,
		    .   
		  .     ,  
		      .

						      *{Visual}* *{}*
{}	  .     "v",
		"V",  CTRL-V,      
		      . 
		    ||  
		,     .
		. |_|.

						      *<character>* *<>*
<>	   ,  ,  
		,    ASCII  .

						      *'character'* *''*
'c'		  ASCII.

						 *CTRL-{char}* *CTRL-{}*
CTRL-{}	{}   ;  , {}
		     CTRL.  {}
		  ; CTRL-A  CTRL-a . , 
		    SHIFT  
		  ,    ţ   .

							  *'option'* *''*
''		  ,     ,
		   . . ||.

				   *quotecommandquote* **
""	  ,   ,  
		 .

			   *key-notation* *key-codes* *keycodes* *_*
 ,  ,   .   
    ":map" (    
CTRL-K     ).

				 	~
------------------------------------------------------------------------------
<Nul>					CTRL-@	      0 ( 10)  *<Nul>*
<BS>		 		CTRL-H	      8		   *backspace*
<Tab>			    	CTRL-I	      9		   *tab* *Tab*
								    *linefeed*
<NL>		 		CTRL-J	     10   (  
								        <Nul>)
<FF>		 		CTRL-L	     12		    *formfeed*
<CR>		 		CTRL-M	     13	     *carriage-return*
<Return>	,   <CR>				    *<Return>*
<Enter>		,   <CR>				     *<Enter>*
<Esc>		escape			CTRL-[	     27	      *escape* *<Esc>*
<Space>						     32		       *space*
<lt>		 		<	     60			*<lt>*
<Bslash>	  	\	     92	*backslash* *<Bslash>*
<Bar>		  	|	    124		       *<Bar>*
<Del>						    127
<CSI>		 			       *<CSI>*
		    (command 
		   sequence intro)	ALT-Esc 155 
<xCSI>		CSI    			      *<xCSI>*
		   	                        

<EOL>		  (   		       *<EOL>*
		  'fileformat'   
		<CR>, <LF>  <CR><LF>)

<Up>		 		*cursor-up* *cursor_up* *_*
<Down>		 	     *cursor-down* *cursor_down* *_*
<Left>		 	    *cursor-left* *cursor_left* *_*
<Right>		 	 *cursor-right* *cursor_right* *_*
<S-Up>		   shift
<S-Down>	   shift
<S-Left>	   shift
<S-Right>	   shift
<C-Left>	   ctrl
<C-Right>	   ctrl
				                 *function_key* *function-key*
						       *_*
<F1> - <F12>	   F1  F12 
<S-F1> - <S-F12>    F1  F12  shift	      *<S-F1>*
<Help>		 
<Undo>		 
<Insert>	 
<Home>		   				*home*
<End>		   				 *end*
<PageUp>	 				   *page_up* *page-up*
<PageDown>	 			       *page_down* *page-down*
<kHome>		home  .  ( )		 *keypad-home*
<kEnd>		end  .  ( )		  *keypad-end*
<kPageUp>	page-up  .  ( )     *keypad-page-up*
<kPageDown>	page-down  .  ( )  *keypad-page-down*
<kPlus>		+  . 				 *keypad-plus*
<kMinus>	-  . 				*keypad-minus*
<kMultiply>	*  . 			     *keypad-multiply*
<kDivide>	/  . 			       *keypad-divide*
<kEnter>	Enter  . 			*keypad-enter*
<kPoint>	.  . 				*keypad-point*
<k0> - <k9>	  0  9  . 	 *keypad-0* *keypad-9*
<S-...>		shift+ 				 *shift* *<S-*
<C-...>		control+ 			*control* *ctrl* *<C-*
<M-...>		alt-  meta-   		    *meta* *alt* *<M-*
<A-...>		,   <M-...>					 *<A-*
<D-...>		 command- (  Macintosh)			 *<D-*
<t_xx>		   "xx"  termcap
------------------------------------------------------------------------------

:     shift,    
    .  Amiga,   F10
 shift    (CSI),   
.       
.

:  delete   . 127     
delete,    .     delete
   ,         termcap
"kD".     . .  |:fixdel|.

:      ,   
  . , <kHome>   ,   <Home>. 
       ,    
 ,        
 . ,  <kHome>    ,  
<Home>,    <kHome> Vim  ,   <Home>.  
   <kHome>   .

									  *<>*
      <>.     
,   ,    ,     
,    ":map".  :
 1.      ,    
       '<'
 2.      "\\",    
        <Bslash>.
 3.    '<'    "\<"  "<lt>".  
     ,      '<'.
 4.  "<key>"    .   
      .  :
	    <Esc>		 Escape
	    <C-G>		CTRL-G
	    <Up>		   
	    <C-LeftMouse>	     Ctrl
	    <S-F11>		Shift+F11
	    <M-a>		Meta- a ('a'   8 )
	    <M-A>		Meta- A ('A'   8 )
	    <t_kd>		  "kd"  termcap ( )
 
    <>   Vim, ,   '<'
  'cpoptions' (   'compatible',  
  ). >
	:set cpo-=<
 <>  <lt>  ,    
 .       , 
   ,  'cpoptions'    'B'.

   CTRL-H   "<Home>": >
	:imap <C-H> \<Home>
	:imap <C-H> <lt>Home>
      'cpoptions'   'B'.  
 .
    "<lt>"  : >
	:map <C-L> <lt>lt>

  ,       -
    . ,      
 ,   '<'  '>'.       ,
  ":set"  ":autocmd"!

==============================================================================
5.    Vim	    *vim-modes-intro* *vim-modes* *_vim*

 Vim    :

		         *Normal* *Normal-mode* *command-mode* *_*
 		        
			.       
			 (    
			'insertmode', . ).    
			  .

 	    ,  
			    . 
			 ,   
			,      
			 . . |_|.
			   'showmode'    
			   "-- . --".

 		      MS-Windows.
			      
			    . .
			|_|.
			   'showmode'    
			   "--  --".

 		       
			. . |_|.
			   'showmode'    
			   "--  --".

  	        
			  .     
			Ex,  ":",    , "?"  "/", 
			  , "!".  |__|
			
 Ex		 ,    ,   
			     .  
			   .  
			|_Ex|

    .    
 .

				    *Operator-pending* *Operator-pending-mode*
						    *__*
  
			 ,    ,    
			,  Vim  {}, 
			 ,     
			. 

 		      .
			   ,  ,  
			 ,   ,  
			  ,      
			. . |_|.
			   'showmode'    
			   "--  --".
			
   
 
			Vim       CTRL-O  
			.  , Vim      
			    ,    
			   .
			   'showmode'    
			   "-- () --".

   
 
			Vim        
			   ,   
			CTRL-O    "v", "V"  CTRL-V.
			   ,  Vim  
			 .
			   'showmode'    
			   "-- () . --".
  
 
			Vim        
			   ,  
			   <S-Right>. 
			    Vim   
			.
			   'showmode'    
			   "-- ()  --".

==============================================================================
			                                      *mode-switching*
6.   	                        *_*

   -         
,        ,   ͣ
<Esc>,    Ex,    ģ  
":visual".
       <Esc>  Σ   
.    ,   <Esc>     
CTRL-O    ,       
,     <Esc>  . 

								       *i_esc*
		  						    ~
			.	.		     .    Ex ~
  								 ~
			v V ^V	  *4	 *1	    R	    : / ? !   Q
.		 *2		  ^G	 c C	    --	      :       --
.		 *5	^O ^G		 *6	    --	      --      --
		 <Esc>	  --	  --		  <Insert>    --      --
 		 <Esc>	  --	  --	<Insert>	      --      --
. 	 *3	  --	  --	 :start	    --		      --
Ex		 :vi	  --	  --	 --	    --	      --

-   
--  

*1            "i",
   "I", "a", "A", "o", "O", "c", "C", "s"  "S".
*2          , 
     ,     ,  
    <Esc> "v", "V"  "CTRL-V" (. |v_v|),    
       - .
*3          
   :
   -   <CR>  <NL>,      .
   -      (,   CTRL-U) 
       <BS>.
   -   CTRL-C  <Esc>,      
        .
      <Esc>    ,   
    'wildchar';       
   .       <Esc>. {Vi:
     <Esc>   .    
     ,      Vim. ,
    <Esc>    ,    
   .   ,  Vim ף   Vi   <Esc>,
     ":cmap ^V<Esc> ^V^M"}
*4          :
   -     ,  'selectmode'  "mouse"
   -          
      Shift,  'selectmode'  "key"
   -   "v", "V"  "CTRL-V",  'selectmode'  "cmd"
   -   "gh", "gH"  "g CTRL-H"  |g_CTRL-H|
*5          
           Shift.
*6           
    .       
    .

   'insertmode',      
.
   
	 *CTRL-\_CTRL-N* *i_CTRL-\_CTRL-N* *c_CTRL-\_CTRL-N* *v_CTRL-\_CTRL-N*
    CTRL-\ CTRL-N  <C-\><C-N> 
       .    
,     ,  Vim    .  
 ,     <Esc>,  . ,   
   Ex.

	 *CTRL-\_CTRL-G* *i_CTRL-\_CTRL-G* *c_CTRL-\_CTRL-G* *v_CTRL-\_CTRL-G*
 CTRL-\ CTRL-G  <C-\><C-G>      
  ޣ  'insertmode'.     
    .    
    ,    'insertmode', 
     Vim    .

		           *Q* *mode-Ex* *Ex-mode* *Ex* *EX* *_Ex* *E501*
Q			   "Ex".    
			 ":"   :
			-     ":".
			-      .
			-     .
			-     .
			,     
			""    (<Del>  <BS> 
			 , CTRL-U   
			).
			Vim      , 
			     "ex".
			    "Ex"   ":vi"
			|:visual|. :    Vim "Q"
			   ,  
			   |gq|. ,  
			  |vimrc_example.vim|,  "Q"
			  "gq".
			
									  *gQ*
gQ			   "Ex",     
			  ,    ":"  
			  .    ,
			    ..
			    "Ex"   ":vi".
			{Vi    }

==============================================================================
7.  					     *_*

      /     
 :   ,  .   :
-   'cpoptions'  '$',     , 
     ,      
   '$'.
-      ,  ,    
        ,     .
{Vi:       }

,     ,  ,   
  'wrap' (. ).  'linebreak'   
 ,      .

       ,  Vim   '~'
     ,  : >

	+-----------------------+
	|                 |
	|        |
	|~                      |
	|~                      |
	+-----------------------+

 , ,   '~',    .

      ,  Vim     
  '@'      ,  : >

	+-----------------------+
	|           |
	|           |
	|@                      |
	|@                      |
	+-----------------------+

 , ,   '@', ,    
  .

   'display'   "lastline",     
'@'    .        ,
    ,    ,  
    "@@@", : >

	+-----------------------+
	|           |
	|           |
	|  , |
	|   @@@|
	+-----------------------+

    ,      , 
  ,    . Vim    
,    .     
  ,       .
{Vi:    ,    , 
" "}

 'highlight'   '@'   
  '@'  '~'.      ""
  .

 'showbreak'  ,    
 . 

					      *wrap-off* *_*
  'wrap' ,      . 
      ,    
.       ,  
  .     ,  
       ,    
.    ,        
.  'sidescroll'      
. {Vi:  'wrap' }

   ASCII    . <Tab> 
   .    
"^{}",  {}     64.  , 7
(bell)    "^G".   127  160 
"~{}",  {}    64.    
   ,       
.

   'number'       
. :    ,     
 ,   'showbreak'  8 :
	":set showbreak=\ \ \ \ \ \ \ \ "

 'list'    <Tab>  "^I"  
.           '$', 
       .

         .
          .

        .
        :

 	    		         .    . Unix	~
 			'showmode'	on	    on
    		'showcmd'	on	    off
 			'ruler'		off	    off

    "--  --"  "--  --", .
|'showmode'|.     ,   ,   
. {Vi:       }

        
:
	:set nosc noru nosm

  ,        
 (  ). {Vi:     
    ,     }

       . , 
  ,     'report' (  2).

 Amiga Vim    CLI.      Vim
    .     Vim 
 .      ,  , 
    ,   Σ     
.       40   ,    
      . 

   Unix       
. {Vi:    }

==============================================================================
8. 					   *definitions* **

  			 ,    Vim.   
			  .    "
			Vim".
  			 .

      ,    
     .

	+-----------------------------------------+
 	|  1  	     |  2  	          |
	|		     |		          |
	|		     |	 	          |
	|=   =|=   =|
	|  3                	          |
	|				          |
	|				          |
	|====   ===================|
	|    			  |
	+-----------------------------------------+

     .    
 ,   .

    :

   		  .    ,   ,
			        .
			      .
   	 ,   .   
			      :
			"+-- 99   ".    
			  .
   		,   :   , 
			  ,    .. 
			   ,    ,
			,     .
   		  ,   Vim.  
			    ,   
			    .  
			   ,    .
			    ,  
			,   ,  
			   .
  
 	     		  ~

1. 		1. 		    1. +--  	1.  +--  
2. 		2. +--      2. 		2.  
3.   	3. 		    3. 		3.  
4.    	4.     	    4. 		4.  
5. 		5. 					5.  === . . ===
6. 						6.  
7. 							7.  
							8.    
1. 		1. 		    1. 		9.  
2. 		2. 		    2. 		10. 
3.   	3.   	    3.   	11. ~ 
4. 		4. 		    4. 		12. === . . ===
				    5. 		13. ( )
				    6. ~ 

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