ãã®è¨äºã¯ Akatsuki Advent Calendar ã® 15 æ¥ç®ã®è¨äºã§ãã
thinca ã§ããæ®æ®µã¯ Vim ã使ã£ã¦éçºããã¦ãã¾ãã
ãã㪠Vim ã§ãããã¤ã 2 æ¥ã»ã©åãå¾ æã® Vim 8.2 ããªãªã¼ã¹ããã¾ããï¼ãã£ããð
æ¬è¨äºã§ã¯ Vim 8.2 ã§ä½ãã§ããããã«ãªã£ãã®ãããåæã«å ¬éããããã¢ãã©ã°ã¤ã³ãéãã¦è¦ã¦ãããã¨æãã¾ãã
Vim ã®ãªãªã¼ã¹ã«ã¤ãã¦
ãã®åã«ãVim ã®éçºä½å¶ã«ã¤ãã¦å°ã説æãã¾ãã Vim ã®éçºã¯ GitHub ã® vim/vim ãªãã¸ããªã§éçºããã¦ãã¾ãããã©ã³ã㯠master ã®ã¿ã§ãææ°çã¯åæã«éçºçã§ãããã¾ãã
Vim ã¯ãããã(Git 管çã«ãªã£ãä»ã§ã¯ã³ãããã¨ã»ã¼å義)ãç©ã¿éãã¦æ¹åãè¡ããã¾ããååã®ãã¤ãã¼ãã¼ã¸ã§ã³ã¢ãã(Vim 8.1)ããå°ããã¤ããããç©ã¿éããããç¨åº¦ã®ã¨ããã§ããªãè¦ã¦æ°ãããã¼ã¸ã§ã³(ä»åã®å ´å㯠8.2)ãæ¯ãã¾ãã
ã¤ã¾ã Vim ã® HEAD ã追ãããã¦ãã人ããããã¨ããã¼ã¸ã§ã³ã 8.2 ã«ãªã£ãã¨ããã§åçã«ä½ããå¤ããããã§ã¯ããã¾ãããLinux ã®åãã£ã¹ããªãã¥ã¼ã·ã§ã³ããå¤ãã®å ´åã¯ããªãè¦ã¦ããããå ¥ã£ããã¼ã¸ã§ã³ããªãªã¼ã¹ããã®ã§ãæ°ä»ãããæ°ããæ©è½ãå ¥ã£ã Vim ã使ã£ã¦ããå ´åãããã¾ãã
ä»åãããã§è¨ã Vim 8.2 ã®æ°æ©è½ã¨ã¯ãVim 8.1 ãªãªã¼ã¹æç¹ãã足ãããæ©è½ã®ãã¨ãæãã¾ããä¸è¨ã®äºæ ãããä¸ã«ã¯ããããã¶ãåãã使ãã¦ããæ©è½ãããã¾ãã
ãã¢ãã©ã°ã¤ã³
ãã¦ãVim ã®éçºè ã§ãã Bram ããã¯ãä»å Vim 8.2 ããªãªã¼ã¹ããã«ããã£ã¦ Vim 8.2 ã§è¿½å ãããæ©è½ã®ãã¢ã³ã¹ãã¬ã¼ã·ã§ã³ãããããã®ãã©ã°ã¤ã³ãå ¬éãã¾ããã
https://github.com/vim/killersheep
ãã㯠Vim ä¸ã§åä½ããã²ã¼ã ã§ãVim 8.2 ã§è¿½å ãããæ§ã ãªæ©è½ã使ããã¦ãã¾ãã
åä½ã®æ§åã¯ä»¥ä¸ã®ãããªæãã§ãã
:KillKillKill
Ex ã³ãã³ãã§ã²ã¼ã ãéå§ããç»é¢ä¸ã®ç ²å°ãæã£ã¦ç¾ã®æ»æãé¿ãã¤ã¤åãã¦ããã¾ããèæ¯ã«ã¯ç·¨éä¸ã®ããã¹ãããã®ã¾ã¾æ®ã£ã¦ãã¾ããã¨ã¦ãã·ã¥ã¼ã«ã§ããã
ãããã¢ããã¦ã£ã³ãã¦
Vim ã¯ã¦ã£ã³ãã¦ã®ä¸ã«ãããã¡ã表示ãããã¨ãã§ããã¦ã£ã³ãã¦ã¯ç¸¦ã横ã«åå²ãããã¨ã§è¤æ°ã®ãããã¡ã表示ãããã¨ãã§ãã¾ãã Vim 8.2 ã§ã¯ãæ°ãã«ãããã¢ããã¦ã£ã³ãã¦ããµãã¼ãããã¾ãããããã¯ã¦ã£ã³ãã¦ã®åå²ã¨ã¯ç¬ç«ãã¦ãVim ä¸ã®å¥½ããªä½ç½®ã«ã¦ã£ã³ãã¦ãé ç½®ããæ©è½ã§ããIDE ã®ãããªãã©ã°ã¤ã³ãå®è£ ããããã«ãããã¥ã¡ã³ããè£å®å¯¾è±¡ã®æ å ±ãã«ã¼ã½ã«ã®è¿ãã«è¡¨ç¤ºãããã¨ãã§ãã¾ãã ã²ã¼ã å ã§ã¯ãç¾ãç ²å°ããããã¢ããã¦ã£ã³ãã¦ã¨ãã¦å®è£ ããã¦ãã¾ããç·¨éä¸ã®ããã¹ãã®ä¸ã§ã²ã¼ã ãåãã®ãããã®ãããã§ãã
ããã¹ãããããã£
ã²ã¼ã ä¸ã§ç ²å°ãç¾ã«è²ãä»ãã¦ããã®ã¯ãããã¹ãããããã£ã使ã£ã¦ãã¾ãã
ãã¤ã©ã¤ãèªä½ã¯ä»ã¾ã§ã® Vim ã§ãã§ãã¾ããããããç´æ¥çã«ãã¤ã©ã¤ããæå®ã§ãã¾ãã
ããã¹ãããããã£ã«ã¯ããã¹ããç·¨éãããéã«ãã®ä½ç½®ãé£åãã¦åãæ§è³ªãããã®ã§ããã¤ã©ã¤ãç®æã絶対ä½ç½®ã§æå®ãããããæè»ãªä½¿ãæ¹ãå¯è½ã§ãã
ãµã¦ã³ã
å®éã«ã²ã¼ã ããã¬ã¤ããã¨ãããã¾ããã対å¿ãã¦ããç°å¢ã§ããã°å¹æé³ãé³´ãã¾ãã Vim 8.2 ã§ã¯é³ãé³´ããæ©è½ãæè¼ããã¾ããã
ããã¹ãã¨ãã£ã¿ã«é³ãé³´ããæ©è½ãªãã¦ããã®? ã£ã¦æãã¾ããããç§ãããæãã¾ãããªãã§å ¥ã£ããã ããâ¦ãã²ã¼ã ã¯ä½ãããããªã£ããããããªãã§ããã
ã¾ã¨ã
Vim 8.2 ã§ã¯ãä»å¾ IDE ã®ãããªæ©è½ããµãã¼ãããããã®ä¸å°ã®ãããªæ©è½ãå¤æ°å ¥ãã¾ãããLSP(Language Server Protocol)ã®çºå±ãç®ãé¢ãã¾ããããä»å¾ãããªãããªéçºç°å¢ã®æ´åãé²ããã¨ã¯ã¨ã¦ã楽ãã¿ã§ãã
å¤ãã ããããªããæ°ãã Vim ã«çããã触ãã¦ã¿ã¦ã¯ãããã§ããããã