vifm: Fast, lightweight, old school file manager

Jack Wallen
Sep 9, 2010
Updated • Dec 13, 2012

Recently I have been covering some of the lighter weight file managers for the Linux operating system. We've seen PCMan File Manager and emelFM2 covered recently. I've also touched on Thunar numerous times. All of these file managers have two things in common: They are fast and they have GUIs. Today's file manager shares the speed, but not the GUI. This file manager is vifm. If you know your Linux you can probably assume the "vi" is associated with one of the most popular Linux editors, vi. That assumption is correct.

The vifm file manager is an ncurses-based file manager with vi keybindings. So if you are used to vi, you will have no problems using vifm. Now vifm is not heavily developed. In fact, the last release was August 7, 2009. But it's still a worthy file manager for those looking for more text-based management tools. In this article, I will introduce you to one of the best text-based file managers.


The vifm file manager can move around your file system hierarchy, copy files, delete files, copy files, paste files, search...and that's about it. What more do you really need from a file manager? But best of all, vifm does this all quickly and efficiently. Now, let's install and use.


Naturally we will be installing from command line. To do this in an apt-get based distribution (such as Ubuntu or Debian), you would do the following:

  1. Open up a terminal window.
  2. Issue the command sudo apt-get install vifm.
  3. Type your sudo password and hit Enter.
  4. Accept any dependencies by clicking "y".
  5. Watch the installation happen.

In an rpm (or yum) based distribution (such as Fedora) you could install like so:

  1. Open up a terminal window.
  2. Su to the root user.
  3. Enter the command yum install vifm.
  4. Accept any dependencies by clicking "y".
  5. Watch the installation happen.

You are now ready to use vifm.


To move up and down the directory hierarchy you use the up and down arrow keys. To move back and forth between the panes you use the Tab key.

As you would expect, vifm works similarly to the vi editor - it has key combinations to take care of tasks. The most useful of these are:

  • yy - Yank a file (or "copy" in modern parlance).
  • p - Put a file (or "paste" in modern parlance).
  • dd - Delete a file.
  • Enter - View a file (will not view binary files).
  • / - Search for a file (the / character is followed by your search string).

So, let's say you want to copy a file in one directory and paste it into another. Here's the steps for that process:

  1. Move the selection bar to the file you want to copy.
  2. Hit "yy".
  3. Move the selection bar to the directory you want to copy the file to and hit Enter (you will then be inside of that directory).
  4. Hit "p" and the file will copy.

It's actually quite simple.

When you want to quit vifm you have to go into command mode (just like vi) and hit the ":" key, type quit, and hit Enter. And, like any good Linux tool, you can get more help with vifm by typing :help.

Final thoughts

If you need a text based file manager, you can't go wrong with vifm. Granted you will have to learn a new set of key combinations (unless you're already used to vi), but the speed and efficiency of vifm makes up for the few keystrokes you will have to learn.


Previous Post: «
Next Post: «


  1. jamil said on March 17, 2019 at 5:10 pm

    What would problems of ViFM be like? I don’t see any… You can write a script and run it from ViFM if you think there is a better way of doing things, or run shell from there and do whatever you want… Cheers!

  2. greg said on September 10, 2010 at 11:09 pm

    What’s the point if there is mc – more friendly I’d say?

  3. copyright jeremy said on September 10, 2010 at 1:02 am

    copied, merry christmas :P

  4. Sarah said on September 9, 2010 at 10:22 pm

    I would recommend you to look at Ranger ( It is a far more capable and more actively developed vi-like file manager that has solved a most of the issues that vifm has.

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.