Skip to content

Commit 85971e5

Browse files
committed
Set a value for the 'comments' option
If left to fall back on Vim's default, it contains `b:#`, which some (perhaps dubious) plugins could take to mean that hash comments are valid in Scala.
1 parent 6115d92 commit 85971e5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ftplugin/scala.vim

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
setlocal formatoptions+=ro
2-
setlocal commentstring=//%s
2+
3+
" Just like c.vim, but additionally doesn't wrap text onto /** line when
4+
" formatting. Doesn't bungle bulleted lists when formatting.
5+
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/**,mb:*,ex:*/,s1:/*,mb:*,ex:*/,://
6+
setlocal commentstring=//\ %s
7+
38
let &l:include = '^\s*import'
49
let &l:includeexpr = 'substitute(v:fname,"\\.","/","g")'
10+
511
setlocal path+=src/main/scala,src/test/scala
612
setlocal suffixesadd=.scala
713

0 commit comments

Comments
 (0)