diff --git a/ftplugin/scala.vim b/ftplugin/scala.vim index 2c0361a..29981f0 100644 --- a/ftplugin/scala.vim +++ b/ftplugin/scala.vim @@ -23,7 +23,9 @@ else endif setlocal commentstring=//\ %s -setlocal shiftwidth=2 softtabstop=2 expandtab +if get(g:, 'scala_recommended_style', 1) + setlocal shiftwidth=2 softtabstop=2 expandtab +endif setlocal include=^\\s*import setlocal includeexpr=substitute(v:fname,'\\.','/','g')