package nvim

import (
	"fmt"

	"github.com/garyburd/neovim-go/vim"
)

func Echomsg(v *vim.Vim, format string, args ...interface{}) error {
	return v.WriteOut(fmt.Sprintf(format, args...))
}

func Echoerr(v *vim.Vim, format string, args ...interface{}) error {
	return v.WriteErr(fmt.Sprintf(format, args...))
}

package nvim

import (
	"fmt"

	"github.com/garyburd/neovim-go/vim"
)

func Echo(v *vim.Vim, format string, a ...interface{}) error {
	return v.Command("echo '" + fmt.Sprintf(format, a...) + "'")
}

func Echomsg(v *vim.Vim, format string, a ...interface{}) error {
	return v.Command("echomsg '" + fmt.Sprintf(format, a...) + "'")
}

func Echoerr(v *vim.Vim, format string, a ...interface{}) error {
	return v.Command("echoerr '" + fmt.Sprintf(format, a...) + "'")
}

func ReportError(v *vim.Vim, format string, a ...interface{}) error {
	return v.ReportError(fmt.Sprintf(format, a...))
}

Fix Echo*** and Add ReportError interface wrapper
Fix Echo*** and Add ReportError interface wrapper

Signed-off-by: Koichi Shiraishi <13fbd79c3d390e5d6585a21e11ff5ec1970cff0c@zchee.io>
