Skip to content

Commit

Permalink
Warn user if erl command not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
jimenezrick committed Sep 29, 2014
1 parent 244661f commit 823bf8c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ftplugin/erlang.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 823bf8c

Please sign in to comment.