diff --git a/autoload/SpaceVim/layers/lang/cmake.vim b/autoload/SpaceVim/layers/lang/cmake.vim index 8dcedd14b..887ab5351 100644 --- a/autoload/SpaceVim/layers/lang/cmake.vim +++ b/autoload/SpaceVim/layers/lang/cmake.vim @@ -20,6 +20,7 @@ function! SpaceVim#layers#lang#cmake#plugins() abort let plugins = [] call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-cmake-syntax', { 'merged' : 0}]) + call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-cmake', { 'merged' : 0}]) return plugins endfunction diff --git a/bundle/vim-cmake/plugin/cmake.vim b/bundle/vim-cmake/plugin/cmake.vim new file mode 100644 index 000000000..a4fdcff22 --- /dev/null +++ b/bundle/vim-cmake/plugin/cmake.vim @@ -0,0 +1,15 @@ +"============================================================================= +" cmake.vim --- cmake plugin +" Copyright (c) 2016-2019 Wang Shidong & Contributors +" Author: Wang Shidong < wsdjeg@outlook.com > +" URL: https://spacevim.org +" License: GPLv3 +"============================================================================= + + +command! -nargs=* Cmake call cmake#run() + + +function! cmake#run(str) abort + call SpaceVim#plugins#runner#open('cmake ' . a:str) +endfunction