1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:10:05 +08:00

Merge pull request #394 from SpaceVim/vim_expand_region

Vim expand region
This commit is contained in:
Wang Shidong 2017-04-06 21:21:18 -05:00 committed by GitHub
commit 3066d90c93
2 changed files with 20 additions and 0 deletions

View File

@ -3,6 +3,11 @@ function! SpaceVim#layers#edit#plugins() abort
\ ['tpope/vim-surround'],
\ ['junegunn/vim-emoji'],
\ ['terryma/vim-multiple-cursors'],
\ ['terryma/vim-expand-region', { 'loadconf' : 1}],
\ ['kana/vim-textobj-user'],
\ ['kana/vim-textobj-indent'],
\ ['kana/vim-textobj-line'],
\ ['kana/vim-textobj-entire'],
\ ['scrooloose/nerdcommenter'],
\ ['mattn/emmet-vim', { 'on_cmd' : 'EmmetInstall'}],
\ ['gcmt/wildfire.vim',{'on_map' : '<Plug>(wildfire-'}],

View File

@ -0,0 +1,15 @@
xmap v <Plug>(expand_region_expand)
xmap V <Plug>(expand_region_shrink)
let g:expand_region_text_objects = {
\ 'iw' :0,
\ 'iW' :0,
\ 'i"' :0,
\ 'i''' :0,
\ 'i]' :1,
\ 'ib' :1,
\ 'iB' :1,
\ 'il' :1,
\ 'ii' :1,
\ 'ip' :0,
\ 'ie' :0,
\ }