Æô¶¯·½·¨
ÔÚ Vim ÃüÁîģʽÏ£¬Òƶ¯Óα궨λÓÚijһ¸öλÖ㬼üÈë ctrl-vºó״̬À¸ÉϳöÏÖ VISUAL BLOCK ×ÖÑù£¬¼´½øÈë×ÝÏò±à¼Ä£Ê½¡£Òƶ¯ÓαêÒÔ°´ÐèÑ¡Ôñ´ý±à¼µÄÇøÓò¡£×¢Ò⣺ÔÚ Windows °æ±¾µÄ Vim ÖУ¬¼ü×éºÏ ctrl-vͨ³£±»Ó³ÉäΪÎı¾Õ³Ìù£¬ËùÒÔ Window °æµÄ Vim µÄ×ÝÏò±à¼Ä£Ê½ÓÉ ctrl-qÆô¶¯¡£µ±È»Áé»îµÄ Vim Ò²¿ÉÒÔÓÉÓû§×ÔÐж¨Òå×éºÏ¼ü¡£
ʾÀý 1£º×ÝÏò±à¼ÔÚÅúÁ¿Ð޸ĴúÂëµÄÓ¦ÓÃÑÝʾ
½«ÊýÁУº
10.1.5.214
10.1.5.212
10.1.5.210
±à¼³ÉÐòÁУº
ping -c 4 10.5.5.214 >> result0
ping -c 4 10.5.5.212 >> result0
ping -c 4 10.5.5.210 >> result0
ÕâÊÇÒ»¸ö½« IP ÊýÁÐÐ޸ijɿÉÖ´ÐÐµÄ ping ÃüÁîÐòÁеĹý³Ì¡£
µÚÒ»²½£ºÐÞ¸Ä
½« IP ÊýÁÐÖеڶþ¶ÎËùÓÐÊý×Ö¡°1¡± ÐÞ¸ÄΪ¡°5¡±£º
½«Óα궨λµÚÒ»¸öÐÐ IP µØÖ·µÚ¶þ¶ÎµÄ¡°1¡±
ctrl-v ½øÈë×ÝÏò±à¼Ä£Ê½
G Òƶ¯Óα굽×îºóÒ»ÐУ¬¿ÉÊӿ鸲¸ÇËùÒªÐ޸ĵÄÁÐ
r ½øÈëÐÞ¸Äģʽ
5 ÊäÈëÊý×Ö¡°5¡±
ESC Í˳ö×ÝÏò±à¼Ä£Ê½£¬Í¬Ê±ËùÓб»Ñ¡ÖеÄÊý×Ö¶¼±»¸Ä³ÉÁË¡°5¡±£¬²¢»Øµ½ÃüÁîģʽ
½á¹ûÈçÏ£º
10.5.5.214
10.5.5.212
10.5.5.210
µÚ¶þ²½£ºÇ°Ìí¼Ó
ÔÚËùÓÐÐÐ֮ǰÌí¼Ó¡°ping - c 4 ¡±£º
½«Óα궨λµ½µÚÒ»ÐеÚÒ»ÁÐ
ctrl-v ½øÈë×ÝÏò±à¼Ä£Ê½
G Òƶ¯Óα굽×îºóÒ»ÐеÚÒ»ÁУ¬¿ÉÊӿ鸲¸ÇÁ˵ÚÒ»ÁÐ
I ½øÈëÐÐÊײåÈëģʽ
ping -c 4 ÊäÈëËùÒªÇó×Ö·û¡°ping - c 4 ¡±
ESC Í˳ö×ÝÏò±à¼Ä£Ê½µÄͬʱËùÓÐÑ¡ÖеÄ×Ö·ûÇ°¶¼Ìí¼ÓÁË¡°ping - c 4 ¡±£¬»Øµ½ÃüÁîģʽ
½á¹ûÈçÏ£º
ping -c 4 10.5.5.214
ping -c 4 10.5.5.212
ping -c 4 10.5.5.210
µÚÈý²½£ººóÌí¼Ó
ÔÚËùÓÐÐÐÖ®ºóÌí¼Ó¡°>> result0¡±£º
½«Óα궨λµ½µÚÒ»ÐÐ×îºóÒ»ÁÐ
ctrl-v ½øÈë×ÝÏò±à¼Ä£Ê½
G Òƶ¯Óα굽×îºóÒ»ÐÐ×îºóÒ»ÁУ¬VISUAL ¡¡ BLOCK ¡¡¸²¸ÇÁË×îºóÒ»ÁÐ
A ½øÈëÐÐβ²åÈëģʽ
>> result ÊäÈëËùÒªÇó×Ö·û¡°>> result0¡±
ESC Í˳ö×ÝÏò±à¼Ä£Ê½µÄͬʱËùÓÐÑ¡ÖеÄ×Ö·ûºó¶¼Ìí¼ÓÁË¡° >> result0¡±£¬»Øµ½ÃüÁîģʽ
½á¹ûÈçÏ£º
ping -c 4 10.5.5.214 >> result0
ping -c 4 10.5.5.212 >> result0
ping -c 4 10.5.5.210 >> result0
ÒÔÉÏÈý¸ö²½ÖèÓÐÒ»¸ö¹²Í¬Ìص㣬¾ÍÊǶ¼×ÝÏòΪ±à¼·½Ïò¡£ÒÔÉÏÓÉÈýÐдúÂëΪÀýµÄ·½·¨Í¬ÑùÒ²¿ÉÒÔÊÊÓÃÓÚ¸ü¶àµÄÐС£
ÒÔÉÏͬÑù³ö×Ôһƪ²©ÎÄ£ºhttp://blog.sina.com.cn/s/blog_6268defa0100wcdk.htm
»¶Ó·ÃÎÊ£¬ÅúÆÀÖ¸Õ룡£¡
xiaoye1113 ÓÚ 2011-08-30 15:35:03·¢±í:
ѧϰѧϰ
ÎÒÀ´³ÙÁË ÓÚ 2011-08-30 15:31:48·¢±í:
ºÇºÇ£¡£¡
alick ÓÚ 2011-08-30 09:54:07·¢±í:
:0wpoi2nxzcc ÓÚ 2011-08-30 08:45:30·¢±í:
ѧϰÁË