" Location: plugin/factor.vim nmap fi :FactorVocabImpl nmap fd :FactorVocabDocs nmap ft :FactorVocabTests nmap fv :FactorVocab nmap fn :NewFactorVocab if !exists('g:FactorResourcePath') let g:FactorResourcePath = '~/factor/' endif if !exists('g:FactorDefaultVocabRoots') let g:FactorDefaultVocabRoots = ['resource:core', 'resource:basis', 'resource:extra', 'resource:work'] endif " let g:FactorAdditionalVocabRoots = ... " see autoload/factor.vim unlet! g:FactorVocabRoots if !exists('*FactorNewVocabRoot') | function! FactorNewVocabRoot() abort return 'resource:work' endfunction | endif command! -bar -bang -range=1 -nargs=1 -complete=customlist,factor#complete_vocab_glob FactorVocab \ execute factor#go_to_vocab_command(,"edit",) command! -bar -bang -range=1 -nargs=1 -complete=customlist,factor#complete_vocab_glob NewFactorVocab \ execute factor#make_vocab_command(,"edit",) command! FactorVocabImpl -bar :call GoToFactorVocabImpl() command! FactorVocabDocs -bar :call GoToFactorVocabDocs() command! FactorVocabTests -bar :call GoToFactorVocabTests() function! FactorFileBase() let filename = expand('%:r') let filename = substitute(filename, '-docs', '', '') let filename = substitute(filename, '-tests', '', '') return filename endfunction function! GoToFactorVocabImpl() exe 'edit ' fnameescape(FactorFileBase() . '.factor') endfunction function! GoToFactorVocabDocs() exe 'edit ' fnameescape(FactorFileBase() . '-docs.factor') endfunction function! GoToFactorVocabTests() exe 'edit ' fnameescape(FactorFileBase() . '-tests.factor') endfunction " vim:sw=4:et: