U E D R , A S I H C RSS

Vi Improved/설명서

~cpp 
1.VI(Visual interface Editor) 

 	 
▶파		  (binary)
	텍트 파	  source data  (ASCII)
▶Editor(unix system)	Line editor	 (ex ed)
	Screen editor	 (vi)
▶Vi 	vi ex The University of California, Berkeley California computer Science Division, Department of Electrical Engineering and Computer Science 
▶Vi 	(편)	     , ,     ; <ESC>
	 	  (a A I ...)  : <ESC>
	형	(: / ? !)     CR( )     <DEL> 트 ;  
▶Vi 	[from][.][to][][ ] or [n][][ ]
	  	행/ 호 (z G | )  (^D ^U)  ( )
	  	(.) 택(d s c ..)   
▶.exrc 파	 	vi     vi     vi환  set      .exrc파   set default  
	 	set wm=3 set sm ##  .  bbm bbmaster@flower.chungnam.ac.kr  ab bbm bbmaster@flower.chungnam.ac.kr ##   map V :w^M:!spell -x %^M:e!^M^M
  	 	vi       ) d , dw  , db   .
	 Ctrl키    ) ^u Ctrl키   u키   
	       . )     
	   
	트	파     합


▶File  
 	  	  (↓: CR)	
	 	
		ZZ (=:wq)	파         
		:w ↓	  
		:w! ↓	허    
		:w <file>↓	파 name 
		:w! <file>↓	파 name  
		:q↓	vi Unix 
		:q!↓	파   vi  	
		:e <file>↓	
		:e!↓	  
		:e+ <file>↓	 
		:e +n↓	n 행  
		:e #↓	  file
		:e! #↓	   한 file
	 	
		:r <file> ↓	<file>   read 
		:r !<>↓	<>  read 
		:nr <file>↓	n행  <file> read
	 	
		:sh↓	  vi (^d, exit )
		:!cmd↓	 cmd 행하 
		:n args↓	   
		^G	
		:ta tag↓	 tag 킴
		:f<ESC>	파?
		
		$vi A B C D	4(A B C D)    
		:n	 한 화    	
		$vi -r 화	  ( ),        	  	 	
	/행	
		n	 n 
		+ (n+)	  행( n행)  
		- (n-)	  행( n행)  
		G	화    
		1G	파    
		nG	파 n   
		H	화  행
		L	화  행
		M	화  행
		CR	+  j	   k	  
	1	
		^	   
		O	행 
		$	행 
		h  향
		l  향
		^H	←(  키) 
		nl	  n 
		space	→( ) 
		fc (nfc)	   c 
		Fc (nFc)	   c 
		tc (ntc)	   c  
		Tc (nTc)	   c  
		; (n;)	      c 
		, (n,)	      c 
		
		w (nw)	     () 
		W (nW)	  ()  
		e (ne)	     () 
		E (nE)	  ()  
		b (nb)	()     () 
		B nB	  ()  
	//패	
		{ or n{	     
		} or n}	   
		(	    
		)	    
		]] or n]]	   
		[[ or n[[	    	
		^F n^F	화  
		^B n^B	화  
		^D n^D	  
		^U n^U	  
		^Y n^Y	한 행  
		^E n^E	한 행  
		z	 top ,  
		z.	  ,  
		z-	 bottom ,  
		^L	   (refresh)
		^R	^L →key    refesh

 	  	  
 (insert)	
	a	    
	i	    
	A	    
	I	    
	o	  
	O	  

 	
	^H	  ( )
	^W	  
	erase	   ^H 
	kill	 .   
	\	    ESC
	ESC	    
	DEL	  
	^D	한  back tab. autointent   
	^^D	(^)  control-d(^D) . 
		행  back tab. autointent    
	O^D	행  back tab autointent   
	^V	   ESC
행 합	
	J	 합하 한 행  
(delete)	
		
		x nx	 한 한  
		X nX	  
		D	       
		d0	행       
		
		dd ndd	 행( n행) 
		dG	    
		d1G	     
		dnG	, n   
		d-	     
		d+	   
		nd-	   n   
		nd+	   n   
		ddp	    환한
	//	
		d) dn)	      
		d( dn(	       
		d} dn}	   paragraph   
		d{ dn{	 paragraph      
		d] dn]	   section   
		d[ dn[	 section     
		
		dfc dnfc	   (n) 'c'  
		dFc dnFc	   (n) 'c'  
		dtc dntc	    (n) 'c'  
		dTc dnTc	     (n) 'c'  
		d/pat	   (pat)
		d?pat	   (pat)
	text	
		p	 (change, delete, yank)   
		P	 (change, delete, yank)   
		
		$vi -r <화>	<화>   *  ,   *

 	  	  
 		
		cw cnw	 (n )  
		cW cnW	 (n )  
		cb cnb	 (n)     
		cB cnB	 (n)     
	//	
		c) cn)	     
		c( cn(	      
		c} cn}	   paragraph  
		c{ cn{	 paragraph     
		c]] cn]]	   section  
		c[[ cn[[	 section     
		
		cfc cnfc	   (n) 'c' 
		cFc cnFc	   (n) 'c' 
		ctc cntc	    (n) 'c' 
		cTc cnTc	    (n) 'c' 
 	
	/		  
	10,20/	10 20  
	1,$/	   
	//+n	    n  
	?		   
	??+n	    n  
	n		 행한    (/)
	N		  행한    (?)
(^)	
	:/^M(^V+^M)	 (^)    ^V      
 환(replacement)	:
	[]s/old/new/[cgi]  ( . , * [ ^ $ \ / &)  (\. \* \[ \^ \$ \ \/ \&)
	[]	
		[]  호
		[$] 파 
		[. ]   
		[%] 
	[cgi]	
		[c]      
		[g] 한      
		[i]     
	:s/old/new/g	
		  행
	:10,$s/old/new/g	
		10  행
	:g/A/s//B/g	
		 A (g/A)
		A B 환한 (s//B), s // text    
		   (/g) 
	:g/ABC/s/B/Z/g	
		 ABC (s/B/Z)
		ABC B  Z 환한 (/g)
		   (/g) 

 	  	  
Mark(크)	 	mc	   'c' ('c'  1 )
	 	'c	'c'  
		`	'c'    
		"	,     
		``	,     
	 / 	:10,20w 화	10 20 
		:10,20w >> 화	10 20 
	 	:10,20r 화	10 20   
	(yank)	"a5dd	   5, a   	yw	한   
		3yw	3  
		y$	   
		y)	   
		yy nyy	 (n)   (Y)
		"a5Y	   5 a   
	(put)	p	      
		P	      
		"ap	a       
		"np	n   , yank      ( )	 	:map<키><>	<키>  10 
			<>  100 
			*) vi bug     	:unmap <키>	
	 	:map #n <>	 <키> #n - n 0 9  - ,  확한   . 
		:map #2 :w^M	  키 F2  :w^M 행한
	 	:map V	:w^M:!ispell -x $^M:e!^M^M ( )
		:map #2	:w^M: !cc %^M:e!^M^M (vi 키 F2 )
 	.	   행
	J	 합
	~	  환
	^1	화  
	  		  	commond	  
:	ex(편)	^f	  한 화 	:r <file>	<file>   read
)	 sentence	G	. . . (dft )	:r !<>	<> read
(	 sentence	^g	 	:nr <file>	n<file> read
}	paragraph	h	 	:! 	  행
{	paragraph	H	화   	:sh	 
]]	 section	^h	 backspace	:x	 
[[	 section	i	   	:wq	 
0()	 line   	I	  	:11,22w <file>	 11 12  
$	 line  	^i	tab ()	:w >> <file>	<file> 
^	 line   	j	 	:w!	 
+	   	k	 	:q	(  )
-	   	l	 	:q!	  
spacebar		L	화   	:e <file>	vi  <file>편 
return	 	^l	refresh	:e! 	  
/	 향 탐	m	  크	:n	
?	 향 탐	M	화  	:n <files>	편 한 화  <file>
%	   (,{,[,-),},} 	^m	 (CR)		
,	f,F,t,T  행	n	   행	:e#	  <file>
;	f,F,t,T  행	N	  행	:args	편 
.	  	^n	 ( )	:rew	화  
`	mark한 	o	  	:map m n	
'	    	O	 	:map! m n	 ( )
``	 크한  or 탐 	p	  	:unmap m	
''	``  	P	  	:unmap! m	()
~	 환	^p	 ( )	:ab <1> <2>	 
"	 	Q	 ex 행	:unab <1>	
!!	   	r	  	:set <option>	set 
!	send next to commend, replace output(eg !)	R	   ( ESC  )	:set number	
>>	 shiftwith paragraph 	^r	refresh( )	!}	   unix        
<<	 shiftwith paragraph 	s			
>%	 (,{,[   	S	   		
<%	 (,{,[   	t	      		
a	   	T	 "		
A	  	^t	 shiftwith 		
b	한   	u	  		
B	한     	U	   		
^b	한 화  	^u	  		
c	 	^V	  해함 		
C	 	w	한   		
^c	 ( x)	W	한   		
d	.  text	^w	   () 		
D	  	x	  		
^d	화   	X	  		
e	   	y	. . .  yank		
E	한     	Y	 yank		
^e	한  	^y	한 		
f	. . . 	z	 top(. mid -bot)		
F	. . .  	ZZ	 (=wq)		
set 	  
Option	Default	
:set <option> <param>	
:set <nooption> <param>	set  <option> no 
:set all	  vi       
autoindent(ai)	noai	   
autoprint(ap)	ap	    
autowrite(aw)	noaw	   (:n, :!) 
beautify(bf)	nobf	       tab, newline, formfeed  
directory(dir=)	/tmp	   
edcmpatible	noedcmpatible	ed편 
errorbells(eb)	errorbells	  
exrc(ex)	noexrc	home   .exrc화 
hardtaps=(ht=)	8	하  
ignore case(ic)	noic	   
lisp	nolisp	indentation lisp형 
list	nolist	  ^I, 행  $
magic	magic	[*.     
mesg	masg	  
number(nu)	nonumber	    함
open	noopen	Vi ex  함
optimize(opt)	optimize	
paragraphs=(para=)	IPLPPQPPLIbp	   
prompt	prompt	ex prompt 
readonly(ro)	noro	!   
reraw	noredraw	
remap	remap	map   
report=	5	   
scroll	1/2	할 행  
sections=	SHNHH	section  
shell=(sh=)		 
shiftwith=(sw=)		       
showmatch(sm)		{,(    },)  1    
showmode	noshowmode	   "input mode"
slowopen(slow)		tab    
tabstop(ts=)		 tab   
taglength(tl=)		tab 화    
tags=	tag	/usr/lib/tags 태  pass
term=		 
timeout(to)	timeout	  
tty type=	Set	1   "time out" 행
warn	warn	  
window=(w=)		편         
wrapmargin=(wm=)	0	화   
wrapscan(ws)	ws	  
writeany(wa)	nowa	한 화    
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:28:22
Processing time 0.0433 sec