⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 intro.txt

📁 MSYS在windows下模拟了一个类unix的终端
💻 TXT
📖 第 1 页 / 共 3 页
字号:
*intro.txt*     For Vim version 5.8.  Last change: 2001 May 31		  VIM REFERENCE MANUAL    by Bram MoolenaarIntroduction to Vim					*ref* *reference*1. Introduction			|intro|2. Vim on the internet		|internet|3. Credits			|credits|4. Notation			|notation|5. Modes, introduction		|vim-modes-intro|6. Switching from mode to mode	|mode-switching|7. The window contents		|window-contents|==============================================================================1. Introduction						*intro*Vim stands for Vi IMproved.  It used to be Vi IMitation, but there are so manyimprovements that a name change was appropriate.  Vim is a text editor whichincludes almost all the commands from the Unix program "Vi" and a lot of newones.  It is very useful for editing programs and other 8-bit ASCII text.  Allcommands are given with the keyboard.  This has the advantage that you cankeep your fingers on the keyboard and your eyes on the screen.  For those whowant it, there is mouse support and a GUI version with scrollbars and menus(see |gui.txt|).A summary of this manual can be found in the file "help.txt", |help.txt|.  Itcan be accessed from within Vim with the <Help> or <F1> key and with the|:help| command (just type ":help", without the bars or quotes).  The'helpfile' option can be set to the name of the help file, in case it is notlocated in the default place.  You can jump to subjects like with tags: UseCTRL-] to jump to a subject under the cursor, use CTRL-T to jump back.Throughout this manual the differences between Vi and Vim are mentioned incurly braces, like this: {Vi does not have on-line help}.  See |vi_diff.txt|for a summary of the differences between Vim and Vi.This manual refers to Vim on various machines.  There may be small differencesbetween different computers and terminals.  Besides the remarks given in thisdocument, there is a separate document for each supported system, see|sys-file-list|.This manual is a reference for all the Vim commands and options.  This is notan introduction to the use of Vi or Vim, it gets a bit complicated here andthere.  For beginners, there is a hands-on |tutor|.  For setting up yourpreferences and writing Vim scripts see |vimrc-intro|.There are many books on Vi that contain a section for beginners.  I canrecommend "Learning the Vi editor" by Linda Lamb and Arnold Robbins, publishedby O'Reilly.  The sixth edition includes a chapter on Vim.  ISBN:1-56592-426-6.  There is also a German translation.==============================================================================2. Vim on the internet					*internet*		*www* *faq* *FAQ* *ftp* *distribution* *download* *vim-online*Vim online is a site where users can exchange Vim scripts, tips and otherthings.  It has links to all other places.The Vim pages contain the most recent information about Vim.  They alsocontain links to the most recent version of Vim.  The FAQ is a list ofFrequently Asked Questions.  Read this if you have problems.	Vim online:	http://vim.sf.net/	Vim pages:	http://www.vim.org/	Latest news:	http://www.vim.org/news.html	VIM FAQ:	http://www.vim.org/faq/	Downloading:	ftp://ftp.vim.org/pub/vim/MIRRORSUsenet News group where Vim is discussed:		*news* *usenet*	comp.editorsSee http://www.vim.org/usenet.html.  This group is also for other editors.  Ifyou write about Vim, don't forget to mention that.						*mail-list* *maillist*There are several mailing lists for Vim:<vim@vim.org>	For discussions about using existing versions of Vim: Useful mappings,	questions, answers, where to get a specific version, etc.<vim-dev@vim.org>				*vim-dev* *vimdev*	For discussions about changing Vim: New features, porting, patches,	beta-test versions, etc.<vim-announce@vim.org>				*vim-announce*	Announcements about new versions of Vim; also for beta-test versions	and ports to different systems.<vim-multibyte@vim.org>				*vim-multibyte*	For discussions about using and improving the multi-byte aspects of	Vim.<vim-mac@vim.org>				*vim-mac*	For discussions about using and improving the Macintosh version of	Vim.See http://www.vim.org/mail.html.NOTE:- You can only send messages to these lists if you have subscribed!- You need to send the messages from the same location as where you subscribed  from (to avoid spam mail).- Maximum message size is 40000 characters.						*subscribe-maillist*If you want to join, send a message to	<vim-help@vim.org>Make sure that your "From:" address is correct.  Then the list server willgive you help on how to subscribe.You can retrieve old messages from the maillist software, and an index ofmessages.  Ask vim-help for instructions.Archives are kept at:				*maillist-archive*http://www.egroups.com/group/vimhttp://www.egroups.com/group/vimdevhttp://www.egroups.com/group/vimannouncehttp://www.egroups.com/group/vim-multibytehttp://www.egroups.com/group/vim-macAnother archive is at http://www.somelist.com in the "Editeurs" section (thesite is in French, the messages are in English).Additional maillists:<vim-fr@club.voila.fr>				*french-maillist*	Vim list in the French language.  Subscribe by sending a message to		<vim-fr-subscribe@club.voila.fr>	Or go to http://www.egroups.com/group/vim-fr.Bug reports:				*bugs* *bug-reports* *bugreport.vim*	Bram Moolenaar <Bram@vim.org>Please be brief; all the time that is spend on answering mail is subtractedfrom the time that is spent on improving Vim!  Always give a reproducibleexample and try to find out which settings or other things influence theappearance of the bug.  Try different machines, if possible.  Send me patchesif you can!In case of doubt, use:>  :so $VIMRUNTIME/bugreport.vimThis will create a file "bugreport.txt" in the current directory, with a lotof information of your environment.  Before sending this out, check if itdoesn't contain any confidential information!							*debug*When Vim crashes in one of the test files, and you are using gcc forcompilation, here is what you can do to find out exactly where Vim crashes:1. Compile Vim with the "-g" option (there is a line in the Makefile for this,   which you can uncomment).2. Execute these commands (replace "11" with the test that fails):>	cd testdir>	gdb ../vim>	run -u vimrc.unix -U NONE -s dotest.in test11.in3. Check where Vim crashes, gdb should give a message for this.4. Get a stack trace from gdb with this command:>	where   You can check out different places in the stack trace with:>	frame 3   Replace "3" with one of the numbers in the stack trace.							*year-2000* *Y2K*Since Vim internally doesn't use dates for editing, there is no year 2000problem to worry about.  Vim does use the time in the form of seconds sinceJanuary 1st 1970.  It is used for a time-stamp check of the edited file andthe swap file, which is not critical and should only cause warning messages.There might be a year 2038 problem, when the seconds don't fit in a 32 bit intanymore.  This depends on the compiler, libraries and operating system.Specifically, time_t and the ctime() function are used.  And the time_t isstored in four bytes in the swap file.  But that's only used for printing afile date/time for recovery, it will never affect normal editing.The Vim strftime() function directly uses the strftime() system function.localtime() uses the time() system function.  getftime() uses the timereturned by the stat() system function.  If your system libraries are year2000 compliant, Vim is too.The user may create scripts for Vim that use external commands.  These mightintroduce Y2K problems, but those are not really part of Vim itself.==============================================================================3. Credits						*credits* *author*Most of Vim was written by Bram Moolenaar <Bram@vim.org>.Parts of the documentation come from several Vi manuals, written by:	W.N. Joy	Alan P.W. Hewett	Mark HortonThe Vim editor is based on Stevie and includes (ideas from) other software,worked on by the people mentioned here.  Other people helped by sending mepatches, suggestions and giving feedback about what is good and bad in Vim.Vim would never have become what it is now, without the help of these people!	Ron Aaron		Win32 GUI changes	Dany St-Amant		Macintosh port	Tony Andrews		Stevie	Gert van Antwerpen	changes for DJGPP on MS-DOS	Berkeley DB(3)		ideas for swap file implementation	Keith Bostic		Nvi	Ralf Brown		SPAWNO library for MS-DOS	Robert Colon		many useful remarks	Marcin Dalecki		GTK+ GUI port, toolbar icons	Kayhan Demirel		sent me news in Uganda	Chris & John Downey	xvi (ideas for multi-windows version)	Henk Elbers		first VMS port	Eric Fischer		Mac port, 'cindent', and other improvements	Bill Foster		Athena GUI port	Loic Grenie		xvim (ideas for multi windows version)	Sven Guckes		Vim WWW page maintainer	Darren Hiebert		Exuberant ctags	Bruce Hunsaker		improvements for VMS port	Andy Kahn		Cscope support, GTK+ GUI port	Steve Kirkendall	Elvis	Roger Knobbe		original port to Windows NT	Sergey Laskavy		Vim's help from Moscow	Felix von Leitner	Maintainer of Vim Mailing Lists	David Leonard		Port of Python extensions to Unix	Avner Lottem		Edit in right-to-left windows	Flemming Madsen		Various features and patches	MicroSoft		Gave me a copy of DevStudio to compile Vim with	Paul Moore		Python interface extensions	Katsuhito Nagano	Work on multi-byte versions	Sung-Hyun Nam		Work on multi-byte versions	Vince Negri		Win32 GUI and generic console enhancements	George V. Reilly	Win32 port, Win32 GUI start-off	Stephen Riehm		bug collector	Stefan Roemer		various patches and help to users	Olaf Seibert		DICE and BeBox version, regexp improvements	Mortaza Shiran		Farsi patches	Peter da Silva		termlib	Paul Slootman		OS/2 port	Henry Spencer		regular expressions	Tim Thompson		Stevie	G. R. (Fred) Walter	Stevie	Sven Verdoolaege	Perl interface	Robert Webb		Command-line completion, GUI versions, and				lots of patches	Ingo Wilken		Tcl interface	Juergen Weigert		Lattice version, AUX improvements, UNIX and				MS-DOS ports, autoconf	Stefan 'Sec' Zehl	Maintainer of vim.orgI wish to thank all the people that sent me bug reports and suggestions.  Thelist is too long to mention them all here.  Vim would not be the same without

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -