From cef5e2d93100c4b765d276914658eab75906f4c9 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sat, 30 Dec 2017 15:53:17 +0100 Subject: Disable ftdetect parts of some plugins, fixes #254 vim-polyglot discourages use of commands like: autocmd BufRead * autocmd BufNewFile * And others that execute for every file / buffer opened. --- config.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'config.vim') 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 -- cgit v1.2.3