summaryrefslogtreecommitdiffstats
path: root/config.vim
diff options
context:
space:
mode:
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