textobj-multitextobj ã§ä»»æã®ã°ã«ã¼ãããããã³ã°ããæ©è½ã追å ãã
g:textobj_multitextobj_textobjects_group_i çã¯ç¹å®ã®ã°ã«ã¼ãåããè¨å®ã§ããªãã£ããã§ãããä»»æã®ã°ã«ã¼ãããããã³ã°ã§ããæ©è½ãå®è£
ãã¦ã¿ã¾ããã
[ä»ã¾ã§]
" "A" ã "E" ã®ã°ã«ã¼ãåã使ç¨ããå¿ è¦ããã£ã let g:textobj_multitextobj_textobjects_group_i = { \ "A" : [ \ "\<Plug>(textobj-multiblock-i)", \ "\<Plug>(textobj-indent-i)", \ "\<Plug>(textobj-function-i)", \ ] \} map <Plug>(textobj-region-i) <Plug>(textobj-multitextobj-A-i)
[å®è£ å¾]
" ä»»æã®ã°ã«ã¼ãåã§è¨å® let g:textobj_multitextobj_textobjects_group_a = { \ "region" : [ \ "\<Plug>(textobj-multiblock-i)", \ "\<Plug>(textobj-indent-i)", \ "\<Plug>(textobj-function-i)", \ ] \} " <expr> ãæå®ãã¦ãtextobj#multitextobj#mapexpr_i({group}) ã使ç¨ãã map <expr> <Plug>(textobj-region-i) textobj#multitextobj#mapexpr_i("region")
ãã®ãããªæãã§ä»»æã®ã°ã«ã¼ãåã使ç¨ããäºãã§ãã¾ãã
vim-textobj-user ãããããã£ã¦ãªãã¦ã³ã¼ããã ãã¶ã²ã©ããªã£ã¦ãã¾ã£ãâ¦ã