summaryrefslogtreecommitdiffstats
path: root/config.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2017-12-30 15:53:17 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2017-12-30 15:53:17 +0100
commitcef5e2d93100c4b765d276914658eab75906f4c9 (patch)
treef713afdee5cf0458b193c47f14ca35b075ba022a /config.vim
parent17ad302c54063be1871c7f82d75b77e7c595e10c (diff)
downloadvim-polyglot-3.3.1.tar.gz
vim-polyglot-3.3.1.zip
Disable ftdetect parts of some plugins, fixes #254v3.3.1
vim-polyglot discourages use of commands like: autocmd BufRead * autocmd BufNewFile * And others that execute for every file / buffer opened.
Diffstat (limited to 'config.vim')
-rw-r--r--config.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/config.vim b/config.vim
index 09f5eb89..d04efa92 100644
--- a/config.vim
+++ b/config.vim
@@ -15,3 +15,14 @@ augroup filetypedetect
augroup END
let g:python_highlight_all = 1
+
+augroup filetypedetect
+ if v:version < 704
+ " NOTE: this line fixes an issue with the default system-wide lisp ftplugin
+ " which didn't define b:undo_ftplugin on older Vim versions
+ " (*.jl files are recognized as lisp)
+ autocmd BufRead,BufNewFile *.jl let b:undo_ftplugin = "setlocal comments< define< formatoptions< iskeyword< lisp<"
+ endif
+
+ autocmd BufRead,BufNewFile *.jl set filetype=julia
+augroup END