mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 11:50:05 +08:00
Merge pull request #394 from SpaceVim/vim_expand_region
Vim expand region
This commit is contained in:
commit
3066d90c93
@ -3,6 +3,11 @@ function! SpaceVim#layers#edit#plugins() abort
|
|||||||
\ ['tpope/vim-surround'],
|
\ ['tpope/vim-surround'],
|
||||||
\ ['junegunn/vim-emoji'],
|
\ ['junegunn/vim-emoji'],
|
||||||
\ ['terryma/vim-multiple-cursors'],
|
\ ['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'],
|
\ ['scrooloose/nerdcommenter'],
|
||||||
\ ['mattn/emmet-vim', { 'on_cmd' : 'EmmetInstall'}],
|
\ ['mattn/emmet-vim', { 'on_cmd' : 'EmmetInstall'}],
|
||||||
\ ['gcmt/wildfire.vim',{'on_map' : '<Plug>(wildfire-'}],
|
\ ['gcmt/wildfire.vim',{'on_map' : '<Plug>(wildfire-'}],
|
||||||
|
15
config/plugins/vim-expand-region.vim
Normal file
15
config/plugins/vim-expand-region.vim
Normal 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,
|
||||||
|
\ }
|
Loading…
Reference in New Issue
Block a user