diff options
author | yushyin <yushyin@saga> | 2018-09-22 17:35:35 +0200 |
---|---|---|
committer | yushyin <yushyin@saga> | 2018-09-22 17:35:35 +0200 |
commit | 883aee9bae5522d221ea5ae768fe02046deff2c0 (patch) | |
tree | a33ed0151a3d3f27be2c41eefa73f3d16d422000 /vim/vimrc | |
parent | 671e8f9109d2313b447bf19dd6a49a48b08ba121 (diff) | |
download | dotfiles-883aee9bae5522d221ea5ae768fe02046deff2c0.tar.gz dotfiles-883aee9bae5522d221ea5ae768fe02046deff2c0.tar.xz |
Vim: Add plugins textobj-(user,between,indent)
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -75,6 +75,25 @@ endif if dein#tap('vim-easy-align') nmap ga <Plug>(EasyAlign) endif +if dein#tap('vim-textobj-between') + let g:textobj_between_no_default_key_mappings = 1 + omap af <Plug>(textobj-between-a) + omap if <Plug>(textobj-between-i) + xmap af <Plug>(textobj-between-a) + xmap if <Plug>(textobj-between-i) +endif +if dein#tap('vim-textobj-indent') + let g:textobj_indent_no_default_key_mappings = 1 + omap ai <Plug>(textobj-indent-a) + omap ii <Plug>(textobj-indent-i) + xmap ai <Plug>(textobj-indent-a) + xmap ii <Plug>(textobj-indent-i) + + omap aI <Plug>(textobj-indent-same-a) + omap iI <Plug>(textobj-indent-same-i) + xmap aI <Plug>(textobj-indent-same-a) + xmap iI <Plug>(textobj-indent-same-i) +endif if dein#tap('vim-operator-surround') nmap <silent>sa <Plug>(operator-surround-append) nmap <silent>sd <Plug>(operator-surround-delete) |