vim-fireplace/plugin/classpath.vim
Tim Pope fe8277b42f Extract classpath.vim to a separate plugin
Keeping it in the repository, for now.  Disable it with

	let g:no_foreplay_classpath = 1

This eliminates the startup delay at the cost of requiring a REPL to
evaluate code.

References #3.
2013-01-06 18:00:06 -05:00

24 lines
544 B
VimL

" classpath.vim - Set 'path' from the Java class path
" Maintainer: Tim Pope <http://tpo.pe/>
if exists('g:no_foreplay_classpath') || exists("g:loaded_classpath") || v:version < 700 || &cp
finish
endif
let g:loaded_classpath = 1
if &viminfo !~# '!'
set viminfo+=!
endif
augroup classpath
autocmd!
autocmd FileType clojure
\ if expand('%:p') =~# '^zipfile:' |
\ let &l:path = getbufvar('#', '&path') |
\ else |
\ let &l:path = classpath#detect() |
\ endif
augroup END
" vim:set et sw=2: