Make a note of it: Web tech, montaineering, and so on. Note: ãã®è¨äºã¯ã3年以ä¸åã«æ¸ããã¦ãã¾ããWebã®é²åã¯éãï¼æ å ±ã®æ£ç¢ºæ§ã¯èªå·±è²¬ä»»ã§å¤æãã¦ãã ããã Vimã®æ£è¦è¡¨ç¾ãã¾ã¨ãã¦ã¿ã¾ãããVimã®æ£è¦è¡¨ç¾ã¯ââåºæ¬çã«ã³ãã³ãã¢ã¼ãã§ä½¿ããããââãããã¨ã¹ã±ã¼ããå¤ãã£ãããã¦ãã¡ããã¨ç¬ç¹ã§ããã¾ããæ¡å¼µæ£è¦è¡¨ç¾ã使ããªãã®ã§ãPerlã®ããªã§æ¸ãã¨ãããããã¾ããã以ä¸ãæ¤ç´¢ã«é¢ãããããªãªãã·ã§ã³è¨å®ã :set wrapscan
vim ã® text-object ããã便å©ã«ä½¿ãããã©ã°ã¤ã³ - surround.vim ããã«ããæãã§ç´¹ä»ããã¦ããã ãã©ãããã¯ãããã³ã便å©ã vim7.0ããå®è£ ãããã£ã¦ããtext-objecté¢é£ã®æ©è½ã¨ä½µãã¦ããªããªãã³ãã³ããè¦ããããªããã§èªåãªãã«ã¾ã¨ãã¦ã¿ãã vim text-object é¢é£æä½ï¼å«ãsorround.vim åºæ¬ã¯å¼æ°ï¼ã£ã¦è¨ã£ã¦ããã®ããªï¼ï¼3ã¤ã§æä½ è¡ãããæä½ãç¯å²ã対象ã®è¨å· d(delete),y(yank),c(change),v(view mode?ç¯å²ãé¸æã§ãã) ãªã©ã®ãã¨ã« .i(inside), ,a(all)æ¼ã㦠.ç¯å²' ã¨ã " , ( ãªã© ï¼ãã㧠t ãæ¼ãã¨ãxmlã¿ã°ã®æä½ãå¯è½ ex. di" "ã®ä¸ãåé¤ (Delete Inside " ci" "ã®ä¸ãåé¤ãã¦insetr modeã«
Note: ãã®è¨äºã¯ã3年以ä¸åã«æ¸ããã¦ãã¾ããWebã®é²åã¯éãï¼æ å ±ã®æ£ç¢ºæ§ã¯èªå·±è²¬ä»»ã§å¤æãã¦ãã ããã @hamashunã«ä»ããæ§ãããã£ããåã«åºãã¨è¨ãã¤ã¤ã伸ã°ã伸ã°ãã«ãªã£ã¦ããã¿ãæä¸ãã¦ã¿ã¾ããããã¾ãå¼ã£ã¦ãªããã©ãã ã¾ã軽ãç´¹ä»ãVimã¯viããæ´¾çããããã¹ãã¨ãã£ã¿ã§ãç¹ã«UNIXç³»OSï¼LinuxãMacï¼ã§ã¯Emacsã¨ä¸¦ãã§åºã使ç¨ããã¦ããã¨ãã£ã¿ã§ããããã°ã©ãã«ãã£ã¦éçºãããããã°ã©ãã®ããã«ã¨ãã£ã¿ã§ãããå ¨ã¦ã®æä½ããã¼ãã¼ãããè¡ãããã¨ãç¹å¾´ããªãåºæ¬çãªæä½æ¹æ³ã¯æåå³åã§ãããVim åºæ¬æä½ã¾ã¨ãããåç §ã®ãã¨ã ãã§ãã.vimrcãã¨ããè¨å®ãã¡ã¤ã«ãââãã¼ã ãã£ã¬ã¯ããªãªããexeãã¡ã¤ã«ã®ãããã©ã«ããªãã«ââç¨æãã¦ãããã¨ã«ãã£ã¦ã好ããªããã«æ¡å¼µãã¦ä½¿ã£ã¦ããããã§ããç¡ããã°åç´ãªViäºæã¢ã¼ãã¨ãã¦åãã¾ã
ããããã誰ããããæ·±å¤ã®Webãµã¼ãã£ã³ã¯ã究極ã®ã¨ããæéã®ç¡é§ã§ã¯ãªãã®ãããããªãã ããã¯ãWebã§å¤¢ãã¿ã¦ããã®ã«ã»ããªããªãã®ã ã(T.B=ãªã¼ãWebã®åµæããã) ãWebå±ã®ããã®Vimè¨å®ã»Tipsã¾ã¨ã 1/2ãããã®ç¶ãã Vimã使ã£ãHTMLã¨CSSã®ç·¨éã«ã¤ãã¦ãããã«é¢ä¿ããããªäºé ãç´¹ä»ãã¾ãã HTMLç·¨éã§ããã使ãVimåºæ¬æ©è½ =ãã¼ã§èªåã¤ã³ãã³ã HTMLã®ã¤ã³ãã³ããå´©ãã¦ããã¨ãã¯ãç¯å²é¸æãã¦=ãã¼ãæ¼ãã°ãèªåçã«ã¿ã°ã®å ¥ãåãèªèãã¦ã¤ã³ãã³ã調æ´ããã¾ãã ã°ãã°ãâç¯å²é¸æâã=ãã§ãã£ãã ã«ã¬ã³ãè¡ã ãã¤ã³ãã³ã調æ´ãããå ´åã¯ãã¼ãã«ã¢ã¼ãã§==ã¨ããã°å¯è½ã§ãã ãªããæåã§ã¤ã³ãã³ããä¸ãä¸ãããã«ã¯ããã¼ãã«ã¢ã¼ãã§ã¯>ã¨<ãã¤ã³ãµã¼ãã¢ã¼ãã§ã¯<C-t>ã¨<C-d>ã使ãã¾ãã gfã§ç¸å¯¾ãã¹ã®ãªã³ã¯å ãã¡ã¤ã«ãé
Comments» 1. æ¬æ¥ã®Twitter 2009-01-18 | memoMania - 2009-1-19 [â¦] Webå±ã®ããã®Vimè¨å®ã»Tipsã¾ã¨ã 1/2 - ãã¬ãã¸ã¨ã¼ã¹ http://blog.blueblack.net/item_340 # [â¦] 2. ã²ã¹ã - 2009-1-19 (ãã ãç§ã®ç°å¢ã ã¨ãã¾ã«ãå®è¡æã«DOSçªãæ®ã£ã¦ãã©ã¦ã¶ãéããã¾ã§ãã¡ã¤ã«ãç·¨éä¸è½ã«ãªãç¾è±¡ãçºçãã¾ãããªãã ããã) firefoxã®åã«startãå ¥ããã¨ã©ãã§ãããï¼ 3. nase - 2009-1-19 ãããã¨ããããã¾ãï¼åä½ç¢ºèªã§ãã¾ãããããããªDOSçªãéããªããªã£ã¦ãããæãã§ããæ¬æãä¿®æ£ããã¦ãããã¾ããã 4. sasata299's blog - 2009-2-6 vimç°å¢ãæãã¦ã¿ã⦠ãããªãã§ãããåã¯viæ´¾ã§ããemacsã¯ã»
lessãmoreãªã©ããã¹ããè¦ãããã ãã®ãã¼ã«ãããµã¼ã管çã«æ¬ ãããªãéå ·ç®±ã®ä¸ã®éå ·ã®ä¸ã¤ã§ãããã表示ãå³æ°ãªãã¨æãã¾ããï¼ãããã§ãããæ®æ®µä½¿ã£ã¦ããvim(ä»ã®ã¨ãã£ã¿ä½¿ãã®ã¿ãªããæ¸ã¿ã¾ããï¼ï¼)ã¨åãããã«ãè¡çªå·è¡¨ç¤º&ã·ã³ã¿ãã¯ã¹ãã¤ã©ã¤ãã§ãããâ¦ï¼(æ®éã®lessã§ãè¡çªå·è¡¨ç¤ºã¯åºæ¥ã¾ã) vimã«ã¯ãããªããvimã使ã£ã¦æéãã§æ¸ãè¾¼ãã§ãã¾ãã®ã¯é¿ããããã©ãlessã®å³æ°ãªã表示ããªãã ãããªã²ã¨ã®çºã®ãã¯ããå梱ããã¦ãã¾ãã ã§ã¯ä½¿ãæ¹ã説æãã¾ããã¾ãããã®ãã¯ãã®ä½ç½®ã調ã¹ã¾ãã debian% locate less.sh /usr/share/vim/vim70/macros/less.sh less.shã®ããã¢ãã¬ã¹ãè¦ã¤ããããaliasãè¨å®ãã¦ããã¨è¯ãã§ããããæ¨æºã®lessãæ®ãã¦ããããå ´åã¯ãvlessãªã©å¥ã®ååã«ããã°å
vimã¯ä½¿ãããªãã¦ãã人ã¯è¶ 人ã®ããã«ä½¿ãããªãã¦ããã®ã§ãããããã¾ã«confãã¡ã¤ã«ãããæã ã使ãããã¾ããæ®æ®µã¯emacsã ãã©ããã¨ãã人ã¯ãviæ代ã®æ©è½ã®ã¿ä½¿ã£ã¦ããã®ããã¾ã«è¦ããã¾ãã ããã§ãéã¶ã£ã¦æ縮ãªã®ã§ãããåãæ®æ®µvimã使ã£ã¦ãã¦ã¨ã£ã¦ã便å©ã§å¹çãä¸ããã¨æãæä½ãç´¹ä»ãããã¨æãã¾ããã¾ããåèªèº«ã Mac OS X ãªç°å¢ãªã®ã§ããå¤é¨ã³ãã³ãã¨ã®é£æºããªã©ã§Windowsã ã¨åç¾ã§ããªããã®ãããããããã¾ãããããããªããã ç¨èªã®ä½¿ãæ¹ãç解ãééã£ã¦ããé¨åãããããããã¾ããããã®å ´åã¯ãææããã ããã°ã¨æãã¾ãããã¨ããããæããã¡ãé§ç®ã§ããï¼ãã¿ãããªã®ãããã°ã¢ããã¤ã¹ãé¡ããã¾ããã ããã§ã¯ã [ãã¨ã§èªã] vimã®åºæ¬æä½ ï¼ç¥ã£ã¦ããã¨æãã®ã§çç¥ï¼ è¶ æ¦ç¥ æ¿å ¥ã¢ã¼ãã¨ç·¨éã¢ã¼ã ãã¼æä½ å 容 i æ¿å ¥ã¢ã¼ãçªå ¥ï¼æ
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}