diff --git a/autoload/SpaceVim/layers/lang/forth.vim b/autoload/SpaceVim/layers/lang/forth.vim new file mode 100644 index 000000000..279672cf2 --- /dev/null +++ b/autoload/SpaceVim/layers/lang/forth.vim @@ -0,0 +1,24 @@ +"============================================================================= +" forth.vim --- forth language support in SpaceVim +" Copyright (c) 2016-2019 Wang Shidong & Contributors +" Author: Wang Shidong < wsdjeg@outlook.com > +" URL: https://spacevim.org +" License: GPLv3 +"============================================================================= + + +function! SpaceVim#layers#lang#forth#plugins() abort + let plugins = [] + call add(plugins, ['wsdjeg/vim-forth', {'merged' : 0}]) + return plugins +endfunction + + +function! SpaceVim#layers#lang#forth#config() abort + call SpaceVim#plugins#runner#reg_runner('forth', 'bigforth %s') + call SpaceVim#mapping#space#regesit_lang_mappings('forth', function('s:language_specified_mappings')) +endfunction + +function! s:language_specified_mappings() abort + call SpaceVim#mapping#space#langSPC('nmap', ['l','r'], 'call SpaceVim#plugins#runner#open()', 'execute current file', 1) +endfunction