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

📄 insert.txt

📁 MSYS在windows下模拟了一个类unix的终端
💻 TXT
📖 第 1 页 / 共 3 页
字号:
and CTRL-N look just for strings of at least two characters, CTRL-X CTRL-P andCTRL-X CTRL-N can be used to expand words of just one character.	e.g., to get:		M&eacute;xico	you can type:		M^N^P^X^P^X^PCTRL-N starts the expansion and then CTRL-P takes back the single character"M", the next two CTRL-X CTRL-P's get the words "&eacute" and ";xico".If the previous expansion was split, because it got longer than 'textwidth',then just the text in the current line will be used.If the match found is at the end of a line, then the first word in the nextline will be inserted and the message "word from next line" displayed, ifthis word is accepted the next CTRL-X CTRL-P or CTRL-X CTRL-N will searchfor those lines starting with this word.Completing keywords in 'dictionary'			*compl-dictionary*							*i_CTRL-X_CTRL-K*CTRL-X CTRL-K		Search the files given with the 'dictionary' option			for words that start with the keyword in front of the			cursor.  This is like CTRL-N, but only the dictionary			files are searched, not the current file.  The found			keyword is inserted in front of the cursor.  This			could potentially be pretty slow, since all matches			are found before the first match is used.  By default,			the 'dictionary' option is empty.			For suggestions where to find a list of words, see the			'dictionary' option.	CTRL-K	or	CTRL-N		Search forward for next matching keyword.  This			keyword replaces the previous matching keyword.	CTRL-P		Search backwards for next matching keyword.  This			keyword replaces the previous matching keyword.Completing keywords in the current and included files	*compl-keyword*The 'include' option is used to specify a line that contains an include filename.  The 'path' option is used to search for include files.							*i_CTRL-X_CTRL-I*CTRL-X CTRL-I		Search for the first keyword in the current and			included files that starts with the same characters			as those before the cursor.  The matched keyword is			inserted in front of the cursor.	CTRL-N		Search forwards for next matching keyword.  This			keyword replaces the previous matching keyword.			Note: CTRL-I is the same as <Tab>, which is likely to			be typed after a successful completion, therefore			CTRL-I is not used for searching for the next match.	CTRL-P		Search backward for previous matching keyword.  This			keyword replaces the previous matching keyword.	CTRL-X CTRL-I	Further use of CTRL-X CTRL-I will copy the words			following the previous expansion in other contexts			unless a double CTRL-X is used.Completing tags						*compl-tag*							*i_CTRL-X_CTRL-]*CTRL-X CTRL-]		Search for the first tag that starts with the same			characters as before the cursor.  The matching tag is			inserted in front of the cursor.  Alphabetic			characters and characters in 'iskeyword' are used			to decide which characters are included in the tag			name (same as for a keyword).  See also |CTRL-]|.			The 'showfulltag' option can be used to add context			from around the tag definition.	CTRL-]	or	CTRL-N		Search forwards for next matching tag.  This tag			replaces the previous matching tag.	CTRL-P		Search backward for previous matching tag.  This tag			replaces the previous matching tag.Completing file names					*compl-filename*							*i_CTRL-X_CTRL-F*CTRL-X CTRL-F		Search for the first file name that starts with the			same characters as before the cursor.  The matching			file name is inserted in front of the cursor.			Alphabetic characters and characters in 'isfname'			are used to decide which characters are included in			the file name.  Note: the 'path' option is not used			here (yet).	CTRL-F	or	CTRL-N		Search forwards for next matching file name.  This			file name replaces the previous matching file name.	CTRL-P		Search backward for previous matching file name.			This file name replaces the previous matching file			name.Completing definitions or macros			*compl-define*The 'define' option is used to specify a line that contains a definition.The 'include' option is used to specify a line that contains an include filename.  The 'path' option is used to search for include files.							*i_CTRL-X_CTRL-D*CTRL-X CTRL-D		Search in the current and included files for the			first definition (or macro) name that starts with			the same characters as before the cursor.  The found			definition name is inserted in front of the cursor.	CTRL-D	or	CTRL-N		Search forwards for next matching macro name.  This			macro name replaces the previous matching macro			name.	CTRL-P		Search backward for previous matching macro name.			This macro name replaces the previous matching macro			name.	CTRL-X CTRL-D	Further use of CTRL-X CTRL-D will copy the words			following the previous expansion in other contexts			unless a double CTRL-X is used.Completing keywords from different sources		*compl-generic*							*i_CTRL-N*CTRL-N			Search backwards in the places given with the			'complete' option for words that start with the			keyword in front of the cursor.  The found keyword is			inserted in front of the cursor.							*i_CTRL-P*CTRL-P			Search forwards in the places given with the			'complete' option for words that start with the			keyword in front of the cursor.  The found keyword is			inserted in front of the cursor.	CTRL-N		Search forward for next matching keyword.  This			keyword replaces the previous matching keyword.	CTRL-P		Search backwards for next matching keyword.  This			keyword replaces the previous matching keyword.	CTRL-X CTRL-N or	CTRL-X CTRL-P	Further use of CTRL-X CTRL-N or CTRL-X CTRL-P will			copy the words following the previous expansion in			other contexts unless a double CTRL-X is used.==============================================================================8. Insert mode commands					*inserting*The following commands can be used to insert new text into the buffer.  Theycan all be undone and repeated with the "." command.							*a*a			Append text after the cursor [count] times.							*A*A			Append text at the end of the line [count] times.<insert>	or				*i* *insert* *<Insert>*i			Insert text before the cursor [count] times.							*I*I			Insert text before the first non-blank in the line			[count] times.							*gI*gI			Insert text in column 1 [count] times.  {not in Vi}							*o*o			Begin a new line below the cursor and insert text,			repeat [count] times.  {Vi: blank [count] screen			lines}							*O*O			Begin a new line above the cursor and insert text,			repeat [count] times.  {Vi: blank [count] screen			lines}These commands are used to start inserting text.  You can end insert mode with<Esc>.  See |mode-ins-repl| for the other special characters in Insert mode.The effect of [count] takes place after insert mode is exited.When 'autoindent' is on, the indent for a new line is obtained from theprevious line.  When 'smartindent' or 'cindent' is on, the indent for a lineis automatically adjusted for C programs.'textwidth' can be set to the maximum width for a line.  When a line becomestoo long when appending characters a line break is automatically inserted.==============================================================================9. Ex insert commands					*inserting-ex*							*:a* *:append*:{range}a[ppend]	Insert several lines of text below the specified			line.  If the {range} is missing, the text will be			inserted after the current line.							*:i* *:in* *:insert*:{range}i[nsert]	Insert several lines of text above the specified			line.  If the {range} is missing, the text will be			inserted before the current line.These two commands will keep on asking for lines, until you type a linecontaining only a ".".  Watch out for lines starting with a backslash, see|line-continuation|.							*:start* *:startinsert*:star[tinsert][!]	Start Insert mode just after executing this command.			Works like typing "i" in Normal mode.  When the ! is			included it works like "A", append to the line.			Otherwise insertion starts at the cursor position.			Note that when using this command in a function or			script, the insertion only starts after the function			or script is finished.			{not in Vi}==============================================================================10. Inserting a file					*inserting-file*							*:r* *:re* *:read*:r[ead] [name]		Insert the file [name] (default: current file) below			the cursor.:{range}r[ead] [name]	Insert the file [name] (default: current file) below			the specified line.							*:r!* *:read!*:r[ead] !{cmd}		Execute {cmd} and insert its standard output below			the cursor.  A temporary file is used to store the			output of the command which is then read into the			buffer.  'shellredir' is used to save the output of			the command, which can be set to include stderr or			not.  {cmd} is executed like with ":!{cmd}", any '!'			is replaced with the previous command |:!|.These commands insert the contents of a file, or the output of a command,into the buffer.  They can be undone.  They cannot be repeated with the "."command.  They work on a line basis, insertion starts below the line in whichthe cursor is, or below the specified line.  To insert text above the firstline use the command ":0r {name}".After the ":read" command, the cursor is left on the first non-blank in thefirst new line.  Unless in Ex mode, then the cursor is left on the last newline (sorry, this is Vi compatible).If a file name is given with ":r", it becomes the alternate file.  This can beused, for example, when you want to edit that file instead: ":e! #".  This canbe switched off by removing the 'a' flag from the 'cpoptions' option.							*file-read*The 'fileformat' option sets the <EOL> style for a file:'fileformat'    characters	   name				~  "dos"		<CR><NL> or <NL>   DOS format  "unix"	<NL>		   Unix format  "mac"		<CR>		   Mac formatPreviously 'textmode' was used.  It is obsolete now.If 'fileformat' is "dos", a <CR> in front of an <NL> is ignored and a CTRL-Zat the end of the file is ignored.If 'fileformat' is "mac", a <NL> in the file is internally represented by a<CR>.  This is to avoid confusion with a <NL> which is used to represent a<NUL>.  See |CR-used-for-NL|.If the 'fileformats' option is not empty Vim tries to recognize the type of<EOL> (see |file-formats|).  However, the 'fileformat' option will not bechanged, the detected format is only used while reading the file.On non-MS-DOS, Win32, and OS/2 systems the message "[dos format]" is shown ifa file is read in DOS format, to remind you that something unusual is done.On Macintosh, MS-DOS, Win32, and OS/2 the message "[unix format]" is shown ifa file is read in Unix format.On non-Macintosh systems, the message "[Mac format]" is shown if a file isread in Mac format.An example on how to use ":r !":>  :r !uuencode binfile binfileThis command reads "binfile", uuencodes it and reads it into the currentbuffer.  Useful when you are editing e-mail and want to include a binaryfile. vim:tw=78:ts=8:sw=8:

⌨️ 快捷键说明

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