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

📄 version5.txt

📁 MSYS在windows下模拟了一个类unix的终端
💻 TXT
📖 第 1 页 / 共 5 页
字号:
When Vim was compiled with the |+rightleft| feature, you could use CTRL-B totoggle the 'revins' option.  Unfortunately, some people hit the 'B' keyaccidentally when trying to type CTRL-V or CTRL-N and then didn't know how toundo this.  Since toggling the 'revins' option can easily be done with themapping below, this use of the CTRL-B key is disabled.  You can still use theCTRL-_ key for this |i_CTRL-_|.>  :imap <C-B> <C-O>:set revins!<CR>==============================================================================				 NEW FEATURESSyntax highlighting					*new-highlighting*-------------------Vim now has a very flexible way to highlighting just about any type of file.See |syntax|.  Summary:>  :syntax onColors and attributes can be set for the syntax highlighting, and also forother highlighted items with the ':' flag in the 'highlight' option.  Allhighlighted items are assigned a highlight group which specifies theirhighlighting.  See |:highlight|.  The default colors have been improved.You can use the "Normal" group to set the default fore/background colors for acolor terminal.  For the GUI, you can use this group to specify the font, too.The "2html.vim" script can be used to convert any file that has syntaxhighlighting to HTML.  The colors will be exactly the same as how you see themin Vim.  With a HTML viewer you can also print the file with colors.Built-in script language				*new-script*------------------------A few extra commands and an expression evaluator enable you to write simplebut powerful scripts.  Commands include ":if" and ":while".  Expressions canmanipulate numbers and strings.  You can use the '=' register to insertdirectly the result of an expression.  See |expression|.Perl and Python support					*new-perl-python*-----------------------Vim can call Perl commands with ":perldo", ":perl", etc.  See |perl|.Patches made by Sven Verdoolaege and Matt Gerassimoff.Vim can call Python commands with ":python" and ":pyfile".  See |python|.Both of these are only available when enabled at compile time.Win32 GUI version					*added-win32-GUI*-----------------The GUI has been ported to MS Windows 95 and NT.  All the features of the X11GUI are available to Windows users now.  |gui-w32|This also fixes problems with running the Win32 console version under Windows95, where console support has always been bad.There is also a version that supports OLE automation interface.  |if_ole.txt|Vim can be integrated with Microsoft Developer Studio using the VisVim DLL.It is possible to produce a DLL version of gvim with Borland C++ (Aaron).VMS version						*added-VMS*-----------Vim can now also be used on VMS systems.  Port done by Henk Elbers.This has not been tested much, but it should work.Sorry, no documentation!BeOS version						*added-BeOS*------------Vim can be used on BeOS systems (including the BeBox).  (Olaf Seibert)See |os_beos.txt|.Macintosh GUI version					*added-Mac*---------------------Vim can now be used on the Macintosh.  (Dany St-Amant)It has not been tested much yet, be careful!See |os_mac.txt|.More Vi compatible					*more-compatible*------------------There is now a real Ex mode.  Started with the "Q" command, or by calling theexecutable "ex" or "gex".  |Ex-mode|Always allow multi-level undo, also in Vi compatible mode.  When the 'u' flagin 'cpoptions' is included, CTRL-R is used for repeating the undo or redo(like "." in Nvi).Read input from stdin					*read-stdin*---------------------When using the "-" command-line argument, Vim reads its text input from stdin.This can be used for putting Vim at the end of a pipe:>  grep "^a.*" *.c | vim -See |--|.Regular expression patterns				*added-regexp*---------------------------Added specifying a range for the number of matches of a atom: "\{a,b}". |/\{|Added the "shortest match" regexp "\{-}" (Webb).Added "\s", matches a white character.  Can replace "[ \t]".		|/\s|Added "\S", matches a non-white character.  Can replace "[^ \t]".	|/\S|Overloaded tags						*tag-overloaded*---------------When using a language like C++, there can be several tags for the sametagname.  Commands have been added to be able to jump to any of theseoverloaded tags:|:tselect|	List matching tags, and jump to one of them.|:stselect|	Idem, and split window.|g_CTRL-]|	Do ":tselect" with the word under the cursor.	After ":ta {tagname}" with multiple matches:|:tnext|	Go to next matching tag.|:tprevious|	Go to previous matching tag.|:trewind|	Go to first matching tag.|:tlast|	Go to last matching tag.The ":tag" command now also accepts wildcards.  When doing command-linecompletion on tags, case-insensitive matching is also available (at the end).New commands						*new-commands*------------|:amenu|	Define menus for all modes, inserting a CTRL-O for Insert		mode, ESC for Visual and CTRL-C for Cmdline mode.  "amenu" is		used for the default menus and the Syntax menu.|:augroup|	Set group to be used for following autocommands.  Allows the		grouping of autocommands to enable deletion of a specific		group.|:crewind|	Go to first error.|:clast|	Go to last error.|:doautoall|	Execute autocommands for all loaded buffers.|:echo|		Echo its argument, which is an expression.  Can be used to		display messages which include variables.|:execute|	Execute its argument, which is an expression.  Can be used to		built up an Ex command with anything.|:hide|		Works like ":close".|:if|		Conditional execution, for built-in script language.|:intro|	Show introductory message.  This is always executed when Vim		is started without file arguments.|:let|		Assign a value to an internal variable.|:omap|		Map only in operator-pending mode.  Makes it possible to map		text-object commands.|:redir|	Redirect output of messages to a file.|:update|	Write when buffer has changed.|:while|	While-loop for built-in script language.Visual mode:|v_O|		"O" in Visual block mode, moves the cursor to the other corner		horizontally.|v_D|		"D" in Visual block mode deletes till end of line.Insert mode:|i_CTRL-]|	Triggers abbreviation, without inserting any character.New options						*added-options*-----------'background'	Used for selecting highlight color defaults.  Also used in		"syntax.vim" for selecting the syntax colors.  Often set		automatically, depending on the terminal used.'complete'	Specifies how Insert mode completion works.'eventignore'	Makes it possible to ignore autocommands temporarily.'fileformat'	Current file format.  Replaces 'textmode'.'fileformats'	Possible file formats.  Replaces 'textauto'.		New is that this also supports Macintosh format: A single <CR>		separates lines.		The default for 'fileformats' for MS-DOS, Win32 and OS/2 is		"dos,unix", also when 'compatible' set.  Unix type files		didn't work anyway when 'fileformats' was empty.'guicursor'	Set the cursor shape and blinking in various modes.		Default is to adjust the cursor for Insert and Replace mode,		and when an operator is pending.  Blinking is default on.'fkmap'		Farsi key mapping.'hlsearch'	Highlight all matches with the last used search pattern.'hkmapp'	Phonetic Hebrew mapping (Ilya Dogolazky).'iconstring'	Define the name of the icon, when not empty. (version 5.2: the		string is used literally, a newline can be used to make two		lines).'lazyredraw'	Don't redraw the screen while executing macros, registers or		other not typed commands.'makeef'	Errorfile to be used for ":make".  "##" is replaced with a		unique number.  Avoids that two Vim sessions overwrite each		others errorfile.  The Unix default is "/tmp/vim##.err"; for		Amiga "t:vim##.Err, for others "vim##.err".'matchtime'	1/10s of a second to show a matching paren, when 'showmatch'		is set.  Like Nvi.'mousehide'	Hide mouse pointer in GUI when typing text.'nrformats'	Defines what bases Vim will consider for numbers when using		the CTRL-A and CTRL-X commands.  Default: "hex,octal".'shellxquote'	Add extra quotes around the whole shell command, including		redirection.'softtabstop'	Make typing behave like tabstop is set at this value, without		changing the value of 'tabstop'.  Makes it more easy to keep		'ts' at 8, while still getting four spaces for a <Tab>.'titlestring'	String for the window title, when not empty.  (version 5.2:		this string is used literally, a newline can be used to make		two lines).'verbose'	Level of verbosity.  Makes it possible to show which .vimrc,		.exrc, .viminfo files etc. are used for initializing.  Also		to show autocommands that are being executed.  Can also be set		by using the "-V" command-line argument.New command-line arguments				*added-cmdline-args*--------------------------|-U|		Set the gvimrc file to be used.  Like "-u" for the vimrc.|-V|		Set the 'verbose' option.  E.g. "vim -V10".|-N|		Start in non-compatible mode.|-C|		Start in compatible mode.|-Z|		Start in restricted mode, disallow shell commands.  Can also		be done by calling the executable "rvim".|-h|		Show usage information and exit.Various additions					*added-various*-----------------Added support for SNiFF+ connection (submitted by Toni Leherbauer).  Vim canbe used as an editor for SNiFF.  No documentation available...For producing a bug report, the bugreport.vim script has been included.Can be used with ":so $VIMRUNTIME/bugreport.vim", which creates the file"bugreport.txt" in the current directory. |bugs|Added range to ":normal" command.  Now you can repeat the same command foreach line in the range.  |:normal-range|Included support for the Farsi language (Shiran).  Only when enabled atcompile time.  See |farsi|.==============================================================================				 IMPROVEMENTS		*improvements*Performance:- When 'showcmd' was set, mappings would execute much more slowly because the  output would be flushed very often.  Helps a lot when executing the "life"  macros with 'showcmd' set.- Included patches for binary searching in tags file (David O'Neill).  Can be disabled by resetting the 'tagbsearch' option.- Don't update the ruler when repeating insert (slowed it down a lot).- For Unix, file name expansion is now done internally instead of starting a  shell for it.- Expand environment variables with expand_env(), instead of calling the  shell.  Makes ":so $VIMRUNTIME/syntax/syntax.vim" a LOT faster.- Reduced output for cursor positioning: Use CR-LF for moving to first few  columns in next few lines;  Don't output CR twice when using termios.- Optimized cursor positioning.  Use CR, BS and NL when it's shorter than  absolute cursor positioning.- Disable redrawing while repeating insert "1000ii<Esc>".- Made "d$" or "D" for long lines a lot faster (delete all characters at once,  instead of one by one).- Access option table by first letter, instead of searching from start.- Made setting special highlighting attributes a lot faster by using  highlight_attr[], instead of searching in the 'highlight' string.- Don't show the mode when redrawing is disabled.- When setting an option, only redraw the screen when required.- Improved performance of Ex commands by using a lookup table for the first  character.Options:'cinoptions'	Added 'g' flag, for C++ scope declarations.'cpoptions'	Added 'E' flag: Disallow yanking, deleting, etc. empty text		area.  Default is to allow empty yanks.  When 'E' is included,		"y$" in an empty line now is handled as an error (Vi		compatible).		Added 'j' flag: Only add two spaces for a join after a '.',		not after a '?' or '!'.		Added 'A' flag: don't give ATTENTION message.		Added 'L' flag: When not included, and 'list' is set,		'textwidth' formatting works like 'list' is not set.		Added 'W' flag:  Let ":w!" behave like Vi: don't overwrite		readonly files, or a file owned by someone else.'highlight'	Added '@' flag, for '@' characters after the last line on the		screen, and '$' at the end of the line when 'list' is set.		Added 'i' flag: Set highlighting for 'incsearch'.  Default		uses "IncSearch" highlight group, which is linked to "Visual".		Disallow 'h' flag in 'highlight' (wasn't used anymore since		3.0).'guifont'	Win32 GUI only: When set to "*" brings up a font requester.'guipty'	Default on, because so many people need it.'path'		Can contain wildcards, and "**" for searching a whole tree.'shortmess'	Added 'I' flag to avoid the intro message.'viminfo'	Added '%' flag: Store buffer list in viminfo file.- Increased defaults for 'maxmem' and 'maxmemtot' for Unix and Win32.  Most  machines have much more RAM now that prices have dropped.- Implemented ":set all&", set all options to their default value. |:set|Swap file:- Don't create a swap file for a readonly file.  Then create one on the first  change.  Also create a swapfile when the amount of memory used is getting  too high. |swap-file|- Make swap file "hidden", if possible.  On Unix this is done by prepending a  dot to the swap file name.  When long file names are used, the DJGPP and  Win32 versions also prepend a dot, in case a file on a mounted Unix file  system is edited.  |:swapname|  On MSDOS the hidden file attribute is NOT  set, because this causes problems with share.exe.- 'updatecount' always defaults to non-zero, also for Vi compatible mode.

⌨️ 快捷键说明

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