Ark Advent Calendar ã§ãä»åããPerlããã¥ã¼ãããããã§ããã¢ã«ãã¤ãã®ååã§ãã åã¯æ®æ®µã¨ãã£ã¿ã«vimãå©ç¨ãã¦ãã¾ããå··ã§ã¯é«ã¾ãvimç±ã®ã¯ããªã®ã§ããã社å ã§ã¯Emacsæ´¾ã®æ¹ã ã大åã§ãããã«vimã使ã£ã¦ããã¨ãã¦ãªãã¨ãã話ã¾ã§åºã¦ãã¦ãã¾ãããã®æ²ããç¾å®ãæç ´ãã¹ãæ®æ®µvimã使ã£ã¦ããæ¹ã«ãã使ã£ã¦ãªãæ¹ã«ãããããã使ããã¨æã£ã¦ããæ¹ã«ããªã¹ã¹ã¡ã§ããï¼ã¤ã®ãã©ã°ã¤ã³ãç´¹ä»ãããã¨æãã¾ãã 1. quickrun.vim quickrun ã¯ç·¨éä¸ã®ãã¡ã¤ã«ã®å ¨ä½ãããã¯ä¸é¨ãå®è¡ãã Vim ãã©ã°ã¤ã³ã§ãã å®è¡ããããã®ã³ãã³ã |:QuickRun| ãæä¾ããã¾ãã quickrun.vim help æ¦è¦ããå¼ç¨ quickrun.vimã¯thincaæ°ã«ãããã©ã°ã¤ã³ã§ããååã®ãã©ã°ã¤ã³ãujihisaæ°ã以åããå ¬éã
main help file *help.txt*      For Vim ãã¼ã¸ã§ã³ 7.1.  Last change: 2006 Nov 07 VIM - ã¡ã¤ã³ãã«ããã¡ã¤ã« k 移å:  ã«ã¼ã½ã«ã使ç¨ãããã"h" ã§å·¦ã"j" ã§ä¸ã            h  l "k" ã§ä¸ã"l" ã§å³ã«ç§»åã§ãã¾ãã                    j ãã«ãã®çµäº:  ":q<Enter>" ã¨ã¿ã¤ããã¾ãã Vimã®çµäº:  ":qa!<Enter>" ã¨ãã¾ã(注æ! å¤æ´ã¯ãã¹ã¦ç ´æ£ããã)ã é ç®ã¸ã¸ã£ã³ã:  ã¿ã° (ä¾:|bars|) ã«ã«ã¼ã½ã«ãåãããCTRL-] ãæ¼ãã¾ãã ãã¦ã¹ã§ã¸ã£ã³ã:  ":set mouse=a"ã¨å ¥åãã¦ãã¦ã¹ãæå¹ã«ãã¦ãã ãã(xterm ãããã¯GUIã§ã®ã¿å¯)ãã¿ã° (ä¾:|bars|) ãã
å æ¥ã®æ¥è¨ã§éããããã®äººããããã£ãã³ã¡ã³ã㧠ãã¦ã¼vimrcå ¬éãã¡ãããªãï¼ãçãªãã¨ãè¨ãããã®ã§æ©éå ¬éãã¦ã¿ã¾ãï¼ï¼ vimrc " vim:set ts=4 sts=4 sw=4 tw=0: (ãã®è¡ã«é¢ãã¦ã¯:help modelineãåç §) "--------------------------------------------------------------------------- " ã¡ãã¥ã¼ãã¡ã¤ã«ãåå¨ããªãå ´åã¯äºã'guioptions'ã調æ´ãã¦ãã if 1 && !filereadable($VIMRUNTIME . '/menu.vim') && has('gui_running') set guioptions+=M endif "------------------------------------------------------
404 - ï¾ï¾ï½²ï½»ï½µï½½ï¾ï¾ï½¼ï£²ï½»î»ï½¿ï¾ï½¼ï½¡ï½£ ï¾æ®ï½ªï½²é°ï¾ï½µï¾ï¾ï¾ï¾ï½´ï½¿ï¾ï¾ï¾ï¾ï¾ï½±ï½»ï¾ï½¾ï½³ï£±ï½£ï½¬ï¾ï¾ï½¸ï¿½ï½¸ï¾ï¾ï¨¤ï¾ï½»îï¾ï¾ï¾ï¾ï½±ï½²ï½»ï½¿ï¾ï¾ï¾ï½¡ï½£
ã³ã³ãã³ãã®æ¡å ãã®ãµã¤ãã«ã¯ãä¸è¨ã®ç¨®é¡ã®ã³ã³ãã³ããããã¾ãã ãvimã¨ãã£ã¿åºæ¬ãvimã¨ãã£ã¿ã®åºæ¬çãªæ å ±ãæ±ã£ãè¨äºã®ä¸è¦§ ãvimã¨ãã£ã¿ã®ã¤ã³ã¹ãã¼ã«é¢é£ã®è¨äºãvimã¨ãã£ã¿ã®ã¤ã³ã¹ãã¼ã«æ¹æ³ ãvimã¨ãã£ã¿ã»ã¹ã¿ã¼ã¿ã¼ããã¥ã¢ã«ãvimã¨ãã£ã¿ã®æä½æ¹æ³ï¼ããªãå ¥éï¼ ãvimã¹ã¯ãªãããvimã¨ãã£ã¿ã®æ¡å¼µã¹ã¯ãªããã®è¨äºã®ä¸è¦§ ãå½¹ç«ã¤ãå©ãã«ãªãvimã¹ã¯ãªããã ãããã©ã«ãã§ã¤ã³ã¹ãã¼ã«ããã¦ããvimã¹ã¯ãªããã ãvimã¨ãã£ã¿ã«ã©ã¼ã¹ãã¼ããvimã¨ãã£ã¿ã®ã«ã©ã¼ã¹ãã¼ãã®ã¹ã¯ãªã¼ã³ã·ã§ããã®ä¸è¦§ ãvimã¹ã¯ãªãã ãªãã¡ã¬ã³ã¹ãvimã¹ã¯ãªããã®æ¸ãæ¹ããµã³ãã«ã³ã¼ã ããã®ä»ã®ãã¼ã«ãã³ãã³ããvimã¨ãã£ã¿ä»¥å¤ã®ããã¼ã«ãã³ãã³ãã®è¨äºã®ä¸è¦§ ããã¦ã³ãã¼ãããã®ãµã¤ãã§é å¸ãã¦ãããã¡ã¤ã«ã®ä¸è¦§ ãã®ãµã¤ãã§ã¯RSSã§ãµã¤ãã®æ´æ°æ å ±ãé
Ubuntu 10.04 LTS æ°è¦ã¤ã³ã¹ãã¼ã«ï¼RAID1 + LVMï¼ãã®1ï¼ã§ã¯ãUbuntu 10.04 ãæ°è¦ã¤ã³ã¹ãã¼ã«ãã¾ããã æ°ãã OS ãå ¥ããã¨ãæä½éã®è¨å®ãå©ç¨ããã½ããã¦ã§ã¢ãã¤ã³ã¹ãã¼ã«ãã¦ãããªãã¨ããã¾ããã ã§ãåæè¨å®ãè¡ã£ãã¨ãã®ã¡ã¢ãã§ãã âvim ã¤ã³ã¹ãã¼ã« å人çã«ã¯ãvi ã使ãã«ããã®ã§ãæ®æ®µã¯ vi ã¯ãã¼ã³ã§ãã vim ã使ç¨ãã¦ãã¾ãã vi ã§ã®ä½æ¥ãå¤ãã®ã§ãå ã«ãvimããã¤ã³ã¹ãã¼ã«ãã¦ããã¾ãã $ sudo apt-get update ï½ãç¥ãï½ $ sudo apt-get install vim ï½ãç¥ãï½ âåºå®IPã¸ã®å¤æ´ ä½æ¥ã®å¤§åã¯å¤é¨ãã·ã³ãããsshãã§æ¥ç¶ãã¦è¡ãã¾ãã ãdhcpãã§æ¯å IP ã¢ãã¬ã¹ãå¤ããã¨ãæ¥ç¶å ã®æå®ãå¤ããªãã¨ãããªãã®ã§ãé¢åã§ãã ã§ãã®ã§ãåºå® IP åãã¦
viã¨ãã£ã¿ã§æ¯åset nuã¨ãé¢åã ãªãã¨æã£ã¦ãããã åæè¨å®ãã¡ã¤ã«ã£ã¦ããã®ããã£ã¦ãããã«å¿ è¦ãªãªãã·ã§ã³ã è¨è¿°ãã¦ããã°OKã ã£ããã§ããã ã¨ãããã¨ã§ã¡ã¢ã 1.åæè¨å®ãã¡ã¤ã«ä½æ ãã¼ã ãã£ã¬ã¯ããªã« ".exrc" ã¨ããååã®ãã¡ã¤ã«ãä½æ vimã®å ´å㯠".vimrc" ãä½æã ï¼vimã§ã".exrc"ãããã°ãããèªã¿è¾¼ã¾ãã¾ã ".exrc" ã¨".vimrc"ã®ä¸¡æ¹ãåå¨ããå ´å㯠".vimrc"ãåªå ããã¾ããï¼ 2.è¨å®ãè¨å ¥ãã¦ä¿å set number "è¡çªå·è¡¨ç¤º set tabstop=4 "ã¿ãè¨å® ã¨ãã£ã¿èµ·åä¸ã®å ´åã®ããã«ã:ãã¯å¿ è¦ããªãã®ã§æ³¨æã ï¼åèãªã³ã¯ï¼ åæè¨å®ãã¡ã¤ã«ãæ¸ãã viminfoãã¡ã¤ã«ãå©ç¨ãã¦ãvimã¨ãã£ã¿ã¦ã£ã³ãã¦éã§ãã¼ã¿ã転éãã â åç¡ãã®vim使ã viã使ãåãã
JVim3éå ¬å¼ã¬ã¤ã ⦠ç®æ¬¡ ã¯ããã« ãã®Webãã¼ã¸ã«ã¤ã㦠Vi(JVim)ãå ¨ãç¥ããªã人㸠Viã¯ä½¿ã£ã¦ãããã©JVimã®æ©è½ã使ã£ã¦ãªã人㸠主ãªæ©è½ä¸è¦§ JVimåå¿è åã解説 è¶ æä½éã®Viã³ãã³ã解説 ãã¹ã¦ã®åºæ¬,ã«ã¼ã½ã«ç§»å æåã®åé¤ã¨å¤æ´ã³ãã³ã æ¤ç´¢ã¯ã«ã¼ã½ã«ç§»åã®ä¸ç¨® æåã®ã³ãã¼ã移åã®åºæ¬ åæè¨å®ãã¡ã¤ã«ãæ¸ãã æ¿å ¥ã¢ã¼ãæã®ã³ãã³ã å°ã£ãæã®ããã®åºç¤ç¥è Visualç¯å²æå®ã®ä½¿ãæ¹ ãã¼ã«ã¹ã¿ãã¤ãºã®åºæ¬ ä¸æ¬ç½®æã¨æ£è¦è¡¨ç¾[å·¥äºä¸] JVimä¸ç´è åã解説 æåã³ã¼ããæ¹è¡ã³ã¼ããèªç±èªå¨ 便å©ãªã¿ã°æ©è½ãæ軽ã«ä½¿ãã å ¥åä¸ã®æååãç¬æã«è£é å¸æã®ãã¡ã¤ã«ãèªç±èªå¨ã«éã è¤æ°ãã¡ã¤ã«ãåæã«æ±ãã«ã¯ è¤æ°ã®çªãæãéãã«æä½ãã ååã¤ããããã¡ã¨å±¥æ´ãããã¡ æä½ã®è¨é²ã¨åçæ©è½ã¯è¶ ä¾¿å© ãããããªã¹ã¯ãã¼ã«æ¹æ³ ã¤ã³ã
ã¯ããã« JVimã«ã¯,ç´°ããæåã®è¨å®é ç®ãæ°å¤ãããã¾ã ããã§ã¯,è¨å®ã®å¤æ´æ¹æ³ã,åºæ¬çãªè¨å®é ç®ã«ã¤ãã¦è§£èª¬ãã¾ã åæã«,èµ·åæã«èªã¿è¾¼ã¾ããè¨å®ãã¡ã¤ã«ã«ã¤ãã¦ãæ¸ãã¾ã ãªãã·ã§ã³ã¨ã¯ ä¾ãã°, :set number ã¨æã£ã¦ã¿ã¾ããã. ç»é¢ã®å·¦å´ã« 常æãè¡çªå·ãã表示ãããããã«ãªãã¾ã. ä»ã®æä½ã§,ãJVimã®ç¶æ ã å¤åããããããã§ã JVimã«ã¯ããªãã·ã§ã³ãã¨ãããã©ã¡ã¼ã¿ã¼ãã¨å¼ã°ãããå¤æ°ã¿ãããªã¢ããã ããã¤ããã£ã¦, ãã®å¤æ°ã®ç¶æ ãå¤æ´ãããã¨ã§æåãå¤æ´ã§ãã¾ã. ä» å¤æ´ããã®ã¯ number ã¨ããååã®ãªãã·ã§ã³ã§ã. ãã® number 㨠ãããªãã·ã§ã³ã¯ãç»é¢ã«å¸¸æè¡çªå·ã表示ããããã©ããããè¦ãã¦ããå ´æ (å¤æ°ã¿ãããªãã®)ãªã®ã§ã ãã® number ã¨ãããªãã·ã§ã³ã¯ ãå¿ ããã¤ã"ON"ã"OFF"ã®ç¶
Windowsããã°ã©ãã主ãªå¯¾è±¡ã«ï¼Linuxä¸ã§ããã°ã©ãã³ã°ãè¡ãæ¹æ³ãä¸ãã説æãã¾ããæ®æ®µæ £ã親ããã§ããWindowsããLinuxã«ç§»ãã¨ï¼ä½ããä½ã¾ã§ããããªããã¨ã°ããããããã¾ãããããªã¼ãã³ã½ã¼ã¹ã»ã½ããã¦ã¨ã¢ã¨ã¯ä½ãããããWindowsä¸ã§Linuxãç°¡åã«ä½¿ãæ¹æ³ããLinuxä¸ã§ã®ï¼åãã¦Hello worldããçµã¦ï¼Linuxä¸ã§ããã¹ãã»ã¨ãã£ã¿ã使ã£ã¦ããã°ã©ã ãæ¸ãï¼åããã¾ã§ããããã解説ãã¾ãã ã¾ãï¼Windowsæè¡è ã®ããã®çµã¿è¾¼ã¿Linuxå ¥é ãåããã¦ãèªã¿ãã ããã 第1å ãªã¼ãã³ã½ã¼ã¹ã®åºç¤ãå¦ã¶ 第2å Linuxãä¸ããç¥ã 第3å VMware Playerã¨Ubuntuä»®æ³ãã·ã³ã®å°å ¥ 第4å Linuxã³ãã³ãå ¥éï¼ãã®1ï¼å¿ è¦æä½éã®æä½ï¼ 第5å Linuxã³ãã³ãå ¥éï¼ãã®2ï¼ãã¹ï¼ã¦ã¼ã¶ã¼æ¨©éï¼ãã¼ããã·ã§ã³ã
èªè ã®å¤ãã¯ï¼ããã°ã©ãã³ã°ã«å©ç¨ãããæ°ã«å ¥ãã®ãã¨ãã£ã¿ãããæã¡ã§ã¯ãªãã§ãããããä»åã¯ï¼UNIXç³»OSã®æ¨æºçãªã¨ãã£ã¿ã¨ãã¦é·å¹´ä½¿ããç¶ãã¦ããviã¨ãã£ã¿ã«ã¤ãã¦åãä¸ãã¾ãããã¡ããï¼Linuxã«ããã¦ãï¼æ¬¡ã«è¿°ã¹ãããã«âviç³»åâã®ããã¹ãã»ã¨ãã£ã¿ãå©ç¨ã§ãã¾ãã viã¨ãã£ã¿ã®æ¦è¦ Linuxãã¯ããã¨ããUNIXç³»OSã§ã¯ï¼viãæ¨æºçãªããã¹ãã»ã¨ãã£ã¿ã¨ãªã£ã¦ãã¾ãããªãªã¸ãã«ã®ãviï¼VIsual editorï¼ãã¯ï¼ç±³Sun Microsystemsã®å ±ååµæ¥è ã®ä¸äººã§ãããã«ã»ã¸ã§ã¤ï¼Bill Joyï¼æ°ã«ãã£ã¦30年以ä¸åã«éçºãããã®ãå§ã¾ãã§ããï¼ç¾å¨ã§ã¯viã®ä¸ä½äºæã§ãããVimï¼Vi IMprovedï¼ããå¤ãã®Linuxãã£ã¹ããªãã¥ã¼ã·ã§ã³ã§æ¡ç¨ããã¦ãã¾ããvi/Vimï¼ä»¥å¾ã¯ã¾ã¨ãã¦viã¨ãã£ã¿ã¨è¨è¿°ãã¾ãï¼ã«ã¯ï¼ã·ã³ã¿ãã¯ã¹ãã¤ã©ã¤
Emacsã¯ï¼Linuxãã¯ããã¨ããUNIXç³»OSä¸ã«ããã¦ï¼ååã«ç´¹ä»ããviï¼ãviã¨ãã£ã¿å ¥éããåç §ï¼ã¨ä¸¦ãã§äººæ°ã®é«ãã¨ãã£ã¿ã§ãã Emacsã¯ï¼ãã°ãã°ãåãªãã¨ãã£ã¿ã§ã¯ãªãï¼ä¸ã¤ã®ç°å¢ã§ãããã¨ãããã¾ãããã®çç±ã¯ï¼ã½ã¼ã¹ã³ã¼ãã®ç·¨éï¼ã³ã³ãã¤ã«ï¼ãããã°ã¯ãã¡ããï¼ã¡ã¼ã«ãWebãã©ã¦ã¸ã³ã°ã¾ã§Emacsã®ä¸ã§å®çµã§ãã¦ãã¾ãã¨ããï¼æ¡å¼µæ§ã®é«ãã§ãããã ä»åã¯ï¼Emacså ¥éãç´¹ä»ãã¾ãã Emacsã®æ¦è¦ Emacsã¯ï¼ä»ãã30年以ä¸åï¼GNUããã¸ã§ã¯ãã®åµå§è ã§ãããªãã£ã¼ãã»ã¹ãã¼ã«ãã³ï¼Richard Stallmanï¼æ°ã«ãã£ã¦ååã¨ãªãã¨ãã£ã¿ãä½ããã¾ããããã®å¾ï¼æ§ã ãªEmacsã®å®è£ ãä½ããã¾ãããï¼ãã®ä¸å¿ã¨ãªãã®ã¯ï¼ãªãã£ã¼ãã»ã¹ãã¼ã«ãã³æ°ã«ããGNU Emacsã§ãããã®é£è¼ã§åãä¸ãã¦ãããUbuntuï¼Ubuntu 8.04 L
å ¥évi 第6ç ä½è : ãªã³ãã©ã ,ã¢ã¼ãã«ãããã³ã¹,Linda Lamb,Arnold Robbins,ç¦å´ä¿ååºç社/ã¡ã¼ã«ã¼: ãªã©ã¤ãªã¼ã»ã¸ã£ãã³çºå£²æ¥: 2002/05ã¡ãã£ã¢: åè¡æ¬è³¼å ¥: 14人 ã¯ãªãã¯: 193åãã®ååãå«ãããã° (75件) ãè¦ã å æ¥ãPython ã®ã½ã¼ã¹ãèªãã®ã«ã¿ã°ã¸ã£ã³ãæ©è½ãå©ç¨ãã ã§ã¿ã°ã¸ã£ã³ãã®è«¸ã ã調ã¹ã¦ããããid:kyagi ãããä½ãè¨ã£ã¦ãªãã®ã«è²¸ãã¦ããã¾ããããã£ãããªã®ã§ç§ã®ç¥ããªãã³ãã³ããæ©è½ãçºæãããã¨æãã¾ãã " çµäºããã«æå¾ã«ä¿åããããã¼ã¸ã§ã³ã¸æ»ãããã¤ã :q! ãã¦ã(- -# :e! " ç´åã®ãã¡ã¤ã«ã¸åãæ¿ãã :e# " ä¸æçã«ããç¯å²ã®è¡ã表示ããã :1,10# " Lisp ãã©ã¼ãããã§åä¸ããã :set lisp " åèªåä½ã§ç·¨é/åé¤ãã cw dw " ç»é¢ã®
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}