vimã§ã³ã¼ãã®åãç°¡åã«æãããããã©ã°ã¤ã³ãããã®ã§ç´¹ä»ãã¾ãã
ã¨ãã£ã¦ãåã使ã£ã¦ããã®ã¯ãã®ãã©ã°ã¤ã³ã®ã»ãã®ä¸é¨åã ãã§ãããã£ã¨ãã£ã¨ãããæ©è½ãããã¾ãã使ãããªãã¦ãªãã®ã§ç´¹ä»ãã¾ããmm
ã¤ã³ã¹ãã¼ã«
.vimrc
ã«ä»¥ä¸ãæ¸ãã¾ããdeinã¨ãã§ãå
¥ãã¨ã¯æãã¾ããæªæ¤è¨¼ã§ãã
Plug 'junegunn/vim-easy-align'
è¨å®
ããã.vimrc
ã«æ¸ãã¾ã
vmap <Enter> <Plug>(EasyAlign)
使ãæ¹
- æ´å½¢ãããç¯å²ãvisualã¢ã¼ãã§å²ã
- Enterãæ¼ã
- åºåãããæåãé¸ã¶(spaceã¨ã)
- å®äºï¼
ä¾
ãã®ã³ã¼ããé¸æãã¦
hoge = 1 hogehogefuga = 2 hogehogefugafuga = 3
ã¹ãã¼ã¹ã§æ´å½¢ããã¨
hoge = 1 hogehogefuga = 2 hogehogefugafuga = 3
ãããªæãã«ãªãã¾ãã
使ç¨ã¤ã¡ã¼ã¸
大åéå®ãã¦ãããã©ã°ã¤ã³ãªã®ã§è¯ãã£ãã使ã£ã¦ã¿ã¦ä¸ããã