ºìÁªLinuxÃÅ»§
Linux°ïÖú

viʹÓÃÊÖ²á(zt)

·¢²¼Ê±¼ä:2005-05-31 00:18:40À´Ô´:ºìÁª×÷Õß:Ììʹ
½øÈëviµÄÃüÁî
vi filename :´ò¿ª»òн¨Îļþ£¬²¢½«¹â±êÖÃÓÚµÚÒ»ÐÐÊ×
vi +n filename £º´ò¿ªÎļþ£¬²¢½«¹â±êÖÃÓÚµÚnÐÐÊ×
vi + filename £º´ò¿ªÎļþ£¬²¢½«¹â±êÖÃÓÚ×îºóÒ»ÐÐÊ×
vi +/pattern filename£º´ò¿ªÎļþ£¬²¢½«¹â±êÖÃÓÚµÚÒ»¸öÓëpatternÆ¥ÅäµÄ´®´¦
vi -r filename £ºÔÚÉÏ´ÎÕýÓÃvi±à¼­Ê±·¢Éúϵͳ±ÀÀ££¬»Ö¸´filename
vi filename....filename £º´ò¿ª¶à¸öÎļþ£¬ÒÀ´Î±à¼­

Òƶ¯¹â±êÀàÃüÁî
h £º¹â±ê×óÒÆÒ»¸ö×Ö·û
l £º¹â±êÓÒÒÆÒ»¸ö×Ö·û
space£º¹â±êÓÒÒÆÒ»¸ö×Ö·û
Backspace£º¹â±ê×óÒÆÒ»¸ö×Ö·û
k»òCtrl+p£º¹â±êÉÏÒÆÒ»ÐÐ
j»òCtrl+n £º¹â±êÏÂÒÆÒ»ÐÐ
Enter £º¹â±êÏÂÒÆÒ»ÐÐ
w»òW £º¹â±êÓÒÒÆÒ»¸ö×ÖÖÁ×ÖÊ×
b»òB £º¹â±ê×óÒÆÒ»¸ö×ÖÖÁ×ÖÊ×
e»òE £º¹â±êÓÒÒÆÒ»¸ö×ÖjÖÁ×Öβ
) £º¹â±êÒÆÖÁ¾äβ
( £º¹â±êÒÆÖÁ¾äÊ×
}£º¹â±êÒÆÖÁ¶ÎÂ俪ͷ
{£º¹â±êÒÆÖÁ¶ÎÂä½áβ
nG£º¹â±êÒÆÖÁµÚnÐÐÊ×
n+£º¹â±êÏÂÒÆnÐÐ
n-£º¹â±êÉÏÒÆnÐÐ
n$£º¹â±êÒÆÖÁµÚnÐÐβ
H £º¹â±êÒÆÖÁÆÁÄ»¶¥ÐÐ
M £º¹â±êÒÆÖÁÆÁÄ»ÖмäÐÐ
L £º¹â±êÒÆÖÁÆÁÄ»×îºóÐÐ
0£º£¨×¢ÒâÊÇÊý×ÖÁ㣩¹â±êÒÆÖÁµ±Ç°ÐÐÊ×
$£º¹â±êÒÆÖÁµ±Ç°ÐÐβ

ÆÁÄ»·­¹öÀàÃüÁî
Ctrl+u£ºÏòÎļþÊ×·­°ëÆÁ
Ctrl+d£ºÏòÎļþβ·­°ëÆÁ
Ctrl+f£ºÏòÎļþβ·­Ò»ÆÁ
Ctrl£«b£»ÏòÎļþÊ×·­Ò»ÆÁ
nz£º½«µÚnÐйöÖÁÆÁÄ»¶¥²¿£¬²»Ö¸¶¨nʱ½«µ±Ç°ÐйöÖÁÆÁÄ»¶¥²¿¡£

²åÈëÎı¾ÀàÃüÁî
i £ºÔÚ¹â±êÇ°
I £ºÔÚµ±Ç°ÐÐÊ×
a£º¹â±êºó
A£ºÔÚµ±Ç°ÐÐβ
o£ºÔÚµ±Ç°ÐÐÖ®ÏÂпªÒ»ÐÐ
O£ºÔÚµ±Ç°ÐÐÖ®ÉÏпªÒ»ÐÐ
r£ºÌæ»»µ±Ç°×Ö·û
R£ºÌæ»»µ±Ç°×Ö·û¼°ÆäºóµÄ×Ö·û£¬Ö±ÖÁ°´ESC¼ü
s£º´Óµ±Ç°¹â±êλÖô¦¿ªÊ¼£¬ÒÔÊäÈëµÄÎı¾Ìæ´úÖ¸¶¨ÊýÄ¿µÄ×Ö·û
S£ºÉ¾³ýÖ¸¶¨ÊýÄ¿µÄÐУ¬²¢ÒÔËùÊäÈëÎı¾´úÌæÖ®
ncw»ònCW£ºÐÞ¸ÄÖ¸¶¨ÊýÄ¿µÄ×Ö
nCC£ºÐÞ¸ÄÖ¸¶¨ÊýÄ¿µÄÐÐ

ɾ³ýÃüÁî
ndw»òndW£ºÉ¾³ý¹â±ê´¦¿ªÊ¼¼°ÆäºóµÄn-1¸ö×Ö
do£ºÉ¾ÖÁÐÐÊ×
d$£ºÉ¾ÖÁÐÐβ
ndd£ºÉ¾³ýµ±Ç°Ðм°Æäºón-1ÐÐ
x»òX£ºÉ¾³ýÒ»¸ö×Ö·û£¬xɾ³ý¹â±êºóµÄ£¬¶øXɾ³ý¹â±êÇ°µÄ
Ctrl+u£ºÉ¾³ýÊäÈ뷽ʽÏÂËùÊäÈëµÄÎı¾

ËÑË÷¼°Ìæ»»ÃüÁî :
/pattern£º´Ó¹â±ê¿ªÊ¼´¦ÏòÎļþβËÑË÷pattern
?pattern£º´Ó¹â±ê¿ªÊ¼´¦ÏòÎļþÊ×ËÑË÷pattern
n£ºÔÚͬһ·½ÏòÖظ´ÉÏÒ»´ÎËÑË÷ÃüÁî
N£ºÔÚ·´·½ÏòÉÏÖظ´ÉÏÒ»´ÎËÑË÷ÃüÁî
£ºs/p1/p2/g£º½«µ±Ç°ÐÐÖÐËùÓÐp1¾ùÓÃp2Ìæ´ú
£ºn1,n2s/p1/p2/g£º½«µÚn1ÖÁn2ÐÐÖÐËùÓÐp1¾ùÓÃp2Ìæ´ú
£ºg/p1/s//p2/g£º½«ÎļþÖÐËùÓÐp1¾ùÓÃp2Ìæ»»

Ñ¡ÏîÉèÖÃ
all£ºÁгöËùÓÐÑ¡ÏîÉèÖÃÇé¿ö
term£ºÉèÖÃÖÕ¶ËÀàÐÍ
ignorance£ºÔÚËÑË÷ÖкöÂÔ´óСд
list£ºÏÔʾÖƱíλ(Ctrl+I)ºÍÐÐβ±êÖ¾£¨$)
number£ºÏÔʾÐкÅ
report£ºÏÔʾÓÉÃæÏòÐеÄÃüÁîÐ޸ĹýµÄÊýÄ¿
terse£ºÏÔʾ¼ò¶ÌµÄ¾¯¸æÐÅÏ¢
warn£ºÔÚתµ½±ðµÄÎļþʱÈôû±£´æµ±Ç°ÎļþÔòÏÔʾNO writeÐÅÏ¢
nomagic£ºÔÊÐíÔÚËÑË÷ģʽÖУ¬Ê¹ÓÃÇ°Ãæ²»´ø¡°\¡±µÄÌØÊâ×Ö·û
nowrapscan£º½ûÖ¹viÔÚËÑË÷µ½´ïÎļþÁ½¶Ëʱ£¬ÓÖ´ÓÁíÒ»¶Ë¿ªÊ¼
mesg£ºÔÊÐíviÏÔʾÆäËûÓû§ÓÃwriteдµ½×Ô¼ºÖÕ¶ËÉϵÄÐÅÏ¢

