codekingpro/portable-devtools
114k
1" Vim filetype plugin file2" Language: Scala3" Maintainer: Derek Wyatt4" URL: https://github.com/derekwyatt/vim-scala5" License: Same as Vim6" Last Change: 11 August 20217" 2023 Aug 28 by Vim Project (undo_ftplugin)8" ----------------------------------------------------------------------------9 10if exists('b:did_ftplugin') || &cp11 finish12endif13let b:did_ftplugin = 114 15" j is fairly new in Vim, so don't complain if it's not there16setlocal formatoptions-=t formatoptions+=croqnl17silent! setlocal formatoptions+=j18 19" Just like c.vim, but additionally doesn't wrap text onto /** line when20" formatting. Doesn't bungle bulleted lists when formatting.21if get(g:, 'scala_scaladoc_indent', 0)22 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s2:/**,mb:*,ex:*/,s1:/*,mb:*,ex:*/,://23else24 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/**,mb:*,ex:*/,s1:/*,mb:*,ex:*/,://25endif26setlocal commentstring=//\ %s27 28setlocal shiftwidth=2 softtabstop=2 expandtab29 30setlocal include=^\\s*import31setlocal includeexpr=substitute(v:fname,'\\.','/','g')32 33setlocal path+=src/main/scala,src/test/scala34setlocal suffixesadd=.scala35 36let b:undo_ftplugin = "setlocal cms< com< et< fo< inc< inex< pa< sts< sua< sw<"37 38" vim:set sw=2 sts=2 ts=8 et:39 