Skip to content

Commit

Permalink
Rename option to a more standard name: g:erlangWranglerPath
Browse files Browse the repository at this point in the history
  • Loading branch information
jimenezrick committed Sep 3, 2010
1 parent 40166ed commit bebe83b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ftplugin/erlang_refactor.vim
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ if !exists('g:erlangRefactoring') || g:erlangRefactoring == 0
finish finish
endif endif


if !exists('g:WranglerHome') if !exists('g:erlangWranglerPath')
let g:WranglerHome = '/usr/share/wrangler/' let g:erlangWranglerPath = '/usr/share/wrangler/'
endif endif


if glob(g:WranglerHome) == "" if glob(g:erlangWranglerPath) == ""
call confirm("Wrong path to wrangler dir") call confirm("Wrong path to wrangler dir")
finish finish
endif endif
Expand All @@ -29,7 +29,7 @@ let s:erlangServerName = "wrangler_vim"


" Starting background erlang session with wrangler on " Starting background erlang session with wrangler on
function! StartWranglerServer() function! StartWranglerServer()
let wranglerEbinDir = g:WranglerHome . "/ebin" let wranglerEbinDir = g:erlangWranglerPath . "/ebin"
let command = "erl_call -s -sname " . s:erlangServerName . " -x 'erl -pa " . wranglerEbinDir . "'" let command = "erl_call -s -sname " . s:erlangServerName . " -x 'erl -pa " . wranglerEbinDir . "'"
call system(command) call system(command)
call s:send_rpc('application', 'start', '[wrangler_app]') call s:send_rpc('application', 'start', '[wrangler_app]')
Expand Down

0 comments on commit bebe83b

Please sign in to comment.