×îºóÐз½Ê½ÃüÁî
£ºn1,n2 co n3£º½«n1Ðе½n2ÐÐÖ®¼äµÄÄÚÈÝ¿½±´µ½µÚn3ÐÐÏÂ
£ºn1,n2 m n3£º½«n1Ðе½n2ÐÐÖ®¼äµÄÄÚÈÝÒÆÖÁµ½µÚn3ÐÐÏÂ
£ºn1,n2 d £º½«n1Ðе½n2ÐÐÖ®¼äµÄÄÚÈÝɾ³ý
£ºw £º±£´æµ±Ç°Îļþ
£ºe filename£º´ò¿ªÎļþfilename½øÐб༭
£ºx£º±£´æµ±Ç°Îļþ²¢Í˳ö
£ºq£ºÍ˳övi
£ºq!£º²»±£´æÎļþ²¢Í˳övi
£º!command£ºÖ´ÐÐshellÃüÁîcommand
£ºn1,n2 w!command£º½«ÎļþÖÐn1ÐÐÖÁn2ÐеÄÄÚÈÝ×÷ΪcommandµÄÊäÈë²¢Ö´ÐÐÖ®£¬Èô²»Ö¸
¶¨n1£¬n2£¬Ôò±íʾ½«Õû¸öÎļþÄÚÈÝ×÷ΪcommandµÄÊäÈë
£ºr!command£º½«ÃüÁîcommandµÄÊä³ö½á¹û·Åµ½µ±Ç°ÐÐ ¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 14 ÌõÆÀÂÛ

  1. shen.yhx ÓÚ 2010-04-25 14:14:40·¢±í:

    Ç¿:0)1

  2. John.liu.zk ÓÚ 2008-09-12 15:06:56·¢±í:

    vi,ÌåÑéÒ»ÏÂ

  3. tanglun ÓÚ 2008-09-12 10:46:40·¢±í:

    ѧϰÁË£¬Ð»Ð»£¡

  4. zhanghongwei_ja ÓÚ 2008-08-14 15:59:45·¢±í:

    :0wl;l1

  5. zhanghongwei_ja ÓÚ 2008-08-14 15:59:34·¢±í:

    :0w5ty(1

  6. zhanghongwei_ja ÓÚ 2008-08-14 15:59:27·¢±í:

    :0wl;l1

  7. zhanghongwei_ja ÓÚ 2008-08-14 15:59:18·¢±í:

    ÕýÔÚѧϰ¡£¡£¡£¡£¡£¡£¡£¡£

  8. zhanghongwei_ja ÓÚ 2008-08-14 15:59:03·¢±í:

    ²»´í

  9. zhanghongwei_ja ÓÚ 2008-08-14 15:58:47·¢±í:

    :0)1

  10. addlyl ÓÚ 2007-05-20 21:56:07·¢±í:

    £ºqwÄØ£¿

  11. addlyl ÓÚ 2007-05-20 21:54:25·¢±í:

    :0D1
    ¶¥Ò»ÏÂ

  12. csbinghu ÓÚ 2007-05-18 21:06:54·¢±í:

    :ha3nd

  13. dboo78 ÓÚ 2005-11-13 00:26:35·¢±í:

    ºÃ¶«Î÷ £¬ÊÕÏÂÁË£¬¸Ðл

  14. wade9900 ÓÚ 2005-06-03 21:46:21·¢±í:

    ¶÷,ÊDz»´í°¡!лл!