summaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-06-07 17:37:15 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-06-07 17:37:15 +0200
commitff066ee9f001ee7c35bd78cc00fa253a238aacda (patch)
tree6068b72491c2a48082c2d428316ad68752d5f13f /ftplugin
parent5b3866302755da9e5a917ca42a38a4a03fb5f3e5 (diff)
downloadvim-polyglot-ff066ee9f001ee7c35bd78cc00fa253a238aacda.tar.gz
vim-polyglot-ff066ee9f001ee7c35bd78cc00fa253a238aacda.zip
Update
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"