add a prompt function in vi-mode plugin

When using vi key binding, it is useful to have both the right prompt and the left one showing some visual clue for the current status. So I added this function in the vi-mode plugin that can be used for the left prompt.