From 823bf8cb515bb10396c705cdc017aa9121cc4d12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Catalinas=20Jim=C3=A9nez?= Date: Tue, 30 Sep 2014 00:29:25 +0100 Subject: [PATCH] Warn user if erl command not installed --- ftplugin/erlang.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ftplugin/erlang.vim b/ftplugin/erlang.vim index 49b64eb..8faa6ba 100644 --- a/ftplugin/erlang.vim +++ b/ftplugin/erlang.vim @@ -31,6 +31,13 @@ let s:erlang_fun_begin = '^\(\a\w*\|[''][^'']*['']\)(.*$' let s:erlang_fun_end = '^[^%]*\.\s*\(%.*\)\?$' function s:SetErlangOptions() + if executable('erl') != 1 + echohl ErrorMsg + echomsg 'vimerl: erl command not installed' + echohl None + return + endif + compiler erlang if version >= 700 setlocal omnifunc=erlang_complete#Complete