package nvim

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

func Echomsg(v *vim.Vim, msg string) error {
	return v.Command("echomsg '" + msg + "'")
}

func Echoerror(v *vim.Vim, msg string) error {
	return v.Command("echoerr '" + msg + "'")
}

package nvim

import (
	"fmt"

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

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

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

Support fmt likes format for Echomsg & Echoerror
Support fmt likes format for Echomsg & Echoerror

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