summaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/julia.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/ftplugin/julia.vim b/ftplugin/julia.vim
index 3b81019d..554f9151 100644
--- a/ftplugin/julia.vim
+++ b/ftplugin/julia.vim
@@ -25,6 +25,8 @@ let b:julia_vim_loaded = 1
let b:undo_ftplugin = "setlocal include< suffixesadd< comments< commentstring<"
\ . " define< fo< shiftwidth< expandtab< indentexpr< indentkeys< cinoptions< omnifunc<"
+ \ . " | unlet! b:commentary_format"
+ \ . " | unlet! b:smartcomment_force_linemode"
\ . " | unlet! b:julia_vim_loaded"
" MatchIt plugin support
@@ -94,6 +96,10 @@ if exists("loaded_matchit")
endif
+" Some plugin-specific tweaks for commenting
+let b:commentary_format = "# %s" " for tpope/vim-commentary
+let b:smartcomment_force_linemode = 1 " for carlobaldassi/vim-smartcomment
+
if has("gui_win32")
let b:browsefilter = "Julia Source Files (*.jl)\t*.jl\n"
let b:undo_ftplugin = b:undo_ftplugin . " | unlet! b:browsefilter"