func (d *vimInstallerInCentOS) Install() (err error) {
	if err = exec.RunCommand("yum", "install", "-y",
		"vim"); err != nil {
		return
	}
	return
}
Install installs the vim
package yum
import (
	"fmt"
	"github.com/linuxsuren/http-downloader/pkg/exec"
	"runtime"
)
type vimInstallerInCentOS struct {
	count int
}
func (d *vimInstallerInCentOS) Available() (ok bool) {
	if runtime.GOOS == "linux" {
		_, err := exec.LookPath("yum")
		ok = err == nil
	}
	return
}