use regex for vim checks

instead of testing whether a switch to vim has been made with equality, use less strict regex

this fixes the issue when pane command is `/usr/bin/vim`, or other similar path