use regex for vim checks

Instead of testing whether a switch to vim has been made with equality, use regex. 

This fixes the issue when pane command is `/usr/bin/vim`, but still supports ordinary `vim`.