Difference between revisions of "Vifm"

From ArchWiki
Jump to: navigation, search
(Removing the mistaken information I had added)
(Added some useful information.)
Line 15: Line 15:
 
Copy the default config file to your home folder
 
Copy the default config file to your home folder
 
  $ cp /usr/share/vifm/vifmrc ~/.vifm/vifmrc
 
  $ cp /usr/share/vifm/vifmrc ~/.vifm/vifmrc
 
 
You can then make any changes that suit your working style.
 
You can then make any changes that suit your working style.
 +
 +
To get started, read the information avaliable in:
 +
* /usr/share/vifm/vifm.txt
 +
* /usr/share/vifm/vifm-help.txt
  
 
===Opening filetypes in Vifm===
 
===Opening filetypes in Vifm===
You can assign applications to filetypes in .vifmrc, eg.,
+
You can assign applications to filetypes in vifmrc, eg.
 
  FILETYPE=Images=jpg,jpeg,gif,tif,tiff,png,bmp=feh
 
  FILETYPE=Images=jpg,jpeg,gif,tif,tiff,png,bmp=feh
 
  FILETYPE=Movies=avi,flv,mpg,mpeg,mov,ogg,ogv=vlc
 
  FILETYPE=Movies=avi,flv,mpg,mpeg,mov,ogg,ogv=vlc
 +
 +
===User commands===
 +
You can also create custom commands in vifmrc, eg.
 +
COMMAND=feh=feh -Fp. *.*
 +
 +
====Creating symbolic links====
 +
COMMAND=ln=ln -s %d/%f %D
 +
When you call :ln, a link of the selected file is made in the other directory (if you are in split view). It even works with multiple files selected with visual (v) or tag (t).
  
 
==Alternative==
 
==Alternative==
 
Another text based filemanager with vi like keybinds is [[Ranger]].
 
Another text based filemanager with vi like keybinds is [[Ranger]].

Revision as of 09:39, 23 June 2010

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Vifm#)

Vifm is a ncurses based file manager with vi like keybindings. If you use vi, vifm gives you complete keyboard control over your files without having to learn a new set of commands. Source: Vifm on sourceforge.

Installation

Vifm is in Community:

# pacman -S vifm

For tiling window managers

With tiling window managers, the command "xterm -e vifm" may result in Vifm restricted to only a small part of the window. The following AUR package, vifm-for-tiling-wm, takes care of this problem.

Customizing Vifm

Copy the default config file to your home folder

$ cp /usr/share/vifm/vifmrc ~/.vifm/vifmrc

You can then make any changes that suit your working style.

To get started, read the information avaliable in:

  • /usr/share/vifm/vifm.txt
  • /usr/share/vifm/vifm-help.txt

Opening filetypes in Vifm

You can assign applications to filetypes in vifmrc, eg.

FILETYPE=Images=jpg,jpeg,gif,tif,tiff,png,bmp=feh
FILETYPE=Movies=avi,flv,mpg,mpeg,mov,ogg,ogv=vlc

User commands

You can also create custom commands in vifmrc, eg.

COMMAND=feh=feh -Fp. *.*

Creating symbolic links

COMMAND=ln=ln -s %d/%f %D

When you call :ln, a link of the selected file is made in the other directory (if you are in split view). It even works with multiple files selected with visual (v) or tag (t).

Alternative

Another text based filemanager with vi like keybinds is Ranger.