1
0
mirror of https://github.com/amix/vimrc synced 2025-06-16 01:25:00 +08:00

Updated plugins

This commit is contained in:
amix
2015-03-14 20:02:10 +00:00
parent d195ccb777
commit 2cb073a57d
73 changed files with 1098 additions and 525 deletions

View File

@ -124,17 +124,21 @@ function! go#tool#BinPath(binpath)
let old_path = $PATH
let $PATH = $PATH . PathSep() .go_bin_path
if !executable(binpath)
if !executable(basename)
echo "vim-go: could not find '" . basename . "'. Run :GoInstallBinaries to fix it."
" restore back!
let $PATH = old_path
return ""
endif
" restore back!
if go_bin_path
let $PATH = old_path
let $PATH = old_path
let sep = '/'
if IsWin()
let sep = '\'
endif
return go_bin_path . '/' . basename
return go_bin_path . sep . basename
endfunction
" following two functions are from: https://github.com/mattn/gist-vim