" Vim filetype plugin file
" Language:	Java
" Maintainer:	Dan Sharp <vimuser@crosswinds.net>
" Last Change:	Fri, 27 Jul 2001 11:32:31 Eastern Daylight Time
" Current version can be found at http://sites.netscape.net/dwsharp/vim/scripts

" Only do this when not done yet for this buffer
if exists("b:did_ftplugin")
  finish
endif

" Don't load another plugin for this buffer
let b:did_ftplugin = 1

" Go ahead and set this to get decent indenting even if the indent files
" aren't being used.
setlocal cindent

" For filename completion, prefer the .java extension over the .class
" extension.
setlocal suffixes+=.class

" Set 'formatoptions' to break comment lines but not other lines,
" and insert the comment leader when hitting <CR> or using "o".
setlocal fo-=t fo+=croql

" Set 'comments' to format dashed lists in comments
setlocal com& com^=sO:*\ -,mO:*\ \ ,exO:*/  " Behaves just like C

" Change the :browse e filter to primarily show Java-related files.
if has("gui")
    let  b:browsefilter="Java Files (*.java)\t*.java\n" .
	        \	"Properties Files (*.prop*)\t*.prop*\n" .
		\	"Manifest Files (*.mf)\t*.mf\n" .
		\	"All Files (*.*)\t*.*\n"
endif
