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

📄 elvis.9

📁 Unix操作系统minix 2.0源码
💻 9
📖 第 1 页 / 共 3 页
字号:
.CD "elvis \(en clone of the Berkeley vi editor".SX "elvis \fR[\fB\(enRerv\fR] [\fB\(ent \fItag\fR] \fR[\fIfile\fR] ...".FL "\(enR" "Set the read-only option".FL "\(ene" "Start up emulating \fIex\fR".FL "\(enr" "Tell the user to use \fIelvrec\fR instead.FL "\(ent" "Start editing at the given tag".FL "\(env" "Start up emulating \fIvi\fR".EX "elvis" "Call the editor".EX "elvis prog.c" "edit \fIprog.c\fR".PP\fIElvis\fR is a full-screen editor closely modeled on the famous Berkeley\fIvi\fR editor.It provides essentially the same interface to the user as \fIvi\fR, but the code is completely new, written from scratch.This document provides a brief introduction to \fIvi\fR.It is not intended as a tutorial for beginners.Most books on.Uxcover \fIvi\fR..PPLike \fIvi\fR, \fIelvis\fR can operate as a screen editor(\fIvi\fR mode) or as a line editor (\fIex\fR) mode.  It can be called either as \fIelvis\fR \fIvi\fR,or as \fIex\fR, depending on which is desired.They are all links to the same file..SS "Vi Commands".PPBelow is a list of the \fIvi\fR commands supported.The following symbols are used in the table:.HS.in +1.25i.ta +1.0i.ti -1.0icount	Integer parameter telling how many or how much.ti -1.0ikey	One character parameter to the command.ti -1.0iinp	Interactive input expected.ti -1.0imv	Indicates how much for commands like \fIdelete\fR and \fIchange\fR:.in +0.8i.ta +0.3i.ti -0.3i(	Previous sentence.ti -0.3i)	Next sentence.ti -0.3i{	Previous paragraph.ti -0.3i}	Next paragraph (delimited by blank line, \fI.PP, .LP, .IP\fR etc.).ti -0.3i[	Previous section (delimited by \fI.SH\fR or \fI.NH\fR).brA repeated command character means the scope is this line.in -0.8i.ta +1.0i.ti -1.0iMOVE	Indicates commands that may also be used where \fImv\fR is specified.ti -1.0iEDIT	These commands affect text and may be repeated by the \fI.\fR command.in -1.25i.HSIn addition to the above notation, the caret (^) is used as an abbreviationfor CTRL.For example, ^A means CTRL-A..HS.in +2i.ta +1i +1i +3.3i.nf.na.ti -2i\fBCount~~~~	Command	Description	Type\fR.ti -2i	^A	(Not defined).ti -2i	^B	Move toward the top of the file by 1 screenful.ti -2i	^C	(Not defined).ti -2icount	^D	Scroll down \fIcount\fR lines (default 1/2 screen).ti -2icount	^E	Scroll up \fIcount\fR lines.ti -2i	^F	Move toward the bottom of the file by 1 screenful.ti -2i	^G	Show file status, and the current line .ti -2icount	^H	Move left, like \fIh\fR	MOVE.ti -2i	^I	(Not defined).ti -2icount	^J	Move down	MOVE.ti -2i	^K	(Not defined).ti -2i	^l	Redraw the screen.ti -2icount	^M	Move to the front of the next line	MOVE.ti -2icount	^N	Move down	MOVE.ti -2i	^O	(Not defined).ti -2icount	^P	Move up	MOVE.ti -2i	^Q	(Not defined).ti -2i	^R	Redraw the screen.ti -2i	^S	(Not defined).ti -2i	^T	(Not defined).ti -2icount	^U	Scroll up \fIcount\fR lines (default 1/2 screen).ti -2i	^V	(Not defined).ti -2i	^W	(Not defined).ti -2i	^X	(Not defined).ti -2icount	^Y	Scroll down \fIcount\fR lines.ti -2i	^Z	(Not defined).ti -2i	ESC	(Not defined).ti -2i	^\e	(Not defined).ti -2i	^]	If the cursor is on a tag name, go to that tag.ti -2i	^^	Save this file and edit the previous file.ti -2i	^_	(Not defined).ti -2icount	SPACE	Move right,like \fIl\fR	MOVE.ti -2i	! mv	Run the selected lines thru an external filter program.ti -2i	" key	Select which cut buffer to use next.ti -2i	#	(Not defined).ti -2i	$	Move to the rear of the current line	MOVE.ti -2i	%	move to the matching (){}[] character	MOVE.ti -2i	&	(Not defined).ti -2i	' key	Move to a marked line	MOVE.ti -2icount	(	Move backward \fIcount\fR sentences	MOVE.ti -2icount	)	Move forward \fIcount\fR sentences	MOVE.ti -2i	*	(Not defined).ti -2icount	+	Move to the front of the next line	MOVE.ti -2icount	,	Repeat the previous [\fIfFtT\fR] but the other way	MOVE.ti -2icount	\(en	Move to the front of the preceding line	MOVE.ti -2i	.	Repeat the previous \*(OQedit\*(CQ command.ti -2i	 /	Text search forward for a given regular expr	MOVE.ti -2i	0	If not part of count, move to 1st char of this line	MOVE.ti -2i	1	Part of count.ti -2i	2	Part of count.ti -2i	3	Part of count.ti -2i	4	Part of count.ti -2i	5	Part of count.ti -2i	6	Part of count.ti -2i	7	Part of count.ti -2i	8	Part of count.ti -2i	9	Part of count.ti -2i	:	Text. Run single \fIex\fR cmd.ti -2icount	;	Repeat the previous [fFtT] cmd	MOVE.ti -2icount	< mv	Shift text left	EDIT.ti -2i	=	(Not defined).ti -2icount	> mv	Shift text right	EDIT.ti -2i	? text	Search backward for a given regular expression	MOVE.ti -2i	@	(Not defined).ti -2icount	A inp	Append at end of the line	EDIT.ti -2icount	B	Move back Word	MOVE.ti -2i	C inp	Change text from cursor through end of line	EDIT.ti -2i	D	Delete text from  cursor through end of line	EDIT.ti -2icount	E	Move end of Word	MOVE.ti -2icount	F key	Move leftward to a given character	MOVE.ti -2icount	G	Move to line #\fIcount\fR (default is the bottom line)	MOVE.ti -2icount	H	Move to home row (the line at the top of the screen).ti -2icount	I inp	Insert at the front of the line (after indents)	EDIT.ti -2icount	J	Join lines, to form one big line	EDIT.ti -2i	K	Look up keyword.ti -2icount	L	Move to last row (the line at the bottom of the screen).ti -2i	M	Move to middle row (the line in the middle).ti -2i	N	Repeat previous search, but the opposite way	MOVE.ti -2icount	O inp	Open up a new line above the current line	EDIT.ti -2i	P	Paste text before the cursor.ti -2i	Q	Quit to EX mode.ti -2i	R inp	Overtype	EDIT.ti -2icount	S inp	Change lines, like \fIcount\fRcc.ti -2icount	T key	Move leftward \fIalmost\fR to a given character	MOVE.ti -2i	U	Undo all recent changes to the current line.ti -2i	V	(Not defined).ti -2icount	W	Move forward \fIcount\fR Words	MOVE.ti -2icount	X	Delete the character(s) to the left of the cursor	EDIT.ti -2icount	Y	Yank text line(s) (copy them into a cut buffer).ti -2i	Z Z	Save the file & exit.ti -2i	[ [	Move back 1 section	MOVE.ti -2i	\e	(Not defined).ti -2i	] ]	Move forward 1 section					MOVE.ti -2i	^	Move to the front of the current line (after indent)	MOVE.ti -2i	\(ul	(Not defined).ti -2i	` key	Move to a marked character	MOVE.ti -2icount	a inp	Insert text after the cursor	EDIT.ti -2icount	b	Move back \fIcount\fR words	MOVE.ti -2i	c mv	Change text	EDIT.ti -2i	d mv	Delete text	EDIT.ti -2icount	e	Move forward to the end of the current word	MOVE.ti -2icount	f key	Move rightward to a given character	MOVE.ti -2i	g	(Not defined).ti -2icount	h	Move left	MOVE.ti -2icount	i inp	Insert text at the cursor	EDIT.ti -2icount	j	Move down	MOVE.ti -2icount	k	Move up	MOVE.ti -2icount	l	Move right	MOVE.ti -2i	m key	Mark a line or character.ti -2i	n	Repeat the previous search	MOVE.ti -2icount	o inp	Open a new line below the current line	EDIT.ti -2i	p	Paste text after the cursor.ti -2i	q	(Not defined).ti -2icount	r key	Replace \fIcount\fR chars by a given character	EDIT.ti -2icount	s inp	Replace \fIcount\fR chars with text from the user	EDIT.ti -2icount	t key	Move rightward \fIalmost\fR to a given character	MOVE.ti -2i	u	Undo the previous edit command.ti -2i	v	(Not defined).ti -2icount	w	Move forward \fIcount\fR words	MOVE.ti -2icount	x	Delete the character that the cursor's on	EDIT.ti -2i	y mv	Yank text (copy it into a cut buffer).ti -2i	z key	Scroll current line to the screen's +=top -=bottom .=middle.ti -2icount	{	Move back \fIcount\fR paragraphs	MOVE.ti -2icount	|	Move to column \fIcount\fR (the leftmost column is 1).ti -2icount	}	Move forward \fIcount\fR paragraphs	MOVE.ti -2i.tr ~~count	\(ap	Switch a character between upper & lower case	EDIT.tr ~.ti -2i	DEL	(Not defined).in -2i.fi.ad.SS "Ex Commands".PPBelow is a list of the \fIex\fR commands supported.  All can be abbreviated..UU "General".LP.nf.ta 1.2i 2.4i[line]	append	args	[files]	cd	[directory]	chdir	[directory][line][,line]	change[line][,line]	copy	line[line][,line]	debug[!][line][,line]	Delete	[\*(CQx]	edit[!]	[file]	ex[!]	[file]	file[line][,line]	global	/regexp/ command[line]	Insert[line][,line]	join[line][,line]	list	map[!]	key mapped_to[line]	mark	x	mkexrc[line][,line]	Move	line	next[!]	[files]	Next[!]	previous[!][line][,line]	print[line]	put	[\*(CQx]	quit[!][line]	read	file	rewind[!]	set	[options][line][,line]	substitute	/regexp/replacement/[p][g]	tag[!]	tagname[line][,line]	to	line	Undo	unmap[!]	key	validate[!]	version[line][,line]	vglobal	/regexp/ command	visual	wq[line][,line]	write[!]	[[>>]file]	xit[!][line][,line]	yank	[\*(CQx][line][,line]	!	command[line][,line]	<[line][,line]	=[line][,line]	>.SP 0.25.UU "Text Entry".SP 0.25.LP.ta 1.2i 2.4i.nf[line]	append[line][,line]	change [\*(CQx][line]	Insert.fiThe (a)ppend command inserts text after the specified line.The (i)nsert command inserts text before the specified line.The (c)hange command copies the range of lines into a cut buffer,deletes them, and inserts new text where the old text used to be.For all of these commands, you indicate the end of the text you'reinserting by hitting ^D or by entering a line which contains onlya period..SP 0.25.UU "Cut & Paste".SP 0.25.LP.ta 1.2i 2.4i.nf[line][,line]	Delete [\*(CQx][line][,line]	yank [\*(CQx][line]	put[!] [\*(CQx][line][,line]	copy line[line][,line]	to line[line][,line]	Move line.fiThe (d)elete command copies the specified range of lines into acut buffer, and then deletes them.

⌨️ 快捷键说明

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