VI(1)			UNIX ¥³¥Þ¥ó¥É		VI(1)

¡ÎÌ¾Á°¡Ï
vi - ex ¤Ë¤â¤È¤Å¤¯¥¹¥¯¥ê¡¼¥ó»Ø¸þ¤Î¥Ó¥¸¥å¥¢¥ë¥¨¥Ç¥£¥¿

¡Î·Á¼°¡Ï
vi [ -t tag ] [ -r ] [ +command ] [ -l ] [ -R ] [ -wnn ] name ...
view [ ex options ]

¡Îµ¡Ç½ÀâÌÀ¡Ï
vi (visual) ¤Ï¡¢ex(1) ¤Ë¤â¤È¤Å¤¯¥¹¥¯¥ê¡¼¥ó»Ø¸þ¤Î¥Ó¥¸¥å¥¢¥ë¥¨¥Ç¥£¥¿¤Ç¤¹¡£ex ¤È vi ¤È¤Ï¡¢¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤ò¶¦Í­¤·¤Æ¤¤¤ë¤¿¤á¡¢Æ±°ì¤Î¥³¡¼¥É¤ò¼Â¹Ô¤·¤Þ¤¹¡£
¤·¤¿¤¬¤Ã¤Æ¡¢ ex ¤Î¥³¥Þ¥ó¥É¥â¡¼¥É¤«¤é vi ¤ËÆþ¤Ã¤¿¤ê¡¢¤½¤ÎµÕ¤ò¼Â¹Ô¤·¤¿¤ê¤Ç¤­¤Þ¤¹¡£
view ¤Ï¡¢vi ¤òÆÉ¤ß¼è¤êÀìÍÑ¥â¡¼¥É¤Çµ¯Æ°¤·¤¿¤â¤Î¤Ç¤¹¡£¥Õ¥¡¥¤¥ë¤òÊÑ¹¹¤»¤º¤Ë¡¢¥Õ¥¡¥¤¥ë¤ÎÃæ¤ò¼«Í³¤ËÆ°¤­²ó¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ 

vi Quick Reference card ¤È Introduction to Display Editing with Vi ¤Ï¡¢vi ¤Î»ÈÍÑÊýË¡¤ò¾Ü¤·¤¯ÀâÌÀ¤·¤Æ¤¤¤Þ¤¹¡£

¡ÎÆüËÜ¸ìµ¡Ç½¡Ï
¥Õ¥¡¥¤¥ëÌ¾¤ª¤è¤Ó¥Õ¥¡¥¤¥ëÃæ¤Î¥Æ¥­¥¹¥È¤Ë¡¢EUC Ê¸»ú¤¬»ÈÍÑ¤Ç¤­¤Þ¤¹¡£
¤¹¤Ù¤Æ¤Î½èÍý¤Ï¡¢¥Ð¥¤¥ÈÃ±°Ì¤Ç¤Ï¤Ê¤¯Ê¸»úÃ±°Ì¤Ç¤ª¤³¤Ê¤ï¤ì¤Þ¤¹¡£

ÆüËÜ¸ìÂÐ±þÈÇ¤Ë¤ª¤±¤ë³ÈÄ¥

1.  Ã±¸ì¤Î¶èÀÚ¤êÊýË¡
Á´³ÑÊ¸»úÎó¤Ï¡¢¤Ò¤é¤¬¤Ê¡¢¥«¥¿¥«¥Ê¡¢´Á»ú¡¢µ­¹æ¤ò¤½¤ì¤¾¤ì¥°¥ë¡¼¥×¤È¤·¤Æ°·¤¤¤Þ¤¹¡£Æ±¤¸¥°¥ë¡¼¥×¤ÎÊ¸»ú¤¬Â³¤¯¾ì¹ç¤Ï¡¢¤Ò¤È¤Ä¤ÎÃ±¸ì¤È¤ß¤Ê¤·¤Þ¤¹¡£¤¿¤À¤·¡¢`¡µ'¡¢`¡¶' ¤Ï¤Ò¤é¤¬¤Ê¡¢`¡³'¡¢`¡´'¡¢`¡¼' ¤Ï¥«¥¿¥«¥Ê¡¢`¡¹' ¤Ï´Á»ú¤È¤ß¤Ê¤·¤Þ¤¹¡£
È¾³Ñ¥«¥ÊÊ¸»ú¤Ï¡¢¤Ò¤È¤Ä¤Î¥°¥ë¡¼¥×¤È¤·¤Æ°·¤¤¤Þ¤¹¡£

