Permalink
Browse files

Rename option to a more standard name: g:erlangWranglerPath

  • Loading branch information...
1 parent 40166ed commit bebe83badb5c2d6156b3dcd9bbaa48d4c9e93c95 @jimenezrick jimenezrick committed Sep 3, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 ftplugin/erlang_refactor.vim
@@ -14,11 +14,11 @@ if !exists('g:erlangRefactoring') || g:erlangRefactoring == 0
finish
endif
-if !exists('g:WranglerHome')
- let g:WranglerHome = '/usr/share/wrangler/'
+if !exists('g:erlangWranglerPath')
+ let g:erlangWranglerPath = '/usr/share/wrangler/'
endif
-if glob(g:WranglerHome) == ""
+if glob(g:erlangWranglerPath) == ""
call confirm("Wrong path to wrangler dir")
finish
endif
@@ -29,7 +29,7 @@ let s:erlangServerName = "wrangler_vim"
" Starting background erlang session with wrangler on
function! StartWranglerServer()
- let wranglerEbinDir = g:WranglerHome . "/ebin"
+ let wranglerEbinDir = g:erlangWranglerPath . "/ebin"
let command = "erl_call -s -sname " . s:erlangServerName . " -x 'erl -pa " . wranglerEbinDir . "'"
call system(command)
call s:send_rpc('application', 'start', '[wrangler_app]')

0 comments on commit bebe83b

Please sign in to comment.