ä¸çä¸ã®ããããæ å ±ãæ¤ç´¢ããããã®ãã¼ã«ãæä¾ãã¦ãã¾ãããã¾ãã¾ãªæ¤ç´¢æ©è½ãæ´»ç¨ãã¦ããæ¢ãã®æ å ±ãè¦ã¤ãã¦ãã ããã
ä¸çä¸ã®ããããæ å ±ãæ¤ç´¢ããããã®ãã¼ã«ãæä¾ãã¦ãã¾ãããã¾ãã¾ãªæ¤ç´¢æ©è½ãæ´»ç¨ãã¦ããæ¢ãã®æ å ±ãè¦ã¤ãã¦ãã ããã
å¼ãç¶ãvimã®è¨å®ããããä¸ã GNU Global ã«ã¤ãã¦ã¯ï¼ä»¥åmachuããã®ããã°ãè¦ã¦ç¥ã£ã¦ãã¦ï¼gtags.vimãå ¥ã£ã¦ããã ãã©ï¼ãã¤ãã³ãã³ãã¨ãå¿ãã¦ä½¿ãã¦ãªãã£ãã®ã§ï¼ãã£ãããªã®ã§åå ¥éãã¦ã¿ããã¨ã«ãããä»åº¦ã¯å¿ããªãããã«ã¡ããã¨ãã¼ãã¤ã³ãç»é²ãã¦ãããã 詳ãããã¨ã¯ä»¥ä¸åç §ã£ã¦ãã¨ã§ã ã½ã¼ã¹ã³ã¼ããå¿«é©ã«èªãããã® GNU GLOBAL å ¥é (ä¸ç·¨) - ã¾ã¡ã ãã¤ã¢ãªã¼(2009-03-08) ã½ã¼ã¹ã³ã¼ããå¿«é©ã«èªãããã® GNU GLOBAL å ¥é (åç·¨) - ã¾ã¡ã ãã¤ã¢ãªã¼(2009-03-07) ã§ï¼èªåãå ã®ããã°ãåèã«ãã¤ã¤ï¼å ãã¦ã¡ãã£ã¨è¨å®ããã " gtags " æ¤ç´¢çµæWindowãéãã nnoremap <C-q> <C-w><C-w><C-w>q " Grep æºå nnoremap <C-g> :Gtags -
Make a note of it: Web tech, montaineering, and so on. æè¿ã§ãããã¨ãã£ã¿ã« Vim ã使ãããã«ãªãã¾ãããWinã¨Linuxã§åãã¨ãã£ã¿ã使ãããããã¦ã¹ä½¿ããªãã¦è¯ãã®ã§æ¥½ããã§ããæ£ç¢ºã«ã¯Win ã§ã¯ gVim ã§ããããã¨ãèªå® ã§ä½¿ã£ã¦ã HHKB ã«ãåã£ã¦ãã®ã§ã¡ãã£æ¥½ï½âª Vim ã§ã¯ .vimrc(Vimã®è¨å®ãã¡ã¤ã«) ã«è¨è¿°ãå ãããã¨ã§ãåæè¨å®ãæ¸ãæãããã¨ãã§ãã¾ããã¿ãå¹ ãããªã¼ãã³ãã³ãã¾ã§ãæ®ã©ãªãã§ãããã®è¾ºã®è§£èª¬ã¯ä»ã«è²ãã¨ãã¦ãä»åã¯ä»ãã¨ã使ã£ã¦ããã¼ãã¤ã³ããæãã¦ã¿ã¾ããå¾®å¦ã« Emacs 風å³ã 移åç³» inoremap <Leader>a <Home> inoremap <C-e> <End> inoremap <C-d> <Del> inoremap <C-h> <Left> i
æè¿ããªãã»ã©ã¨æã£ãvimã®ä½¿ãæ¹ãç´¹ä»ããã vimã§æ¬¡ã®ã³ãã³ããå®è¡ããã¨ã :%s/./&/g ç·¨éä¸ã®ããã¹ãã®æåæ°ãã«ã¦ã³ãããäºãåºæ¥ãã ãã®ã³ãã³ãã«ãããã.ãã¯ãæ£è¦è¡¨ç¾ã§è¨ãã¨ããã®ãã(æ¹è¡æå以å¤ã®)ä»»æã®ä¸æåã«ããããã§ãããã&ãã¯ããããããæååããæå³ããã®ã§ãçµå±ä¸è¨ã®ã³ãã³ãã¯ããåæåãããã®æåèªèº«ã§ç½®æãããã¨ãããã¨ãªãããã®éç¨ã§ãä½ç®æã«ããããããã表示ãããã®ã§ãçµæãããã¹ãã®ä¸èº«ãå¤ããã«æåæ°ã®ã«ã¦ã³ããåºæ¥ããã¨ãã訳ã ã ã%ãã®ä»£ããã«ã :10,15s/./&/g ã®ããã«ããã°ãç¹å®ã®è¡éã§ã«ã¦ã³ããããã¨ãå¯è½ãç½®æã«ãããç¯å²æå®ã®ããæ¹ãè¦ãã¦ããã°ããã®ã¾ã¾å¿ç¨ã§ããã ãã¡ããæ¥æ¬èªã¨ã¢ã«ãã¡ããããæ··å¨ãã¦ããããã¹ãã§ãã¡ããã¨åä½ããã
ããããã誰ããããæ·±å¤ã®Webãµã¼ãã£ã³ã¯ã究極ã®ã¨ããæéã®ç¡é§ã§ã¯ãªãã®ãããããªãã ããã¯ãWebã§å¤¢ãã¿ã¦ããã®ã«ã»ããªããªãã®ã ã(T.B=ãªã¼ãWebã®åµæããã) ããããVimå°å ¥ã¡ã¢ã®é£è¼ãæçµåã¨ãªãã¾ããã æå¾ã¯Vimã¹ã¯ãªããã®ç´¹ä»ã§ãã Vimã¯Vimã¹ã¯ãªããã¨å¼ã°ãããã©ã°ã¤ã³ã追å ãããã¨ã§ããã®æ©è½ãæ¡å¼µãã¦ãããã¨ãã§ãã¾ãã ãã®æ¡å¼µæ§ã®é«ããããVimãEmacsãå¤ãã®ããã°ã©ãã«æ¯æãããæ大ã®çç±ã§ããã¨ãããããããé常ã«å¤ç¨®å¤å½©ãªã¹ã¯ãªãããåå¨ãã¦ãã¾ãã ç§ãVimå°å ¥ã«ããããã¦ã§ããæ¸ç±ããã®æ å ±ãåèã«æ²¢å±±ã®ä¾¿å©ãªã¹ã¯ãªãããè¦ã¤ãã¾ããã 以ä¸ãåã¹ã¯ãªããã«ã¤ãã¦ç°¡åã«ç´¹ä»ãã¾ãã Vimã¹ã¯ãªããã®æ¢ãæ¹ Vimã¹ã¯ãªããã¯ãã®ã»ã¨ãã©ãå ¬å¼ãµã¤ãã®Scriptsã®ãã¼ã¸ããé å¸ããã¦ãã¾ãã ãã ãæ²è¼ããã¦ããæ å ±
人éã¨ã¦ã§ãã®æªæ¥ï¼æ§ï¼ ãã¦ã§ãã®æ´å²ã¯äººé¡ã®æ´å²ã®ç¹°ãè¿ããã¨ãã観ç¹ããè²ã åå¼·ãã¦ãã¾ãã2014å¹´ã¾ã§ã®äººéã¨ã¦ã§ãã®æªæ¥ã®æ§ããã°ã§ãã ããã¾ã§ããå¤ãã®è¨äºã«ããã¦ãã¦ãæããKernelã巨大ãªã³ã¼ããèªãã§ãã人ã«ã¨ã£ã¦ã¯å½ããåãªã®ããããã¾ãããããã¾ãã«å¿«é©ã ã£ãã®ã¨ããããã¡ãã¨ããã¦ãªãã£ãäºã«èªæãããã¦è¨äºã«ãããã¨æãã¾ããgrepã¨ãscreenãé§ä½¿ãã¦ããæéãè¿ãã¦ã»ããï¼ å¯¾è±¡è åãLinux大好ããªã®ã§ãLinuxä¸ã§ã®åä½ãåæã«ãã¦ãã¾ãã対象è ã¯Linux KernelãApache HTTP Serverçãæ°ä¸ããæ°åä¸ãããã«ã¯æ°ç¾ä¸è¡ã®ã³ã¼ãããã£ããèªãã§ããããã¨èãã¦ãã人ã«ãããããããã¨æãã¾ãã巨大ãªã³ã¼ããä½ã®ãã¼ã«ã使ããã«èªãã®ã¯ããªããã¤ãã¯ãã§ããããããä»åã¯GNU GLOBALã¨å¼ã°ããã½ã¼ã¹ã³ã¼ãã¿
å æ¥å ¥ããsubversionã使ã£ã¦ã³ãããããéã«æ¯åº¦ã以ä¸ã®ããã«æ³¨æãåããã®ã§ãç°å¢å¤æ°ãè¨å®ãããã¨ã«ããã svn: ç°å¢å¤æ° SVN_EDITOR, VISUAL, EDITOR ã®ã©ããè¨å®ããã¦ããªããå®è¡æã®è¨å®ãªãã·ã§ã³ 'editor-cmd' ãè¦ã¤ããã¾ããç°å¢å¤æ°ãè¨å®ããã«ã¯ä»¥ä¸ã®ãã¡ã¤ã«ãç·¨éããã°ãããããã»ã»ã»ã ã»/etc/profile ã»~/.bash_profile ä»åã¯å ¨ã¦ã¼ã¶ã«ã¨ã£ã¦åæ ãããã®ã§ã/etc/profileãç·¨éããã(æ«å°¾ã«è¿½å ããã) $ vim /etc/profile ã»ã»ã»ã»ã» export SVN_EDITOR=vimãã®å¾ãè¨å®ãåæ ããããã«ã $ source /etc/profileã§ç¢ºèªãã [xxx@xxx ~]$ echo $SVN_EDITOR vim [xxx@xxx ~]$ ããã§è¨å®å®äº
ãVimå®å ¨ãã¤ãã«ãã®ã¡ã¢ã®ç¶ãã§ãã ä»åã¯ããã¹ãã®ç¯å²é¸æãè¦è¦çã«è¡ãã便å©ãªãã¸ã¥ã¢ã«ã¢ã¼ãã«ã¤ãã¦ã¾ã¨ãã¾ãã ãã¸ã¥ã¢ã«ã¢ã¼ãã使ãã¨ãä¾ãã°ããã¹ããç¯å²é¸æãã¦ä¸åº¦ã«åé¤ãã¨ãã£ããã¨ãç°¡åã«ã§ããããã«ãªãã¾ãã ã第6ç« åºæ¬çãªãã¸ã¥ã¢ã«ã¢ã¼ããã®å 容ã¯ä»¥ä¸ã®éãã§ãã ãã¸ã¥ã¢ã«ã¢ã¼ãã¨ã¯ 3ã¤ã®ãã¸ã¥ã¢ã«ã¢ã¼ã ãã¸ã¥ã¢ã«ã¢ã¼ãã®ä¸æ ãã¸ã¥ã¢ã«ã¢ã¼ãã¨ãã¸ã¥ã¢ã«ã©ã¤ã³ã¢ã¼ãã§ã®ç·¨éä½æ¥ ãã¸ã¥ã¢ã«ãããã¯ã¢ã¼ãã§ã®ç·¨éä½æ¥ ãã¸ã¥ã¢ã«ã¢ã¼ãã¨ã¯ ãã¸ã¥ã¢ã«ã¢ã¼ãã¨ã¯ãç·¨éä¸ã®ããã¹ãã®ç¯å²é¸æãè¦è¦çã«è¡ãã¢ã¼ãã®ãã¨ã 以ä¸ã®ãããªãã¡ã¤ã«ããã¡ã¤ã«ç·¨éãã¦ããã¨ãã«ã vãå ¥åãã¦ã«ã¼ã½ã«ã移åããã¨ããã®ããã«ç¯å²é¸æãã§ããã ä¾ãã°ãã®ç¶æ ã§dãå ¥åããã¨ãé¸æç¯å²ã®ããã¹ããä¸åº¦ã«åé¤ãããã¨ãã§ããã 3ã¤ã®ãã¸ã¥ã¢ã«ã¢ã¼ã ãã¸ã¥ã¢ã«ã¢ã¼ãã«
ãã¼ãã«ã¢ã¼ããããã¸ã¥ã¢ã«ã¢ã¼ãã§ãControl-vãã¨æ¼ä¸ããã¨ã ç©å½¢ãã¸ã¥ã¢ã«ã¢ã¼ãã«å ¥ãã¾ãã ç©å½¢ãã¸ã¥ã¢ã«ã¢ã¼ãã«ã¯ãVimã¨ãã£ã¿ã®é常ã®ãã¸ã¥ã¢ã«ã¢ã¼ãã«ã¯ãªãã ç©å½¢ãã¸ã¥ã¢ã«ã¢ã¼ããªãã§ã¯ã®ãããã¤ãã®ç¹å¥ãªç·¨éæ©è½ãç¨æããã¦ãã¾ãã ãã®ãã¼ã¸ã§ã¯ãç©å½¢ãã¸ã¥ã¢ã«ã¢ã¼ããå©ç¨ããç·¨éæ©è½ãç´¹ä»ãã¾ãã (Windows, Mac) æ¦è¦ ãã¼ãã«ã¢ã¼ããããã¸ã¥ã¢ã«ã¢ã¼ã㧠Control-v ã¨æ¼ä¸ããã¨ã ç©å½¢ãã¸ã¥ã¢ã«ã¢ã¼ãã«å ¥ãã¾ãã ç©å½¢ãã¸ã¥ã¢ã«ã¢ã¼ãã«ã¯ãVimã¨ãã£ã¿ã®é常ã®ãã¸ã¥ã¢ã«ã¢ã¼ãã«ã¯ãªãã ç©å½¢ãã¸ã¥ã¢ã«ã¢ã¼ããªãã§ã¯ã®ãããã¤ãã®ç¹å¥ãªç·¨éæ©è½ãç¨æããã¦ãã¾ãã ãã®ãã¼ã¸ã§ã¯ãç©å½¢ãã¸ã¥ã¢ã«ã¢ã¼ããå©ç¨ããç·¨éæ©è½ãç´¹ä»ãã¾ãã
[viã®åºæ¬æä½] Copyright (C)1998,Moritaka Ogasawara. All Rights Reserved. (注) ^F 㯠[Ctrl]+[F] ãæå³ãã¾ãã 1. éå§/çµäº (1)éå§ # vi <ãã¡ã¤ã«å> (2)çµäº/ä¿å :wq ... ä¿åãã¦çµäº :q ... ä¿åããªãã§çµäº :q! ... ä¿åããªãã§å¼·å¶çµäº :w ... ä¿åãã¦ãviã¯çµäºããªã [åè] :w >>ãã¡ã¤ã«å ... æ¢åãã¡ã¤ã«ã«è¿½å æ¸ã込㿠2. å ¥å viã«ã¯ [å ¥åã¢ã¼ã]ã¨[ã³ãã³ãã¢ã¼ã] ãããã¾ãã (1) ã³ãã³ãã¢ã¼ã => å ¥åã¢ã¼ã i ... ç¾å¨ã®ã«ã¼ã½ã«ä½ç½®ã«æ¿å ¥ a ... ç¾å¨ã®ã«ã¼ã½ã«ä½ç½®ã®æ¬¡ã«æ¿å ¥ o ... è¡ãã«ã¼ã½ã«ä¸ã«è¿½å O ... è¡ãã«ã¼ã½ã«ä¸ã«è¿½å (2) å ¥åã¢ã¼ã â ã³ãã³ãã¢ã¼ã [Esc] (3)
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}