Vim Advent Calendar 2012ã268æ¥ç®ã®è¨äºã«ãªãã¾ãã æ¥æ¬å ¨å½3å人ã®Vimmerã®ã¿ãªããããã«ã¡ã¯ãæè¿.vimrcã1ããæ¸ããªããã¦ããã¨åã®ç§ã§ããããã§ãä»åã¯ããããæµNeoBundle管çè¡ããä¼ããã¦è¡ãã¾ãããã è¨äºã®å¯¾è±¡ NeoBundleã«é¢ããåºæ¬çãªç¥èãããããNeoBundleLazyãå©ç¨ããã¦ããæ¹ã³ã³ã»ããã³ã³ã»ããã¯ããã©ã°ã¤ã³ç®¡çã¨ãã©ã°ã¤ã³è¨å®ãåé¢ããããã§ãã å ·ä½çã«ã¯ãNeoBundleåã³NeoBundleLazyã³ãã³ãã®ãªãã·ã§ã³ã¯ãä¾åé¢ä¿ããã«ãã³ãã³ããªã©ã®ããã©ã°ã¤ã³ã®ã¤ã³ã¹ãã¼ã«æ¹æ³ã»ç®¡çæ¹æ³ãã¨ãã£ããã®ã«çµããautoloadã®è¨å®ããã©ã°ã¤ã³èªã¿è¾¼ã¿æã®è¨å®ã¯åºæã®ã»ã¯ã·ã§ã³ã§ç®¡çãã¦ããã¾ãã ããã«ããããã©ã°ã¤ã³ãªã¹ãã®è¦éãããããªãã¾ãããã¾ãè²ã 便å©ã«ãªãã¾ãã è¨å®ä¾ï¼ï¼ï¼ï¼
Effective NeoBundle -- autoloadé¢æ°ãç解ãNeoBundleã使ãããªãããã®8ã®æ¹æ³ --Vim ãã®è¨äºã¯Vim Advent Calendar 2012 : ATND 160æ¥ç®ã®è¨äºã«ãªãã¾ãã 159æ¥ç®ã¯@tyruã®ããã§ããªããç¯ç´ä¸æï¼ãã¼ãã¼ãä¸ã®ãã¼ãæ大éæ´»ç¨ã§ãã人ã®Nåã®ç¿æ £ã¨ã¯ï¼ã§ããã 第44å vimrcèªæ¸ä¼ã§ãneobundle#config() ã«é¢ããè¨äºãæ¸ãã¨æãé£ãããããã ã¨ãã話ã«ãªã£ãã®ã§ãä»åã¯NeoBundleã®ã³ã¢ãªè¨å®(ãããã¯æå¤ã¨ç¥ããã¦ããªãè¨å®) ã«ã¤ãã¦ç´¹ä»ãããã¨æãã¾ãã neobundle#rc()ã¯å¼æ°ãçç¥ã§ããã ãã®é¢æ°neobundle#rc([{base-path}])ã¯å¼æ°ã§ãã{base-path}ãçç¥ãããã¨ãã§ãã¾ãã çç¥ããã¨ã©ããªããã¨ããã¨ãä¸è¨ã®ã³ã¼
ããã¾ã§ä»¥ä¸ã®ï¼ã¤ã®ãã©ã°ã¤ã³ã¯ãNeoBundleLazyãã¦ãNeoBundleSourceããªãã¨ãããªãã®ã§(é¢åã ã)ãNeoBundleã ã¨Vimã®èµ·åãé ããªããã極åãã¼ãããªãããã«ãã¦ããã®ã ãã©ãhooks.on_source()ãå°å ¥ãããã®ã§NeoBundleLazyãå°å ¥ããã NeoBundle 'Shougo/vimfiler' NeoBundle 'Shougo/vimshell' NeoBundle 'Shougo/unite.vim' NeoBundleLazy 'Shougo/vimfiler', { \ 'autoload' : { 'commands' : [ 'VimFilerBufferDir' ] }, \ 'depends': [ 'Shougo/unite.vim' ], \ } let s:bundle = neobundle#get
ãã®è¨äºã¯Vim Advent Calendar 2012ã®184æ¥ç®ã®è¨äºã§ãã 183æ¥ç®ã¯Linda_ppããã«ããä¸æã¦ã£ã³ãã¦ãæ軽ã«åºãå ¥ãã§ãã tmpwin.vim ãä½ã£ãã§ããã Vimã§ã§ããè±åºç³»ããºã«ã²ã¼ã ã®vim-duzzleãä½ã£ãã®ã§ãç´¹ä»ãã¾ãã ã¿ã¤ãã«ã®ã²ã¼ã ã¸ã£ã³ã«åã¯ããããããªãã®ã§é©å½ã§ã(ç¬)ã ã¯ããã« å æ¥ãã¼ã¿ã«2ã¨ããã²ã¼ã ããã¬ã¤ããã®ã§ããããã¾ãã«ãé¢ç½ã㦠èªåãä½ãã²ã¼ã ä½ãããã¨æãã ããªã¨å¢ãã§ä½ã£ãã®ãæ¬ã²ã¼ã ã§ãã ãã¼ã¿ã«2ã¯æ¬é¡ã§ã¯ãªãã®ã§ãç´¹ä»ã¯è¨äºã®æå¾ã«ãã¾ãããã»ãã¨ãã«é¢ç½ãã®ã§ æªãã¬ã¤ã®æ¹ã¯æ¯éãã¬ã¤ãã¦ãã ããã ãªãVimã§ã²ã¼ã ãä½ã£ããã¨èããããããã«Vimããã£ãããã¨ããçããããããã¾ããããã æ¬ã²ã¼ã ã¯ãã¼ã¿ã«ã«ã¤ã³ã¹ãã¤ã¢ããã¦ä½ã£ããã®ã§ãããã²ã¼ã å 容ã¯ãã¼ã¿ã«ã¨ã¯ä½ãé¢
ããã¼ ãã¸grepï¼ï¼ãããã¢ã¼ã¤ããã½ã¼ã¹ã³ã¼ã追ãã®ã«grepã許ãããã®ã¯å°å¦çã¾ã§ã ããï¼ãããã£ããããããã ã£ã¦ãã¨ã§ãctagsã¨cscopeãæå¹ã«ä½¿ãã ãã«ã¼ã¨ããºã¡ã±ã¼ã¨ãå®ã¯ããã¾ãé¢ä¿ãªããã©ã $ brew install ctags $ brew install cscope vimmerãªãtaglist.vimã¨srcexpl.vimã¯å¿ è¦ã NeoBundle 'taglist.vim' NeoBundle 'Source-Explorer-srcexpl.vim' " ã§ã:NeoBundleInstall Homebrewã ã¨/usr/local/binã«ã¤ã³ã¹ã³ãããã®ã§ããããã¨è¨å®ãã¦ãããã " ~/.vimrc let Tlist_Ctags_Cmd='/usr/local/bin/ctags' let g:SrcExpl_update
ãã®è¨äºã¯ Vim ã¢ããã³ãã«ã¬ã³ãã¼ 2012 ã® 19 æ¥ç®ã®è¨äºã§ãï¼ æ¨æ¥ã¯hrsh7th ããã® vim-versions ã«ã¤ãã¦ã®è¨äº ã§ããï¼ ãããããã©ã°ã¤ã³ãå ¥ãããè¨å®ãæ¸ããããã¦ãã㨠Vim ã®ç«ã¡ä¸ããã¯ã©ãã©ãé ããªã£ã¦ãã¾ãã¾ãï¼ ä¸åº¦ Vim ãç«ã¡ä¸ããããã®ãã¨éãããã¨ãç¡ãã¹ã¿ã¤ã«ã®äººã¯ããã»ã©æ°ã«ãªããªãããããã¾ãããï¼ ã·ã§ã«ããã¿ã¼ããã«å 㧠Vim ãéãããéãããããã¹ã¿ã¤ã«ã®äººã«ã¨ã£ã¦ã¯èµ·åé度ã¯ã¨ã¦ã大äºã§ãï¼ ä»å¹´ã®ã¢ããã³ãã«ã¬ã³ãã¼ã§ã¯ï¼ç´ æµãªãã©ã°ã¤ã³ãå ¥ã㦠Vim ã®æ©è½ãå¼·åããè¨äºãããããç´¹ä»ããã¦ããã®ã§ï¼ ããã§ã¯ãããã£ã便å©ãããªãã¹ãç¶æãã¤ã¤ï¼èµ·åæéãæããæ¹æ³ãç´¹ä»ãã¾ãï¼ (1/3 追è¨) neobundle.vim ããã¼ã¸ã§ã³ 3 ã«ãªãï¼ãã¡ã¤ã«ã¿ã¤ãã»ã³ãã³ãã»é¢æ°åã»ãããã³ã°ã®
2. èªå·±ç´¹ä»ï¼ãã¤ãã®ï¼ â ä¸é¨ã«ã¯æå㪠Vimmer ã§ã â neocomplcache ã¨ã unite.vim ã¨ãä½ãã¾ãã â å»å¹´ãæ¬ãæ¸ãã¾ããï¼å ±èï¼ â Vimmer ã§ããã Emacs åå¼·ä¼ã«ãåå ãã¾ã â ujihisa.vim ã¨èãã¦ãã£ã¦æ¥ã¾ãã â ä»åã¯æãããã¾ãã â ä»åã¯æãããã¾ãã â 大äºãªäºãªã®ã§äºåº¦(ry 3. ããªãã¯ãã©ã°ã¤ã³ããã¼ã¸ã£ã 使ã£ã¦ãã¾ããï¼ â ãã©ã°ã¤ã³ãä¹±ç«ããæ代ãæ§ã ãªãã©ã°ã¤ã³ã使 ãåããããã«ãã©ã°ã¤ã³ããã¼ã¸ã£ã¯å¿ é ã¨ãªã ã¤ã¤ãã â ããã¹ãã¨ãã£ã¿ã§ãªãã¦ããHaskell, Python, Ruby, Go ãªã©ãã©ã¤ãã©ãªç¨ã®ããã¼ã¸ã£ãæè¼ã ãä¾ã¯å¤ã â æè¿ã ã¨ã Emacs ããã©ã°ã¤ã³ããã¼ã¸ã£ãæ¨æº æè¼ â Vimãè² ãã¦ãããªãï¼
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}