diff --git a/autoload/SpaceVim/layers/edit.vim b/autoload/SpaceVim/layers/edit.vim index 825120a1a..cbae5cb54 100644 --- a/autoload/SpaceVim/layers/edit.vim +++ b/autoload/SpaceVim/layers/edit.vim @@ -110,7 +110,7 @@ function! SpaceVim#layers#edit#plugins() abort \ [g:_spacevim_root_dir . 'bundle/vim-textobj-entire'], \ [g:_spacevim_root_dir . 'bundle/wildfire.vim',{'on_map' : '(wildfire-'}], \ [g:_spacevim_root_dir . 'bundle/editorconfig-vim', { 'merged' : 0, 'if' : has('python') || has('python3')}], - \ [g:_spacevim_root_dir . 'bundle/vim-jplus', { 'on_map' : '(jplus' }], + \ [g:_spacevim_root_dir . 'bundle/vim-jplus', { 'on_map' : '(jplus', 'loadconf_before' : 1 }], \ [g:_spacevim_root_dir . 'bundle/tabular', { 'merged' : 0, 'on_cmd' : ['Tabularize']}], \ [g:_spacevim_root_dir . 'bundle/splitjoin.vim',{ 'on_cmd':['SplitjoinJoin', 'SplitjoinSplit'],'merged' : 0, 'loadconf' : 1}], \ ] @@ -185,12 +185,6 @@ function! SpaceVim#layers#edit#config() abort vnoremap (wildfire-water) let g:wildfire_objects = ["i'", 'i"', 'i)', 'i]', 'i}', 'ip', 'it'] - " osyo-manga/vim-jplus {{{ - nmap J (jplus) - vmap J (jplus) - " }}} - - if s:CMP.has('python3') || s:CMP.has('python') nnoremap :MundoToggle else diff --git a/config/plugins_before/vim-jplus.vim b/config/plugins_before/vim-jplus.vim new file mode 100644 index 000000000..74f1d2fdc --- /dev/null +++ b/config/plugins_before/vim-jplus.vim @@ -0,0 +1,6 @@ +if index(get(g:, 'spacevim_disabled_plugins', []), 'vim-jplus') != 0 + " osyo-manga/vim-jplus {{{ + nmap J (jplus) + vmap J (jplus) + " }}} +endif