Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? emacsãã¼ãã¤ã³ãã«æ £ã親ããã ããã§é·ããVimå¹¼ç¨åã®ã¾ã¾ã ã£ãç§ãæ¥ã¾ãããããã¼ãã¤ã³ããä¸åº¦ã«è¦ãããã¨ããã¨æ«æããããã®ã§ã以ä¸ã®ããã«å°ããã¤ããã£ãã©ãªã¼ãå¢ããã®ããã¶ãåã ç¹è¨ããªãéããã¼ãã«ã¢ã¼ããåæãå¾ã.vimrcã§ã®è¨å®ã«ã¤ãã¦ã¯æå°éã«ãã触ããªã (emacsã§ã¤ãè¨å®ãã¡ã¤ã«ãããã£ã¦ãã¾ããã¡ã ã£ãåçãã) ã®ã§åèªå¥½ãã«ãã¦ãã ããã Level 1 æå°éã®ä½¿ãæ¹ã ãè¦ãã¦ãã¶ã£ã¤ãã§ãµã¼ãã¼ã®è¨å®ãã¡ã¤ã«ãæ´æ°ããããã¦ããã10年以ä¸ãã®ç¶æ ã iã§ãã®å ´ã§ã¤ã³ãµã¼ãã¢ã¼ã aã§
2014-07-14 æè¡ç³»ã®è©±é¡ãæ¸ãã¦ãããã㪠ã¯ã¦ãªããã°ãæ¬æ ¼çã«ä½¿ãå§ãã¦ãã¾ã ï¼ã¶æãããã ã¯ã¦ãªæãå®ç¹è¦³æ¸¬ãã¦ãæã§è©±é¡ã«ãªã£ã¦ããåºæ¥äºãç温ããè¦å®ãããã°ã«ãããããªã£ã¦æã£ã¦ããã¯ã¦ãªæå®ç¹è¦³æ¸¬æãã£ã¦ããããã°ã¿ã¤ãã«ã«ãã¾ãããæè¡ç³»ã®è©±é¡ã¯ã¡ã¤ã³ããã°ã®æ¹ã§ãHadoopã«é¢ããã話ã¨ãçµæ§æ¸ãã¦ããã®ã§ããã¡ãã®ããã°ã¯éæè¡ç³»ã®è©±é¡ãªã³ãªã¼ã§è¯ãããªã£ã¦æã£ã¦ãã ã§ããã¯ã¦ããªãä¼ãä¸æ®µè½ãããã¨ã ãï¼ä¸é¨çãä¸ãã£ã¦ããé¨åã¯ãããã©ï¼ã趣å³ã§ãä»äºã§ãè²ã ãªæè¡ã¯ä½¿ã£ã¦ããã®ã§ãä»å¾ã¯èªåã®æè¡ãã¿ãæ¸ãã¦ããã®ãè¯ãã®ããªã¨æãã¾ããããªã®ã§ãä»å¾ã¯æè¡ãå«ãã話é¡ãç¹ã交ãã¦æ¸ãã¾ãã æ®æ®µã®ã¨ãã£ã¿ã¯vimã使ã£ã¦ãã¾ãããã¹ã¯ãããLinuxã¯å®å ¨ã«vimã ããMacã§ãMacVimã使ã£ã¦ãã¾ããWindowsã§ãCygwinã§é å¼µã£ã¦
Vim Advent Calendar 2013ã®168æ¥ç®ã®è¨äºã§ãã Vimãã©ã°ã¤ã³ã®çµã¿è¾¼ã¿ãªã©ãæ¥ã Vimã«ããéçºé度ã®åä¸ãç 究ããã¦ããæ¹ã å¤ããã¨æãã¾ãããããªéçºå¹çãä¸æã§é«ãããããã¯ããã¯ãããã®ã§ç´¹ä»ã ããã¯ãºããªãOSã®ãã¼ãªãã¼ãé度ãé«ããã§ãã é常ã«ã·ã³ãã«ã§ãããç ´å£åããããã§ãã æ®æ®µã®webhjklããã®éãããã©ã°ã©ãåä½ç§»åã³ãã³ã{ }ã§ããã¨ãããé度ã åèªåä½ã§ãè¶ é«éã§ç§»åã§ãã¾ãã ãã¡ããé常ã®vimã«éãããtmuxã®visual mode(viäºæ)ã§ãã£ã¦ãBashã®ã«ã¼ã½ã«ç§»åã§ãã£ã¦ããªã¢ã¼ãæ¥ç¶å ã®Vimã§ãã£ã¦ãå ¨ã¦ãé«éã«ãªãã¾ãããªããªããã¿ã³ãæ¼ãç¶ããåä½ã¯ã»ã¼ãã¼ãªãã¼ãã«ããã³ãã³ãéåºã ããã§ãã Bashã®å ´åã¯åèªç§»åã§ã¯ä»¥åã¯Esc + fãå©ç¨ãã¦ããã¾ãããããã£ãã使ããªããªãã¾ã
ç¾å¨ neocomplcache ã¯éçºã neocomplete.vim ã¸ã¨ç§»ã£ã¦ããï¼ä¿å®ã®ã¿ãè¡ããã¦ããç¶æ ã§ãï¼ãããï¼neocomplcache ã¯çµæ§ç´°ããè¨å®ãã¦ããããã¦ç§»è¡ã«æéåãããã§äºã®è¶³ãè¸ãã§ãã人ãå¤ãã®ã§ã¯ãªãã§ããããï¼åãããã ã£ãã®ã§ããï¼ä»æ¥æéãåããã®ã§ä¹ãæãã¦ã¿ãã¨ããï¼ä¹ãæãã¯ã¨ã¦ãã¹ã ã¼ãºã«åºæ¥ã¾ããï¼ neocomplcache ã®è¨å®ãåãç¶ãã§ã¨ãããã移è¡ãã Github ã® wiki ã« neocomplcache 㨠neocomplete ã® API ã®å¯¾å¿è¡¨ãããï¼ãããè¦æ¯ã¹ã¦ neocomplete ã«ãåãè¨å®ãè¡ãã ãã§ãï¼ neocomplete migration guide neocomplcache ã®è¨å®ãã³ãããã¦ãã¦ï¼å¯¾è±¡ç¯å²ã :s/neocomplcache_/neocomplete#/g
æè¿Vimãå§ãã¦vimrcãè²ã¦ã¦ãã¾ãã GitHubã§å ¬éããã¦ããä»ã®æ¹ã®vimrcãèªãã§åå¼·ãã¦ããã®ã§ãããå人çã«ç¹ã«åèã«ãã¦ããvimrcãç´¹ä»ãã¾ãã æ¥æ¬èªã®ã³ã¡ã³ããä¸å¿ https://github.com/yuroyoro/dotfiles https://github.com/SpringMT/dotfiles https://github.com/rhysd/dotfiles (2014/02/26追å ) https://github.com/glidenote/dotfiles (2014/03/03追å ) ãã¹ã¦è±èªããããã¯è±èªã®ã³ã¡ã³ããä¸å¿ https://github.com/deris/dotfiles https://github.com/toupeira/dotfiles https://github.com/cocopon/dotfil
"" neocomplcache NeoBundle 'Shougo/neocomplcache' " Disable AutoComplPop. let g:acp_enableAtStartup = 0 " Use neocomplcache. let g:neocomplcache_enable_at_startup = 1 " Use smartcase. let g:neocomplcache_enable_smart_case = 1 " Set minimum syntax keyword length. let g:neocomplcache_min_syntax_length = 3 let g:neocomplcache_lock_buffer_name_pattern = '\*ku\*' " Define dictionary. let g:neocomplcach
æ§ãµãããã°ãLife is Try and Errorã(2013 å¹´ 3 æ 31 æ¥ã§ééäºå®ï¼ã®éå»è¨äºï¼2006-11-07 æ²è¼ï¼ã®åæ²ã§ãã以ä¸ãéå»è¨äºãã®ã¾ã¾ï½¥ï½¥ï½¥ã¨æãã¾ãããããªã³ã¯å ãæ¢ã«æ¶æ» ãã¦ããå ´åã¯ã注éãã¤ãã¦ãã¾ãã ã¿ã(tab)ã¨è¡æ«(eol)ã表示ãããã ããªããã:set listããä¸çªç°¡åã ã¹ãã¼ã¹ã表示ãããã«ã¯ãè²ã ãªæ¹æ³ãããã¿ããã ãã©ãç§ãè¨å®ããæ¹æ³ã¯ä»¥ä¸ãå ¨è§ã¹ãã¼ã¹ã¨è¡é ã®åè§ã¹ãã¼ã¹ã表示ããããã¨ãã§ããï¼åèï¼ã³ã¢ãã¯ã®è·¯å°: vim: è¦ããªãæåãè¦ããããã«ãã [2013/3/30 追è¨ï¼ãªã³ã¯å æ¶æ» ]ï¼ã "è¡é ã®ã¹ãã¼ã¹ã®é£ç¶ããã¤ã©ã¤ãããã "Tabæåãåºå¥ãããã«ãã¤ã©ã¤ããããã®ã§ãåºå¥ãããã¨ãã¯Tabæåã®è¡¨ç¤ºãå¥ã« "è¨å®ããå¿ è¦ãããã function! SOLSpaceHilight(
ä»åã¯ããããVimã®è¨å®ãã¡ã¤ã«ã®è§£èª¬ã«å ¥ãã¾ããåºæ¬çãªè¨å®é ç®ã¨ãã使ãè¨å®é ç®ã«ã¤ãã¦èª¬æããå¾ã«ãããã¤ããµã³ãã«ããè¦ããã¾ãï¼ç·¨éé¨ï¼ è¨å®ãã¡ã¤ã«æ¬¡ç¬¬ã§èªç±ã«åä½ãå¶å¾¡ã§ãã ããã¾ã§ãVimã®æ¨æºçãªæä½æ³ã解説ãã¦ãããååã¾ã§ã«èª¬æããæä½æ³ããã¹ã¿ã¼ããã°ãä¸èªç±ãªãVimã§ããã¹ãç·¨éãã§ããã ãããããããVimãç価ãçºæ®ããã®ã¯ãã¦ã¼ã¶ã¼ãèªåã®å¥½ã¿ã«åããã¦åä½ãã«ã¹ã¿ãã¤ãºããã¨ãã ã Vimã¯æ¬å½ã«ãã¾ãã¾ãªé¨åã®åãæ¹ãèªç±ã«è¨å®ã§ãããèªåããã¤ãç·¨éãã¦ãããã¡ã¤ã«ããããå©ç¨ããæä½ã便å©ã«ããããã«ãé©ãã»ã©èªç±ã«è¨å®ãå¤æ´ã§ããã®ã ã è¨å®ãå¤æ´ããã«ã¯ãè¨å®ãã¡ã¤ã«ãç¨æãããMac OS XãLinuxãFreeBSDãªã©ã®UNIXç³»ã®OSã«åããVimã¨ãWindowsåãã®Vimã¨ã§ã¯ãè¨å®ãã¡ã¤ã«ã®ååãç°ãªãã®ã§æ³¨æãå¿ è¦ãUN
Rubyã§ã½ã¼ã¹ã³ã¼ããèªãæã®å°æã«ã¤ãã¦æ¸ãã¦ã¿ããã¨æãã ãã®æ稿ãåèã«ãªãã Rubyã§ã¡ã½ããã®å®ç¾©å ´æãè¦ã¤ããæ¹æ³ #Ruby - Qiita http://qiita.com/items/fc8a61b421d026a23ffe ã¡ãªã¿ã«ãç§ã¯Vimmerãªã®ã§ãVimã«å¯ã£ã話ã§ãã emacsã«ã¤ãã¦ã¯èº«è¿ã«emacsã¦ã¼ã¶ã¼ã«èãã¾ãããã ctagsãæ´»ç¨ãã ctagsã§tagsãã¡ã¤ã«ãåºåãã¦ããã°ãã¡ã½ããã®å®ç¾©å ã«é£ã¶ã®ãé常ã«æ¥½ã«ãªãã¾ãã Railsã§éçºãã¦ãããªããRailsã®ããã¸ã§ã¯ãã«ã¼ãã§ä»¥ä¸ã®ãããªã³ãã³ããæã¡ã¾ãã (bundlerã§ããã¸ã§ã¯ãå ã«Gemãããå ´åãæ³å®) langmapã¨ãã¯å¥ã«ç¡ãã¦ã大ä¸å¤«ã ã¨æãã¾ããã --excludeãä»ããã«ctagsãå®è¡ããã¨javascriptã®ã©ã¤ãã©ãªãã¿ã°ä»ãããã¦ã
ãviãã¯ãUNIX/Linux ã¦ã¼ã¶ãªãä¸åº¦ã¯èããemacsï¼muleï¼ãã«ä¸¦ã¶ä¸»è¦ãªã¨ãã£ã¿ã§ãã ã¾ãviã¨ãã£ã¿ãåºã«ãã¦æ©è½ãæ¡å¼µãããã®ããvim(vi improved)ã¨ãã£ã¿ã§ãã ãvi(vim)ãã«ã¯ãå ¥å(æ¿å ¥)ã¢ã¼ãããã³ãã³ãã¢ã¼ãã ããããåã¢ã¼ãã«ãã£ã¦è¡ãããã¨ãç°ãªãã¾ãã®ã§æ³¨æãã¦ãã ããã
vimã¨ãã£ã¿ã§ããã¡ã¤ã«ã®æåã³ã¼ããæ¹è¡ã³ã¼ããä¿®æ£ããããã¯å¤æ´ããæã®è©±ã ãã¡ã¤ã«ã®æåã³ã¼ãããæ¹è¡ã³ã¼ããå¤æ´ããæã¯ã å¤æ´ããããã¡ã¤ã«ãéããç¶æ ã§ã ã»æåã³ã¼ãã®å¤æ´ :set fileencoding=æåã³ã¼ã :set fenc=æåã³ã¼ã (ä¸ã®ã³ãã³ãã®çãå½¢å¼ããã¡ãã§ãè¯ãã) :set fileencoding=euc-jp (ã¨ã³ã³ã¼ãã£ã³ã°EUC-JPã«å¤æ´ã) :set fileencoding=shift_jis (ã¨ã³ã³ã¼ãã£ã³ã°SHIFT_JISã«å¤æ´ã) :set fileencoding=utf-8 (ã¨ã³ã³ã¼ãã£ã³ã°UTF-8ã«å¤æ´ã) ã»ãã¡ã¤ã«ãã©ã¼ãããã®ç¨®é¡ã®å¤æ´ :set fileformat=ãã¡ã¤ã«ãã©ã¼ãããã®ç¨®é¡ :set ff=ãã¡ã¤ã«ãã©ã¼ãããã®ç¨®é¡ (ä¸ã®ã³ãã³ãã®çãå½¢å¼ããã¡ãã§ãè¯ãã) :set f
ããã³ãã¨ã³ããµã¼ãã®ãã±ã¼ã«ç°å¢ã¯ãLANG=en_US.UTF-8ã«ãªã£ã¦ãã¾ãããSASã¯EUCãæ¨æºã¨ãªã£ã¦ãã¾ãã ããã³ãã¨ã³ããµã¼ãã§ã¯ãEUCã®ãã¡ã¤ã«ã¯æååããã¦ãã¾ãã®ã§ãSASã®ããã°ã©ã ããã¼ã¿ãç·¨éããã表示ããå ´åã«ã¯ãUTF-8ã«å¤æããå¿ è¦ãããã¾ãã vimã¯æ¨æºã§æåã³ã¼ãã®èªåå¤å¥ãå¤æã«å¯¾å¿ãã¦ããã®ã§ãvimãviewã使ãã°ãUTF-8ç°å¢ã®ããã³ãã¨ã³ããµã¼ãã§ãEUCã®ãã¡ã¤ã«ãç·¨éããã表示ãããã¨ãã§ãã¾ãã Windowsã®PCã¨ã®ãã¡ã¤ã«è»¢éãè¡ãå ´åã«ãæ¹è¡ã³ã¼ãã®å¤æãå¿ è¦ã¨ãªãã¾ãããæ¹è¡ã³ã¼ãã«ã¤ãã¦ãæåã³ã¼ãã¨åæ§ã«vimã§ã®èªåå¤å¥ãå¤æãå¯è½ã§ãã vimã®æåã³ã¼ãèªåå¤å¥ãæå¹ã«ããã«ã¯ãâ.vimrcâãè¨å®ããå¿ è¦ãããã¾ãã
ä»æ´ãªããããã°ã©ãã¼ãªãVimã使ããªãã¨ãã£ã±ããã¡ã ããªã¼ã¨æã£ãã®ã§ãVimã使ãããã«ãªã£ã¦ãã¾ããã ããã§ãã£ãããªã®ã§ããããã«ã¹ã¿ãã¤ãºã§ããVimãPHPç¨ã«ãã¦ã¿ã¾ããã PHPã®é¢æ°ãè£å®ãã¦ãããããã«ãã ã¾ãã¯PHPã®é¢æ°ãè£å®ãã¦ãããããã«ãã¾ãã phpç¨ã®è¾æ¸ã®ç¨æ ã¾ããä¸è¨ã®ã³ãã³ããå®è¡ãã¾ãã php -r '$f=get_defined_functions();echo join("\n",$f["internal"]);'|sort > ~/.vim/dict/php.dict get_defined_functionsã§PHPã«å®ç¾©ããã¦ããé¢æ°ãåºåãã¦ãããã®ã§ãããã¤ãvimã®è¾æ¸ãã¡ã¤ã«ã«ã¶ã¡è¾¼ã¿ã¾ãã è£å®ãã¦ãããããã«ãã .vimrcã« autocmd FileType php,ctp :set dictionary=~/
Ctagsã¯ãããã°ã©ãã³ã°ã½ã¼ã¹å ã®å¤æ°ãã¡ã½ããã®å®£è¨ç®æãæ¤ç´¢ãã ãã®æ å ±ãæ ¼ç´ããã¿ã°ãã¡ã¤ã«ãçæããã¢ããªã±ã¼ã·ã§ã³ã§ãã ãã®ã¿ã°ãã¡ã¤ã«ã«å¯¾å¿ããä»ã®ã¢ããªã±ã¼ã·ã§ã³ã¯ã ãã®ã¿ã°ãã¡ã¤ã«ã«æ ¼ç´ãããæ å ±ã使ç¨ãã¦ãã¡ã½ãããå¤æ°ã®æ å ±ã åå¾ãããã¨ãã§ãã¾ãã (Windows, Mac)
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}