Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
1
answers
31
views
Vifm quickview files
Could you please tell me how to activate the quick view with w? And another question, is it possible to make it automatic so that when the cursor is on a file, it shows its contents?
Could you please tell me how to activate the quick view with w? And another question, is it possible to make it automatic so that when the cursor is on a file, it shows its contents?
Raalgepis
(21 rep)
Jan 27, 2025, 05:59 PM
• Last activity: Jan 27, 2025, 07:20 PM
0
votes
1
answers
456
views
Is it possible to mount google drive in vifm using rclone?
I can mount my google drive using `rclone mount gdrive: localfolder`. I also know how to automatically mount a remote file system through `sshfs` within `vifm`. But is it possible to use `rclone` to mount a cloud drive within `vifm` automatically? I've tried to add the following line in `vifmrc`: fi...
I can mount my google drive using
rclone mount gdrive: localfolder
. I also know how to automatically mount a remote file system through sshfs
within vifm
. But is it possible to use rclone
to mount a cloud drive within vifm
automatically? I've tried to add the following line in vifmrc
:
filetype *.drive FUSE_MOUNT2|rclone %PARAM %DESTINATION_DIR
and create a file named google.drive
with the following line in it:
mount gdrive:
When I try to open the file google.drive
, vifm displays the message of trying to mount and then hangs there forever.
To be more general, is there a generic way in vifm to handle all kinds of remote mounting programs?
Jing
(339 rep)
Apr 8, 2020, 11:22 AM
• Last activity: Mar 12, 2024, 10:57 PM
6
votes
2
answers
1727
views
Vifm: run command on each selected file individually
I want a `for` loop analog for [Vifm](https://vifm.info/). When I don't select any file, I can type `:!echo %f` and I see the output of `echo` with the current file name as the argument. When I select several files, `:!echo %f` yields output of `echo` with all selected filenames joined with spaces a...
I want a
for
loop analog for [Vifm](https://vifm.info/) .
When I don't select any file, I can type :!echo %f
and I see the output of echo
with the current file name as the argument.
When I select several files, :!echo %f
yields output of echo
with all selected filenames joined with spaces as the argument.
What if I want to apply any program (e.g. echo
) to each selected file? So
echo file1
echo file2
echo file3
...
instead of
echo file1 file2 file3
What options do I have?
P.S.: I want the Vifm analog of the following Bash code:
for f in file1 file2 file3; do
echo $f
done
petRUShka
(1342 rep)
Oct 6, 2019, 06:50 PM
• Last activity: Aug 2, 2022, 07:51 AM
0
votes
0
answers
102
views
How to use terminal command in vifm
I want to run terminal command in vifm For example, Can I execute `code .` command in vifm?
I want to run terminal command in vifm
For example, Can I execute
code .
command in vifm?
devstefancho
(101 rep)
May 22, 2021, 10:35 AM
• Last activity: May 23, 2022, 12:34 AM
2
votes
1
answers
814
views
Vifm: Change file type assocation
I've looked at the docs and still cannot figure out how to change a filetype to open with external editor. How can I make it so that pressing in vifm on a `*.sql` files for example will use sublime3 external app instead of vim? I've already tried adding `filetype *.sql /opt/sublime_text_3/sublime_te...
I've looked at the docs and still cannot figure out how to change a filetype to open with external editor. How can I make it so that pressing in vifm on a
*.sql
files for example will use sublime3 external app instead of vim? I've already tried adding filetype *.sql /opt/sublime_text_3/sublime_text
to my vifmrc file but it is still using default vim.
horatio1701d
(203 rep)
Sep 5, 2017, 11:34 AM
• Last activity: Jan 20, 2022, 09:40 PM
2
votes
3
answers
3060
views
Leaving VIFM in such a way that the terminal directory is the same as the last visited VIFM directory
I'm trying to achieve what was described in the title. I followed these directions (http://sourceforge.net/p/vifm/feature-requests/24/) but they did not work. Here are the instructions I followed: > 1. Add special command to vifmrc command Q :execute '!echo %d > ~/.vifm/lastdir' | quit > 2. Add an a...
I'm trying to achieve what was described in the title. I followed these directions (http://sourceforge.net/p/vifm/feature-requests/24/) but they did not work. Here are the instructions I followed:
> 1. Add special command to vifmrc command Q :execute '!echo %d > ~/.vifm/lastdir' | quit
> 2. Add an alias to .bashrc alias vifm='source ~/bin/vf'
> 3. Save the following script to ~/bin/vf if [ -f ~/.vifm/lastdir ]; then rm ~/.vifm/lastdir fi /usr/local/bin/vifm "$@" if [ -f
> ~/.vifm/lastdir ]; then cd cat ~/.vifm/lastdir fi
I'm most skeptical of (3). I had to create a "bin" folder in my home directory, and then create a "vf" file within the new "bin" to then place the text described in (3). Did I proceed correctly here?
George
(1899 rep)
Oct 5, 2014, 08:32 PM
• Last activity: Dec 4, 2021, 01:11 PM
0
votes
0
answers
299
views
Segmentation fault in vim and vifm
What does this error mean? Vim: Caught deadly signal SEGV Vim: Finished. Segmentation fault (core dumped) Vim: Caught deadly signal SEGV Vim: Finished. I get it randomly when I close `vifm` or `vim` in an `xterm` terminal.
What does this error mean?
Vim: Caught deadly signal SEGV
Vim: Finished.
Segmentation fault (core dumped)
Vim: Caught deadly signal SEGV
Vim: Finished.
I get it randomly when I close
vifm
or vim
in an xterm
terminal.
wgm
(1 rep)
Oct 28, 2021, 06:31 AM
• Last activity: Oct 28, 2021, 07:18 AM
1
votes
1
answers
155
views
In VIFM, how do I define a movement that takes me to the most recently edited file?
I have not been able to find a VIFM motion that moves directly to the most recently edited file when I am elsewhere in the directory. Is there such a motion? If not, is it possible to define one? I have tried using the window sorting for Time Modified, then jumping to the top with gg. However, that...
I have not been able to find a VIFM motion that moves directly to the most recently edited file when I am elsewhere in the directory. Is there such a motion? If not, is it possible to define one?
I have tried using the window sorting for Time Modified, then jumping to the top with gg. However, that sorting puts directories at the top of the window, so gg takes me there. It is close, but because this is something I often want to do, I am hoping to minimize the effort to get to it. Thanks!
Shawn
(11 rep)
Feb 10, 2021, 05:36 PM
• Last activity: Sep 12, 2021, 01:11 PM
1
votes
1
answers
497
views
How to make the “l” key or <right> arrow in vifm move to preview pane instead of opening a file in vim?
Currently, when clicking the letter l or arrow → , if I am on a directory it moves into it but if I am on a file it opens it in vim. I am wondering if there is a way to change this behaviour for files to move into the "view" pane instead of opening the file in vim.
Currently, when clicking the letter l or arrow →, if I am on a directory it moves into it but if I am on a file it opens it in vim. I am wondering if there is a way to change this behaviour for files to move into the "view" pane instead of opening the file in vim.
I J
(13 rep)
Nov 3, 2020, 01:46 AM
• Last activity: Nov 3, 2020, 07:05 PM
2
votes
1
answers
1108
views
Copy file name without extension in Vifm
From the the [Vifm wiki][1] and using [xclip][2], they show how to copy the filename of a selected file: nnoremap yn :!echo -n %c | xclip -selection clipboard %i :echo expand('%"c') "is yanked to clipboard" But it copies it with the extension, how can I copy the name of a file without it's extension...
From the the Vifm wiki and using xclip , they show how to copy the filename of a selected file:
nnoremap yn :!echo -n %c | xclip -selection clipboard %i:echo expand('%"c') "is yanked to clipboard"
But it copies it with the extension, how can I copy the name of a file without it's extension to the clipboard?
GhostOrder
(181 rep)
Aug 6, 2020, 02:21 PM
• Last activity: Aug 8, 2020, 05:01 PM
0
votes
1
answers
69
views
Convert selected audio files in vifm using ffmpeg
I'm trying to create a command for converting all audio files selected in vifm using ffmpeg. Here's what I've tried so far: ``` command opus ffmpeg -i %f -q 7 %f:s|flac|opus| ``` This has two problems, however. First, it only works if only one file is selected. If, for example, two are selected, ffm...
I'm trying to create a command for converting all audio files selected in vifm using ffmpeg. Here's what I've tried so far:
command opus ffmpeg -i %f -q 7 %f:s|flac|opus|
This has two problems, however.
First, it only works if only one file is selected. If, for example, two are selected, ffmpeg stops with the question, File 'foo.flac' already exists. Overwrite ? [y/N]
, where foo.flac
is the second file.
Second, it only works if the extension of the original files is flac
. (I used vifm's substitution macro for replacing flac
with opus
in the file name in the example.) I don't know how to include other extensions, too.
user247824
(103 rep)
Jul 12, 2020, 08:51 PM
• Last activity: Jul 25, 2020, 12:19 PM
2
votes
2
answers
2725
views
Viewing PDF's in VIFM with Evince
I am unable to view PDF's in VIFM with Evince (my pdf viewer of choice). How does one do this?
I am unable to view PDF's in VIFM with Evince (my pdf viewer of choice). How does one do this?
George
(1899 rep)
Oct 5, 2014, 02:48 AM
• Last activity: Apr 27, 2020, 09:24 AM
1
votes
1
answers
703
views
vifm: How to format mtime column to display Year?
I'm quite new to vifm but I've been reading the [manual][1] and browsing around. So far I've been able to do all I wanted to do with it, but I'm missing a piece. I wanted to display the modification date as the "2nd column" (and in fact, I sort by that descending), but after seeing [this screenshot]...
I'm quite new to vifm but I've been reading the manual and browsing around. So far I've been able to do all I wanted to do with it, but I'm missing a piece.
I wanted to display the modification date as the "2nd column" (and in fact, I sort by that descending), but after seeing
, prompted by this StackOverflow question/answer combo , I noticed my (same)
The

viewcolumns
doesn't produce the same output:

mtime
formatting is not showing the year.
Here's the (relevant) vifmrc
block:
set viewcolumns=*{name}..,16{mtime}
set sort=-mtime
I've tried a few other alternatives but I think I need to tell something to mtime somewhere, and I'm usure where to look (searching for vifm is hard, as most results are either for vi
(the editor) or just the keywords are too generic to find relevant results (or maybe I'm bad at searching).
Any ideas how to produce a day/month/year (in 2 digit format is fine) followed by HH:mm?
is the mtime command using some form of environment variable and therefore formatting it day/month hour:minute somewhere?
Martin Marconcini
(131 rep)
Jan 27, 2020, 01:59 PM
• Last activity: Jan 27, 2020, 03:56 PM
1
votes
2
answers
739
views
Is it possible to disconnect a GUI program launched within vifm from vifm?
One can launch GUI programs, for example, `gv` or `xpdf` from `vifm` in background in `vifm`'s command line: :!gv %f & However, if `gv` is launched by pressing Enter on a file like aPSfile.ps in `vifm`, it blocks the `vifm`. Is it possible to run it in the background as well when it is launched this...
One can launch GUI programs, for example,
gv
or xpdf
from vifm
in background in vifm
's command line:
:!gv %f &
However, if gv
is launched by pressing Enter on a file like aPSfile.ps in vifm
, it blocks the vifm
. Is it possible to run it in the background as well when it is launched this way? The following setup in vifmrc
does not work:
FILETYPE=PS=ps,eps,epsi=gv &
My current solution is to run vifm
in GNU screen
. gv
launched by pressing Enter will run in a new screen instead of blocking vifm
. However, I'd like to save that screen as well...
Jing
(339 rep)
Nov 8, 2012, 03:25 AM
• Last activity: Nov 12, 2018, 08:14 AM
1
votes
1
answers
255
views
How do I select which remote vifm instance will run a command?
I run two separate instances of `vifm` on my machine: $ vifm --server-list documents photos In one I'm organising documents and in the other photos. Sometimes I'm inside a third shell and would like to give commands to one of the `vifm` instances. Had I only one instance I would do: $ vifm --remote...
I run two separate instances of
vifm
on my machine:
$ vifm --server-list
documents
photos
In one I'm organising documents and in the other photos. Sometimes I'm inside a third shell and would like to give commands to one of the vifm
instances. Had I only one instance I would do:
$ vifm --remote -c 'normal p'
But that does not allow me to select the instance I'm giving that command to. The first instance (in asciibetical order, from what I tested) is always picked to run the command. In other words, I cannot send commands to the photos
instance.
How can I send a command to the photos
instance?
grochmal
(8852 rep)
Jun 12, 2016, 11:16 PM
• Last activity: Jun 13, 2016, 07:59 PM
2
votes
2
answers
902
views
Copying address of active directory in VIFM
Is there a way to yank the address of the active directory within vifm?
Is there a way to yank the address of the active directory within vifm?
George
(1899 rep)
Oct 5, 2014, 10:10 PM
• Last activity: Apr 17, 2015, 10:15 AM
1
votes
1
answers
169
views
Opening nautilus from vifm
If I browse to a folder in VIFM, is there a way to open a nautilus window from that location? I'm interested in this so I can use point-and-click drag and dropping features of nautilus in certain contexts (vifm is the most efficient way to *find* a location, but it isn't necessarily the most efficie...
If I browse to a folder in VIFM, is there a way to open a nautilus window from that location? I'm interested in this so I can use point-and-click drag and dropping features of nautilus in certain contexts (vifm is the most efficient way to *find* a location, but it isn't necessarily the most efficient way to manipulate files/folders within that location, or so it seems to me).
George
(1899 rep)
Oct 5, 2014, 07:34 PM
• Last activity: Oct 5, 2014, 08:06 PM
1
votes
1
answers
1027
views
Documentation for vifm?
![enter image description here][1] `vifm` looks like a good file manager, but it lacks documentation. Is there a manual or tips on how to use it? I'm looking for information on copying/moving a dir, creating a new empty file, editing a file, creating sym/hardlink, etc. [1]: https://i.sstatic.net/pJz...

vifm
looks like a good file manager, but it lacks documentation. Is there a manual or tips on how to use it? I'm looking for information on copying/moving a dir, creating a new empty file, editing a file, creating sym/hardlink, etc.
LanceBaynes
(41475 rep)
Jun 4, 2011, 11:00 AM
• Last activity: Aug 24, 2013, 09:47 AM
Showing page 1 of 18 total questions