Added check for Vim 'hidden' option when trying to open result in the same buffer