Move vis function into its own file
Use EDITOR in vis function