open all files in current dir containing pattern in vi

vi $(grep -l 'pattern' *)