2.  Àµµ¬É½¸½ [ ]
Àµµ¬É½¸½ [ ] ¤òÍÑ¤¤¤Æ¡¢ÈÏ°Ï»ØÄê¤ò¤ª¤³¤Ê¤¦¾ì¹ç¡¢°Û¤Ê¤ë¥³¡¼¥É¥»¥Ã¥È¤Ë¤Þ¤¿¤¬¤ëÈÏ°Ï¤ò»ØÄê¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£
°Û¤Ê¤ë¥³¡¼¥É¥»¥Ã¥È¤Ë¤Þ¤¿¤¬¤ëÈÏ°Ï¤ò»ØÄê¤·¤¿¾ì¹ç¡¢ÈÏ°Ï¤ò»ØÄê¤¹¤ëºÇ½é¤ÈºÇ¸å¤ÎÊ¸»ú¤Ë¤Î¤ß°ìÃ×¤·¤Þ¤¹¡£
Îã¤¨¤Ð¡¢[a-°¡] ¤Ï¡¢[a°¡] ¤ÈÆ±°ì»ë¤·¡¢`a' ¤Þ¤¿¤Ï `°¡' ¤È°ìÃ×¤·¤Þ¤¹¡£[^a-°¡] ¤Ï¡¢[^a°¡] ¤ÈÆ±°ì»ë¤·¡¢`a' , `°¡' °Ê³°¤Î¤¹¤Ù¤Æ¤ÎÊ¸»ú¤È°ìÃ×¤·¤Þ¤¹¡£

3.  ÀÞ¤êÊÖ¤·½èÍý
²èÌÌ±¦Ã¼¤Î¥«¥é¥à¤ËÁ´³ÑÊ¸»ú¤¬ÇÛÃÖ¤µ¤ì¤ë¾ì¹ç¡¢±¦Ã¼¤Î¥«¥é¥à¤Ë¤Ï¡¢È¾³Ñ¶õÇòÊ¸»ú¤¬É½¼¨¤µ¤ì¡¢Á´³ÑÊ¸»ú¤Ï¡¢¼¡¤Î¹Ô¤ËÉ½¼¨¤µ¤ì¤Þ¤¹¡£

4.  autoindent ¥ª¥×¥·¥ç¥ó
¥¿¥Ö¡¢È¾³Ñ¶õÇòÊ¸»ú¤Ë²Ã¤¨¤Æ¡¢Á´³Ñ¶õÇòÊ¸»ú¤â indent ¡Ê»ú²¼¤²¡Ë¤ÎÂÐ¾Ý¤È¤·¤Þ¤¹¡£
¤¿¤À¤·¡¢lisp ¥ª¥×¥·¥ç¥ó¤ò»ØÄê¤·¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢Á´³Ñ¶õÇòÊ¸»ú¤Ï indent ¤ÎÂÐ¾Ý¤È¤Ï¤Ê¤ê¤Þ¤»¤ó¡£

5.  list ¥ª¥×¥·¥ç¥ó
¥¿¥Ö¤ò ^I, ¹ÔËö¤ò $ ¤ÇÉ½¼¨¤¹¤ë¤Î¤Ë²Ã¤¨¤Æ¡¢Á´³Ñ¶õÇòÊ¸»ú¤ò¡¢¢¢¤ÇÉ½¼¨¤·¤Þ¤¹¡£

¡Î¥Õ¥¡¥¤¥ë¡Ï
ex(1).

¡Î´ØÏ¢¹àÌÜ¡Ï
ex (1), edit (1),
``Vi Quick Reference'' card,
``An Introduction to Display Editing with Vi''
3.3J ¥ê¥ê¡¼¥¹¥Î¡¼¥È UNIX ¥³¥Þ¥ó¥É ¥é¥¤¥Ö¥é¥ê

¡Î³«È¯¼Ô¡Ï
William Joy
    ¥ª¥ê¥¸¥Ê¥ë¤Î³«È¯¼Ô
Mark Horton
    visual ¥â¡¼¥É¤Ë¥Þ¥¯¥íµ¡Ç½¤òÄÉ²Ã¡¢version 3 ¤Î¥á¥ó¥Æ¥Ê¥ó¥¹

¡ÎÃí°Õ»ö¹à¡Ï
^T ¤ò»ÈÍÑ¤¹¤ë¥½¥Õ¥È¥¦¥§¥¢¥¿¥Ö¤Ï¡¢autoindent ¤ÎÄ¾¸å¤Ë¤Î¤ßºîÍÑ¤·¤Þ¤¹¡£
¥¤¥ó¥Æ¥ê¥¸¥§¥ó¥È¥¿¡¼¥ß¥Ê¥ë¾å¤Ç¤Ï¡¢º¸±¦¤Î¥·¥Õ¥È¤Ë¤è¤Ã¤Æ¡¢Ê¸»ú¤ÎÁÞÆþ¤äºï½ü¤ò¤ª¤³¤Ê¤¦¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£

wrapmargin ¥ª¥×¥·¥ç¥ó¤Ï¡¢¶õÇòÊ¸»ú¤òÆþÎÏ¤·¤¿»þ¤Ë½ÐÎÏ¥«¥é¥à¤ò·×»»¤¹¤ë¤Î¤Ç¡¢¤¦¤Þ¤¯ºîÍÑ¤·¤Ê¤¤¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£½½Ê¬Ä¹¤¤Ã±¸ì¤¬¡¢ÀßÄê¤·¤¿±¦¥Þ¡¼¥¸¥ó¤òÄÌ²á¤·¤Æ¡¢¤½¤Î¤Þ¤Þ¼¡¤Î¹Ô¤Þ¤Ç»ê¤Ã¤¿¾ì¹ç¡¢¤½¤Î¹Ô¤ÏÀÞ¤êÊÖ¤µ¤ì¤Þ¤»¤ó¡£
¥¤¥ó¥Æ¥ê¥¸¥§¥ó¥È¥¿¡¼¥ß¥Ê¥ë¾å¤Ç¤Ï¡¢¥¿¥Ö¤Î¤¢¤ë¹Ô¤Ç¡¢Ê¸»ú¤ÎÁÞÆþ¤äºï½ü¤ò¤ª¤³¤Ê¤¦¤È¡¢ÃÙ¤¯¤Ê¤ê¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥¿¡¼¥ß¥Ê¥ë¤¬¤³¤Îºî¶È¤òÀµ³Î¤Ë¤ª¤³¤Ê¤¦É¬Í×¤¬¤¢¤ë¤«¤é¤Ç¤¹¡£

ºï½ü¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤ÆÌ¾Á°ÉÕ¤­¥Ð¥Ã¥Õ¥¡¤Ë¥Æ¥­¥¹¥È¤ò¥»¡¼¥Ö¤¹¤ë¤³¤È¤Ï¡¢¤¤¤¯¤é¤«ÈóÇ½Î¨¤Êºî¶È¤Ë¤Ê¤ê¤Þ¤¹¡£

source ¥³¥Þ¥ó¥É¤Ï¡¢ :source ¤Î¤è¤¦¤Ë¼Â¹Ô¤¹¤ë¤È¡¢ºîÍÑ¤·¤Þ¤»¤ó¡£
ÁÞÆþ¡¿ºï½ü¥³¥Þ¥ó¥É¤ò¡¢ :append, :change, :insert ¤ÎÍÍ¤Ë»ÈÍÑ¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£¤Ê¤¼¤Ê¤é¡¢: escape ¤òÍÑ¤¤¤Æ 1 ¹Ô°Ê¾å¤ÎÆþÎÏ¤¬¤Ç¤­¤Ê¤¤¤«¤é¤Ç¤¹¡£:global ¤òÍÑ¤¤¤Æ¡¢¤³¤Î¤è¤¦¤ÊÁÞÆþ¡¿ºï½ü¤ò¤ª¤³¤Ê¤¦¤Ë¤Ï¡¢¤Þ¤º Q ¥³¥Þ¥ó¥É¤Çex ¥³¥Þ¥ó¥É¥â¡¼¥É¤ËÆþ¤ê¡¢¤½¤³¤Ç¼Â¹Ô¤·¤Æ¤«¤é¡¢ºÆ¤Ó¥¹¥¯¥ê¡¼¥ó¥¨¥Ç¥£¥¿¤Îvi ¡¿ open ¥â¡¼¥É¤ËÌá¤ê¤Þ¤¹¡£