summaryrefslogtreecommitdiffstats
path: root/ftplugin/julia.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/julia.vim')
-rw-r--r--ftplugin/julia.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/ftplugin/julia.vim b/ftplugin/julia.vim
index e33b1a42..de983466 100644
--- a/ftplugin/julia.vim
+++ b/ftplugin/julia.vim
@@ -26,10 +26,16 @@ setlocal fo-=t fo+=croql
let b:julia_vim_loaded = 1
let b:undo_ftplugin = "setlocal include< suffixesadd< comments< commentstring<"
+ \ . " expandtab< shiftwidth<"
\ . " define< fo< indentexpr< indentkeys< cinoptions< completefunc<"
\ . " | unlet! b:commentary_format"
\ . " | unlet! b:smartcomment_force_linemode"
\ . " | unlet! b:julia_vim_loaded"
+
+if !exists("g:julia_set_indentation") || g:julia_set_indentation != 0
+ " As suggested by Style Guide.
+ setlocal expandtab shiftwidth=4
+endif
" MatchIt plugin support
if exists("loaded_matchit")