Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions plugin/phprefactor.vim
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
let g:php_refactor_command='php ~/bin/refactor.phar'
let g:php_refactor_patch_command='patch -p1'
if !exists("g:php_refactor_patch_command")
let g:php_refactor_patch_command='patch -p1'
endif

func! PhpRefactorExtractMethod()
" check the file has been saved
Expand Down Expand Up @@ -70,6 +71,11 @@ func! PhpRefactorOptimizeUse()
endfunc

func! PhpRefactorRunCommand(refactoring, args)
if !exists("g:php_refactor_command")
echom 'You need to set g:php_refactor_command in your .vimrc'
return
endif

" Enable autoread to stop prompting for reload
setlocal autoread

Expand Down