Emacs ã® zone-mode ã®ãã㪠Vim ãã©ã°ã¤ã³ãã¤ãã£ã
ãã¿ã¾ãããå°ãé
ãã¾ããã
ãã®è¨äºã¯ Vim Advent Calendar 2012 329æ¥ç®ã®è¨äºã«ãªãã¾ãã
- å ãã¿
http://lingr.com/room/vim/archives/2013/10/24#message-17160863
https://twitter.com/tek_koc/status/393244775702212608
https://gist.github.com/mrkuc/7121179
æåè¦ãã®ã¯ Lingr ã® Vimé¨å±ã® thinca ããã®çºè¨ã ãã©ã大æ¬ã¯ mrkuc ãããå
ãã¿ã½ãã§ãã
Emacs ã«ã¯ zone-mode ã¨ãããã®ãããããããä¸ã®å¦çã¯ãããå©ç¨ãã¦ãããããã§ãã
ã¨ãããäºã§ Vim ã§ããµã¯ãã¨å®è£
ãã¦ã¿ã¾ããã
ã¡ãªã¿ã«ã¡ã¨éãã®ã§ãã·ã³ã¹ããã¯ããªãã¨ï½±ï½²ï½´ï½´ï½´ãªãã¨ã«ãªãããâ¦ã
[使ãæ¹]
" è¹è²ã®è¡¨ç¤ºãæå¹ã«ãã " ãã®è¡¨ç¤ºã®æ´æ°ã¯ 'updatetime' ã«ä¾åãã " ã¾ãããã¯ãããã¡åä½ã§è¨å®ããã FancyEnable rainbow " ç¾å¨ã®ãããã¡ã®è¡¨ç¤ºãç¡å¹ã«ãã FancyDisable " ãä¸å®æéãå ¥åãè¡ãããªãã£ãå ´åã«æå¹ã«ãããæ©è½ãæå¹ã«ãã " ã¾ããå ¥åããã£ãå ´åã«ãã®è¡¨ç¤ºãç¡å¹ã«ãã " ç´5ç§éãå ¥åãè¡ãããªãã£ãå ´åã« "rainbow" ãæå¹ã«ãã call fancy#enable_when_idle(5, "rainbow") " fancy#enable_when_idle() ã®è¨å®ãç¡å¹ã«ãã call fancy#disable_when_idle() " rainbow ãåã®è¡ãèæ ®ããããã«ãªãã¾ã " ãã ããéã let g:fancy_rainbow_enable_smart = 1
ã¨ããããããããªæãã§ãã
fancy#enable_when_idle() ã¯ãå
¥åããªãå ´åã«ããã¨ããå¦çãè¡ã£ã¦ããã®ã§ãããVim ã§ã¯ããããå¦çãã§ããªãã®ã§ããã¤ãã® autocmd ãçµã¿åããã¦å¦çãã¦ãã¾ãã
ãªã®ã§ããã¾ãå³å¯ã§ã¯ããã¾ããã