See related links to what you are looking for.
See related links to what you are looking for.
詳ããã¯ã [2007-07-29-1] ãããããã ããã vimã¯ãtextwidthã§è¨å®ãããåã ãæåãå ¥åãããã¨ãèªåçã«æ¹è¡ããã¦ããã¾ããããã¯ã便å©ã§ãããã¾ãããåæã«æ¹è¡ãå ¥ãã¦ãã¾ãã®ã§ãæ¹è¡ããããªãè¡ã§ããæ¹è¡ãã¦ãã¾ã£ã¦ã使ãã«ããã±ã¼ã¹ãããã¾ãã ãã®èªåæ¹è¡ã®è¨å®ã¯ãformatoptionsã§æ示ãããã¨ãã§ãã¾ãã formatoptionsã®å¤ã¯ããã©ã«ãã§ãtcqã¨ãããã¨ã«ãªã£ã¦ãã¾ãã è¨å®å¤ æå³ t èªåçã«textwidthã使ã£ã¦textãæ¹è¡ c èªåçã«textwidthã使ã£ã¦ã³ã¡ã³ããæ¹è¡ãèªåçã«ã«ã¬ã³ãã®ã³ã¡ã³ãleaderãèªåçã«æ¿å ¥ãã¾ãã r æ¿å ¥ã¢ã¼ãã§æ¹è¡ããã¨ãã«ç¾å¨ã®ã³ã¡ã³ãã®leaderãèªåçã«æ¿å ¥ãã¾ãã o ãã¼ãã«ã¢ã¼ãã§oãOãæ¼ããã¨ãã«ç¾å¨ã®ã³ã¡ã³ãã®leaderãèªåçã«æ¿å ¥ãã¾ãã q
ããã«ã¡ã¯ãæ¾å±±éçºé¨ã®ç¢éã§ãã ä»åã¯ãæ¾å±±éçºé¨ã¨Vimãã¨ãããã¼ãã§ãéããã¾ãã æ¾å±±éçºé¨ã§ã¯ ãµã¤ãã¦ãº Office ããã¡ã¼ã«ã¯ã¤ãºã¨ãã£ã製åãéçºãã¦ãã¾ãã æãè¨èªã¯ä¸»ã« C++, HTML, CSS, Javascript ã§ãã CGIé¨åã®ã³ã¼ãã£ã³ã°ã«ã¯ Visual Studio ã使ã£ã¦ããã®ã§ããããã¡ã¤ã«ã®ç·¨éæ¹æ³ã«ç¸ãã¯ãªãã®ã§ãåå人ã§ä½¿ã£ã¦ããã¨ãã£ã¿ã¯éãã¾ãã 常ç¨ãã¦ããã¨ãã£ã¿ã«ã¤ãã¦ã¤ã³ã¿ãã¥ã¼ããã¨ãããç§ä¸¸ãSakura EditorãgPadãMeryãNotepad++ãªã©ãªã©ãå®ã«å½éè²è±ããªçµæã¨ãªãã¾ãããã¡ãªã¿ã«ããã¹ã¦ã Visual Studio ã§ç·¨éããã¨ããçè ããã¾ãã ãªãã¨æ¾å±±éçºé¨ã«ã¯ Vim ã常ç¨ãã¦ããã®ã¯äºäººãããã¾ããã å¤æ§ãªæ¥åã®é½åä¸ãLinuxã«è§¦ããæ©ä¼ãããã¨ããã®ã«ãããã§
[Aï¼B]ã¯åæã«æ¼ä¸ã [Aã»B]ã¯Aã«ç¶ãã¦Bãæ¼ä¸ã ãã®ä¾ã¯ãCTRLã¨wãåæã«æ¼ä¸ãCTRL-wãé¢ãã¦jãæ¼ä¸ã (ä½ãCTRL+wã»jã¯ãjããCTRLãæ¼ããã¾ã¾ã§ãOKãªããã )
vimãã¯ããã¯ãã¤ã欲ããã®ã§ãããã©ãã«è¡ã£ã¦ãç½®ãã¦ã¾ããããããªã«å£²ãã¦ããããªãã§ããããã vimã使ãå§ãã¦æ©1å¹´ãã¨ãã£ã¦ãã»ã¨ãã©ã³ã¼ãæ¸ããªãããããã¾ã使ã£ã¦ãªãã®ã§ãããã³ãã³ãã«ãããç¨åº¦æ £ããvimrcãã¡ãã£ã¨ããããããã«ãªã£ã¦ããã®ã§ä»æ´ãªãããã©ã°ã¤ã³ã¨ãããããã¦ã¿ãããã¨æã£ãããã§ããã¾ãã vimã®ãã©ã°ã¤ã³ã¦ï¼ vimã«ãã©ã°ã¤ã³ãå ¥ãããã訳ã§ãã ä¾ãã°ã1ã¶æã»ã©åã®æ¥è¨ã§æ¸ããããã¹ããªãã¸ã§ã¯ãã«å¯¾ããç·¨éãããå¼·åããsurround.vimããæ¸ããã³ã¼ãããã®å ´ã§ããã«å®è¡ãã¦çµæãå¾ãããvim-quickrunããã¡ã¤ã©ã»ã©ã³ãã£ã¨ãã¦ã®unite.vimãªã©ãå¤ãã®ä¾¿å©ãªãã©ã°ã¤ã³ãããã¾ãã ãããã®ãã©ã°ã¤ã³ãå ¥ãããã¨ã«ãã£ã¦ãããªãã®vimãããå¼·åãªããã¹ãã¨ãã£ã¿ã«é²åãããã¨ã§ãããã ãã¨ããã©ã°ã¤ã³ããã
ååããªãã¹ãè¦ããªãã§ä½¿ããããã«ãªããï¼ã¨æ¨¡ç´¢ãã¦ãããããã£ã¦ãããã¡ã«å ¨é¨è¦ããããªã£ã¦ãã¾ã£ã...ãviããã³vimã¯ãã¨ã¦ã¤ããªãããã³ã·ã£ã«ãåãã¦ãããã¨ãã調ã¹ãã»ã©ã«ã²ãã²ãã¨æãããviã®éåã«ããã£ãæããããããã¨ã¦ããããªããå ¨é¨ç¶²ç¾ ã§ããªã...ã ãã¦ã³ãã¼ãï¼UTF-8ãªviã§éãç¨ï¼ #### ãã®è¡¨ã®ç¨ä¾ esc = escãã¼ â = enterãã¼ space = ã¹ãã¼ã¹ãã¼ tab = tabãã¼ delete = deleteãã¼ ctrl-x = controlãã¼ãæ¼ããªãã x ãæ¼ã option-x = optionãã¼ãæ¼ããªãã x ãæ¼ã command-x = commandãã¼ãæ¼ããªãã x ãæ¼ã fn-x = fnãã¼ãæ¼ããªãã x ãæ¼ã Aã»B = ãAãããã¯Bãã®æå³ãä¼¼ãæ©è½ã1è¡ã§ä½µè¨ããæã«ä½¿ã #
ã¯ããã« ææã®ã¨ãã£ã¿ãVimã åã¯ãã®éã¾ã§ãã£ã¨ãµã¯ã©ã¨ãã£ã¿ãæç¨ãã¦ãã¾ããããæè¿Vimã使ãããã«ãªãã¾ããã ãããVimã§ãããã®Vimã§ããViã§ããããã©ã Vimã»ã»ã»ä½¿ãããªãã¦ãã人ã¯ããã ãã§ç人ã£ã½ãè¦ãããä¼èª¬ã®ã¨ãã£ã¿ã å®éã«Vimã使ãã°ããã¾ããã¹ãã¼ãã®ã³ã¼ãã£ã³ã°ãå¯è½ã«ãªãã(ããã) ããããããªæ§ãã ãã§æãåºãã¦ã大åã®æè¡è ã¯å ¨ãæã«è² ãããããã«å°»å°¾ãå·»ãã¦å ã®ã¨ãã£ã¿ã«èãæ»ã£ã¦ãã¾ãææã®ã¨ãã£ã¿ã ãããVimã§ããã ã»ã»ã»ã¯ããåã®ä¸ã§VimãViã®ã¤ã¡ã¼ã¸ã¯ãããªæãã§ããã å®éãUnix/Linuxãã·ã³ã®ã¿ã¼ããã«ä¸ã§ä½åº¦ã(ãããã)使ã£ããã¨ãããã¾ããããã¾ãæ±ãã«ããã®ãªãã®ã£ã¦ã ãã«ã¼ã½ã«ã¯ååãã¼ã§åããã©ãã©ããã£ã¦å ¥åããã®ï¼ ã ããã£ï¼ "i"ãæ¼ãï¼ ã ãå ¥åãçµãã£ããESCï¼ ãªãã§
vimã使ãå§ãã¦æ«ãçµã¤ã®ã ãããªããªãåå¿è ã¬ãã«ãæããããªãã ãããããã£ããvimã使ã£ã¦ã¿ããã¨æãã èããã¨ãããdotfiles(.vimrcãªã©)ã¯githubã§ç®¡çããã¨ä¾¿å©ãããã ã¾ããvimã®pluginã¯vundleã§ç®¡çããã®ããã¦ããããã ä»åã¯ãã®äºã¤ãå®éã«è¡ã£ã¦ã¿ãã ãªããdotfilesã¯Windowsã¨Macã§å ±æããã ç®æ¬¡ ã»vundleã¨ã¯ ã»ç®çã¨æ¹é ã»dotfilesã®ç®¡çã¨vundleã®å°å ¥ ã»vundleãå©ç¨ãããã©ã°ã¤ã³ã®ã¤ã³ã¹ãã¼ã« vundleã¨ã¯ ãããããvundleã¨ã¯ä½ãã ç°¡åã«è¨ãã¨ãvimã®pluginã管çããpluginã§ããã Rubyã®Bundlerã«å½±é¿ãåããããããï¼å人çã«ããããã¤ã³ãé«ãã£ããï¼ ç¹å¾´ã¯ãpluginã.vimrcã§ç®¡çãããã¨ã .vimrcã«å¿ è¦ãªæ å ±ãæ¸ãã¦ãã
viã§ã®ç½®æã¯:sã³ãã³ãã使ç¨ãã¾ãã :%s/ç½®æåã®æåå/ç½®æå¾ã®æåå/gãã§éãã¦ãããã¡ã¤ã«å ¨ã¦ã«ããã¦ç½®æããã¾ããç½®æããããã©ããã確èªãããå ´åã¯ä»¥ä¸ã®ããã«cãã¤ãã¾ãã ï¼%s/ç½®æåæåå/ç½®æå¾æåå/gc ãã¹åãªã©ãå¤æ´ããéã«ã¯/ãåºåãæåã«ä½¿ãã®ã§ã¯ãªãã;ãªã©ãåºåãæåã«ä½¿ãã¨ä¾¿å© %s;/var/home;/home;gc æç« å ¨ä½ã§ãªããç¹å®ç¯å²ã®ã¿ç½®æãããå ´åã¯ç½®æãããè¡ã®ç¯å²ãæå®ããã°ããã [ä¾] - 63è¡ç®ãã79è¡ç®ã¾ã§ã§beautyãhairnailã«ä¸æ¬ç½®æ :63,79s /beauty/hairnail/g ãããã³ã°ãå©ç¨ããç½®æã¯æ£è¦è¡¨ç¾ã使ãã¾ãã [ä¾] :s /$\(.*\)/$form->{'\1'}/g ãããããé¨å\(.*\)ã¯\1ã«å ¥ãã®ã§ãä¾ãã°$certCompanyEngã¯$form->{'
Vimãã¯ããã¯ãã¤ãã«ã¯æ¢ã«Vimã¨ãã£ã¿ãå©ç¨ãã¦ãã人åãã«ããããªãä½æ¥å¹çã®æ¹åãè¡ãããã®ææ³ããã©ã°ã¤ã³ãªã©ã®è§£èª¬ã150ã®Tipsã¨ãã¦ç´¹ä»ããæ¬ã§384ãã¼ã¸2980åã§ãæè¡è©è«ç¤¾ãã9æä¸æ¬çºå£²äºå®ã§ãã ãVimãã¯ããã¯ãã¤ãã«ãä½æ¥å¹çãã«ã¤ã¼ã³ãã150ã®æãã®æ¦è¦ Vimãã¯ããã¯ãã¤ãã«ãå·çãã¾ããã Vimãã¯ããã¯ãã¤ãã«ã¯æ¢ã«Vimã¨ãã£ã¿ãå©ç¨ãã¦ãã人åãã«ããããªãä½æ¥å¹çã®æ¹åãè¡ãããã®ææ³ãã ãã©ã°ã¤ã³ãªã©ã®è§£èª¬ã150ã®Tipsã¨ãã¦ç´¹ä»ããæ¬ã§ãã ããããæ¬ãµã¤ããè¦ã«æ¥ã¦é ãã¦ããæ¹ãªãã°ãã¡ããã©è¯ãæ¬ã«ãªã£ã¦ãã¾ãã æ³å®èªè Vimã¨ãã£ã¿ãå©ç¨ãã¦ãããã©ãããã«è²ã ç¥ãããæ¹ Vimã¨ãã£ã¿ã®åºç¤ã®å ãç¥ãããæ¹ Emacsãã¯ããã¯ãã¤ãã«ãèªãã§ãVimçEmacsãã¯ããã¯ãã¤ãã«ã欲ãããªã£ãæ¹ ã¡ãã£ã¨ã ã
ä»åã¯ããããVimã®è¨å®ãã¡ã¤ã«ã®è§£èª¬ã«å ¥ãã¾ããåºæ¬çãªè¨å®é ç®ã¨ãã使ãè¨å®é ç®ã«ã¤ãã¦èª¬æããå¾ã«ãããã¤ããµã³ãã«ããè¦ããã¾ãï¼ç·¨éé¨ï¼ è¨å®ãã¡ã¤ã«æ¬¡ç¬¬ã§èªç±ã«åä½ãå¶å¾¡ã§ãã ããã¾ã§ãVimã®æ¨æºçãªæä½æ³ã解説ãã¦ãããååã¾ã§ã«èª¬æããæä½æ³ããã¹ã¿ã¼ããã°ãä¸èªç±ãªãVimã§ããã¹ãç·¨éãã§ããã ãããããããVimãç価ãçºæ®ããã®ã¯ãã¦ã¼ã¶ã¼ãèªåã®å¥½ã¿ã«åããã¦åä½ãã«ã¹ã¿ãã¤ãºããã¨ãã ã Vimã¯æ¬å½ã«ãã¾ãã¾ãªé¨åã®åãæ¹ãèªç±ã«è¨å®ã§ãããèªåããã¤ãç·¨éãã¦ãããã¡ã¤ã«ããããå©ç¨ããæä½ã便å©ã«ããããã«ãé©ãã»ã©èªç±ã«è¨å®ãå¤æ´ã§ããã®ã ã è¨å®ãå¤æ´ããã«ã¯ãè¨å®ãã¡ã¤ã«ãç¨æãããMac OS XãLinuxãFreeBSDãªã©ã®UNIXç³»ã®OSã«åããVimã¨ãWindowsåãã®Vimã¨ã§ã¯ãè¨å®ãã¡ã¤ã«ã®ååãç°ãªãã®ã§æ³¨æãå¿ è¦ãUN
å½ç¶ãã¿ã¼ããã«ã®ããã³ããã«ã¯è¡¨ç¤ºããã¦ã¾ãããï¼zshãªãvcs_infoã¨ã使ãã°ããã§ãããã§ã¯ãVimã¯ã©ãã§ããï¼å種gitæä½ã¯Vimããããªãã£ã¦ï¼çããçãã git ã® branch ã vim ã®ã¹ãã¼ã¿ã¹ã©ã¤ã³ã«è¡¨ç¤º - #çåæ¦ç¥ ããã㯠- subtech 2008å¹´3æã®ã¨ã³ããªã§ããã大å¤ããã§ãããã§ãä»ãªãç°¡åã§ãï¼fugitive ã使ãã°ãããã§ãï¼ï¼ ã®ããã®ããªVimmerã«ã¯ãã£ããã馴æã¿ãããããªãfugitiveã§ããããèªä½ã¯ VimmerãªGit使ãã¯fugitive.vimãä»ããå ¥ããã»ãããã - SELECT * FROM life; ã Vim-users.jp - Hack #219: Gitã使ã2 â Fugitive.vim ãããã詳ããã§ãã :Gstatusããã®stage/unstageã便å©ããã¾ããï¼
6/18 ã«éå¬ãããéçºç°å¢åå¼·ä¼ in Nagoya #1㧠CI ã£ã½ã話㨠Vim ã®è©±ããã¦ãã¾ããã CIã®ãã®å 㸠View more presentations from bleis tift Vimåå ¥é View more presentations from bleis tift @kei10in / Vim çµæ§ã±ãªããï¼ä½¿ããªããã©ï¼ #devstudy @sunflat / Vim奥ãæ·±ã #devstudy @kaizen_nagoya / vimé·å¹´ä½¿ã£ã¦ãããã使ã£ã¦ããªãæ©è½ãè¦ãããã#de... @fate_fox / Vimã®ãã¨ãããã«å¥½ãã«ãªã£ã #devstudy @youku_s / 家ã«å¸°ã£ããvimãã©ã°ã¤ã³ããããã試ãããè£å®ç³»ããã... Emacs 使ãã®äººã«ã Vim ã®ããã¨ãããä¼ãããã¨ãã§ããã®ã¯ããã£ãã§ããã ã¡ãª
ããã«ã¡ã¯ãå°å·ã§ãã ä»æ¥ã¯vimã®ã³ãã³ãã§ãç´¹ä»ãããããªã¨æãã¾ãã åã¯ããã¹ãã¨ãã£ã¿ã¯å¤§ä½vimã使ã£ã¦ãã¾ãã å·çãããã¨ããvimã§ãã£ã¦ãã¾ããããPHPãvimã§æ¸ãã¦ãã¾ãã vimã£ã¦è²ã ã³ãã³ãããã£ã¦ä¾¿å©ã§ããããåéã¨vimã®ã³ãã³ããæããã£ãããã¦ã度ã ããããªä¾¿å©ãªã³ãã³ããããã®ãï¼ãã¨é©ãããã¾ãã ä»æ¥ã¯ãããªvimã®ã³ãã³ãã®ä¸ããæ®æ®µä½¿ã£ã¦ãã¦ä¾¿å©ã ãªã¼ã¨æããã®ãããã¤ãç´¹ä»ãã¦ããã¾ãã ã¡ãªã¿ã«Shiftãæ¼ããªããã®ã³ãã³ãã¯ãã¢ã«ãã¡ããããã¼ã®å ´åã¯å¤§æåã§è¡¨è¨ãã¾ãã ã¨ã³ã¿ã¼ãã¨ã¹ã±ã¼ããæ¼ä¸ããå¿ è¦ãããå ´åã¯ã¨ã³ã¿ã¼ãã¨ã¹ã±ã¼ãã¨è¨è¿°ãã¾ããã:ãã§ã¯ãã¾ãã³ãã³ãã¢ã¼ãã¯ã¨ã³ã¿ã¼ãæ¼ããªãã¨æå³ããªãã®ã§ãããã¯çç¥ãã¾ãã åææ¼ãã¯+ã§ã¤ãªãã¦è¡¨è¨ããåºæ¬çã«ã¯1æåãã¤é çªã«æ¼ä¸ãã¾ãã â ãã¼ã¸ç§»å ãggã§ã
Mac ã§ãå¿«é©ã« vim7 ã使ããããã«ãªãï¼vim7 ãã㯠unicode ãµãã¼ããæ¹åããã¦ããã¨ã®ãã¨ãªã®ã§ï¼ãããæ©ã« vim ã®ããã©ã«ãæåã³ã¼ãã UTF-8 ã«ãã¦ã¿ãï¼ vim ã®æåã³ã¼ãè¨å®ã¯å°ãè¤éã§ï¼ãã¾ã«ééã£ã¦è§£èª¬ãã¦ãããã¼ã¸ãè¦ãããã®ã§ï¼ä»¥ä¸ã«ã¾ã¨ãã¦ã¿ããï¼ ã¾ãæåã³ã¼ãè¨å®ã«é¢ä¿ãããªãã·ã§ã³ã¯ï¼ 'encoding' (ç縮å 'enc') 'fileencoding' (ç縮å 'fenc') 'fileencodings' (ç縮å 'fencs') ã®3ã¤ï¼fenc 㨠fencs ã¯ååãç´ããããããã®ã§æ³¨æï¼ vim 㯠'enc' ã§æå®ãããæåã³ã¼ããããã©ã«ãã¨ãï¼ãã¡ã¤ã«ãéãæã« 'fencs' ã§æå®ãããæåã³ã¼ãããé çªã« 'enc' ã®æåã³ã¼ãã¸å¤æã試ã¿ï¼æåããã¨ããã§ãããï¼å ¨é¨å¤±æãããå¤æããã«
èµ·å viã[ãã¡ã¤ã«å ...ï¼½ æå®ããããã¡ã¤ã«ãç¡ãå ´åã¯æ°è¦ä½æã¢ã¼ãã¨ãªãããã¡ã¤ã«åã«ã¯ã¯ã¤ã«ãã«ã¼ã('*', '?'ãªã©ï¼ã使ç¨å¯è½ã ã¢ã¼ã
2011-08-13è¿½è¨ æè¿ã®vim pluginã®ç®¡çã«ã¯vundleãããããã http://vim-users.jp/2011/04/hack215/ .vimrcãªã©ã®dotfilesèªä½ã®ç®¡çã«ã¯ä»¥ä¸ã®æ¹æ³ãæç¨ã ã¨æãã¾ãã ãã®è¨äºã§ã§ããããã«ãªãã㨠- Windows, Linuxç°å¢é, ã¾ãã¯å®¶, ä¼ç¤¾éãªã©ã§vimè¨å®ã®å ±æãå¯è½ã«ãªãã¾ãã - 転è·ã,æ°ããPCãè²·ã£ãã¨ããªã©ã®vimç°å¢è¨å®ããã£ã¨ããéã«çµããã¾ãã (vim installã¯å«ã¾ãªããã°5åç¨åº¦?) ãã®è¨äºã®ä¸»é¡ã¯ - pathogen.vim - githubã¨git(git submodule) ã§ãã - pathogen.vimã®æ©è½ã«ãã£ã¦ã.vim以ä¸ã綺éºã«ãã - githubã¨git submoduleã使ã£ã¦ç½®ãã¦ãããã¨ã§.vim以ä¸ãwebä¸ã§ç®¡çãã ã®äº
01. vimã¹ã¯ãªããã§Hello World â ä½è : å°è¦ æ â æçµå¤æ´ 2012å¹´01æ09æ¥ 03æ35å 02. vimã¹ã¯ãªããã®åºæ¬ â ä½è : å°è¦ æ â æçµå¤æ´ 2012å¹´01æ09æ¥ 04æ08å 03. å¤æ° â ä½è : å°è¦ æ â æçµå¤æ´ 2012å¹´01æ09æ¥ 04æ08å 04. å¤æ°ã®æä½ â ä½è : å°è¦ æ â æçµå¤æ´ 2012å¹´01æ09æ¥ 04æ08å 05. å¤ã®æ¯è¼ â ä½è : å°è¦ æ â æçµå¤æ´ 2012å¹´01æ09æ¥ 04æ08å 06. å¶å¾¡æ§é â ä½è : å°è¦ æ â æçµå¤æ´ 2012å¹´01æ09æ¥ 04æ08å 07. ã¨ã©ã¼å¦ç â ä½è : å°è¦ æ â æçµå¤æ´ 2012å¹´01æ09æ¥ 04æ08å 08. å¦çã®å¼åº â ä½è : å°è¦ æ â æçµå¤æ´ 2012å¹´01æ09æ¥ 04æ08å 09. æååæ
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}