# How to launch a file in vifm

console

I installed vifm through macports.

If I press enter on a file, it just opens it for editing.

How can I launch a file with it's associated program?

i.e. if I have a file highlighted, is there a key I can press so that it does the same thing as

open %c


Where %c is the name of the file that's highlighted?

To open files with associated programs you need to add the following command to your ~/.vifm/vifmrc file:
filetype * open %c

Then both l and i keys will work for you as expected. See help on :filetype and :filextype in the documentation.
This doesn't work out of the box, since different systems have different open commands and the default behavior is to open all files with Vim (for example, xdg-open for Ubuntu 16.04, as opposed to the aforementioned "open", which is specific to Mac). Maybe new version will contain a set of open commands for different systems in sample vifmrc file, so it will work from the beginning.