Hi,
I would like to contribute this vimscript snippet that enables [I, [f
and similar commands that search words among include files
(vocabularies in this case). The search paths are built from the same
variables expected by factor.vim. Please include it into factor.vim if
you find it useful.
" Factor roots
let g:FactorRoot = "/usr/local/install/factor"
let g:FactorVocabRoots = ["core", "basis", "extra", "work",
"/home/carlos/dev/factor", "/home/carlos/shared/factor" ]
let g:FactorNewVocabRoot = "/home/carlos/dev/factor"
function EnterFactor()
let &l:include = "s*USING:"
let &l:suffixesadd = ".factor"
let s:path = ""
for s:root in g:FactorVocabRoots
if s:root[0:0] == "/"
let s:path = s:path . s:root . "/*,"
else
let s:path = s:path . g:FactorRoot . "/" . s:root . "/*,"
endif
endfor
let &l:path = s:path[0:-2]
endfunction
autocmd BufEnter *.factor call EnterFactor()
Best regards
--
Carlos
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk