<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Vifm Q&amp;A - Recent questions</title>
<link>https://q2a.vifm.info/questions</link>
<description>Powered by Question2Answer</description>
<item>
<title>Use file type (not MIME) to define fileviewer</title>
<link>https://q2a.vifm.info/2462/use-file-type-not-mime-to-define-fileviewer</link>
<description>&lt;p&gt;For an OpenSSH public key, Vifm reports this with ctrl+g:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Name:        machine.pub
Size:        563   B
Type:        OpenSSH RSA public key
Mime Type:   application/vnd.ms-publisher
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I'd like to define a fileviewer for files with type &quot;OpenSSH RSA public key&quot;.&lt;/p&gt;
&lt;p&gt;Using the incorrect MIME type for the fileviewer seems brittle: &lt;code&gt;fileviewer &amp;lt;application/vnd.ms-publisher&amp;gt; ssh-keygen -l -f %c&lt;/code&gt;&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2462/use-file-type-not-mime-to-define-fileviewer</guid>
<pubDate>Mon, 18 May 2026 19:40:48 +0000</pubDate>
</item>
<item>
<title>vifm --remote example with if then statement</title>
<link>https://q2a.vifm.info/2457/vifm-remote-example-with-if-then-statement</link>
<description>&lt;p&gt;Hello,&lt;br&gt;
I have the following code:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;vifm --remote +':if filetype('.') == 'dir' | echo 'Directory' | else | echo 'File' | endif'
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Unfortunately, it's not working. What am I doing wrong?&lt;br&gt;
Output messages:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Invalid expression: filetype(.) == dir
Invalid expression: Directory
Misplaced :else
Invalid expression: File
:endif without :if
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2457/vifm-remote-example-with-if-then-statement</guid>
<pubDate>Wed, 06 May 2026 00:06:42 +0000</pubDate>
</item>
<item>
<title>Integrating zoxide with vifm</title>
<link>https://q2a.vifm.info/2455/integrating-zoxide-with-vifm</link>
<description>&lt;p&gt;This is more of an answer rather than a question.&lt;/p&gt;
&lt;p&gt;I use &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/ajeetdsouza/zoxide&quot;&gt;zoxide&lt;/a&gt; to quickly jump to most recent directories which matches a substring. For example, if often cd into &lt;code&gt;MyApp&lt;/code&gt; directory whose full path is &lt;code&gt;~/Work/Projects/Apps/MyApp&lt;/code&gt;, then (assuming I have visited that directory using &lt;code&gt;cd&lt;/code&gt; a couple of times) I can just use &lt;code&gt;zd mya&lt;/code&gt; or maybe shorter substring to jump to the directory. Below I have shown how I integrate it to vifm and within cd version of &lt;code&gt;fzf&lt;/code&gt; command in vifm&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&quot; Choose directory with zoxide query, where user enter a search term after `Zcd` like `:Zcd substring` and cd into the first match
command! Zcd : set noquickview
              \| let $Z_PICK = term('zoxide query &quot;%a&quot;')
              \| if $Z_PICK != ''
              \|     let $dir_name = fnameescape($Z_PICK)
              \|     cd $dir_name
              \|     execute '!zoxide add %%d %%i'
              \| endif

&quot; Choose directory with zoxide interactive and cd into it
command! ZcdI : set noquickview
               \| let $Z_PICK = term('zoxide query -l | fzf --height 20 2&amp;gt;/dev/tty')
               \| if $Z_PICK != ''
               \|     let $dir_name = fnameescape($Z_PICK)
               \|     cd $dir_name
               \|     execute '!zoxide add %%d %%i'
               \| endif
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You can even add &lt;code&gt;execute '!zoxide add %%d %%i'&lt;/code&gt; to the fzf cd command as below&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&quot; Choose directory and cd into it
command! Fzfcd : set noquickview
                \| let $FZF_PICK = term('fd --type d --hidden --follow | fzf-tmux 2&amp;gt;/dev/tty')
                \| if $FZF_PICK != ''
                \|     execute 'cd' fnameescape($FZF_PICK)
                \|     execute '!zoxide add %%d %%i'
                \| endif
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2455/integrating-zoxide-with-vifm</guid>
<pubDate>Sun, 03 May 2026 03:39:41 +0000</pubDate>
</item>
<item>
<title>copy transfer speed</title>
<link>https://q2a.vifm.info/2450/copy-transfer-speed</link>
<description>&lt;p&gt;I was trying to optimize the internal 10gbit LAN connection to my server and while with&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;dd if=/home/john/bigfile.dat of=/mnt/server/bigfile.dat bs=4M status=progress
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I can reach ~546 MB/s over sshfs, when I use the vifm's &lt;code&gt;copy&lt;/code&gt; command it caps at ~220MB/s.&lt;br&gt;
Is there a way to improve the transfer speed on vifm?&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2450/copy-transfer-speed</guid>
<pubDate>Wed, 22 Apr 2026 14:54:13 +0000</pubDate>
</item>
<item>
<title>Passing v:servername to script</title>
<link>https://q2a.vifm.info/2436/passing-v-servername-to-script</link>
<description>&lt;p&gt;I want to have a Tmux popup window with FZF to search for a file from inside Vifm.&lt;/p&gt;
&lt;p&gt;I have a custom .zsh script in &lt;code&gt;~/.config/vifm/scripts&lt;/code&gt; which gets the job done (works well if I hardcode server name) but fails if I try to pass the server name dynamically:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nnoremap f :!~/.config/vifm/scripts/vifm_fzf.sh &quot;%d&quot; &quot;%{v:servername}&quot; &amp;amp;&amp;lt;cr&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I do logging in my script and see that path is passed correctly but the server name is passed as literal: &lt;code&gt;v:servername}&lt;/code&gt; which causes &lt;code&gt;Sending remote commands failed.&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I don't want to hardcode serve name becasue I want my script to handle multiple instances of Vifm well.&lt;/p&gt;
&lt;p&gt;Please advice how to invoke a custom script with dynamic server name (I've tried some attempts with &lt;code&gt;escape&lt;/code&gt; etc. but failed).&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2436/passing-v-servername-to-script</guid>
<pubDate>Sun, 29 Mar 2026 15:33:19 +0000</pubDate>
</item>
<item>
<title>all menus available</title>
<link>https://q2a.vifm.info/2434/all-menus-available</link>
<description>&lt;p&gt;Try to make an exhaustive list of all menus available&lt;/p&gt;
&lt;p&gt;bmarks......................display all bookmarks in a menu&lt;br&gt;
ca[bbrev]..................display cmdline abbrevs&lt;br&gt;
chi[story]..................display history of menus&lt;br&gt;
cmap.........................mappings for command line mode&lt;br&gt;
cnoreabbrev...........display noremap cmdline abbrevs&lt;br&gt;
colo[rscheme]........display color schemes&lt;br&gt;
com[mand].............display a menu of user commands&lt;br&gt;
dirs...........................display directory stack&lt;br&gt;
dis[play]..................display menu with registers content&lt;br&gt;
f[ile]........................display menu of programs set for the file type&lt;br&gt;
fin[d] pattern........display results of find command in the menu&lt;br&gt;
gr[ep] pattern.......display results of grep command in the menu&lt;br&gt;
his[tory]..................display a menu with list of visited directories&lt;br&gt;
jobs..........................display menu of current backgrounded processes&lt;br&gt;
locate filename.....menu of file names&lt;br&gt;
lstrash.....................display a menu with list of files in trash&lt;br&gt;
marks......................display menu of all marks&lt;br&gt;
media......................display media management menu&lt;br&gt;
nmap.......................mappings for normal mode&lt;br&gt;
plugins....................display plugins menu&lt;br&gt;
qmap.......................mappings for view mode&lt;br&gt;
reg[isters]...............display menu with registers content&lt;br&gt;
trashes....................list all valid trash directories in a menu&lt;br&gt;
undol[ist]................display list of latest changes&lt;br&gt;
ve[rsion]..................display menu with version information&lt;br&gt;
vmap........................same as vnoremap - mappings for visual mode&lt;br&gt;
volumes...................display menu with volume list&lt;/p&gt;
&lt;p&gt;Feel free to correct me or update the list - I will be grateful&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2434/all-menus-available</guid>
<pubDate>Thu, 26 Mar 2026 17:29:09 +0000</pubDate>
</item>
<item>
<title>Howto compare files ?</title>
<link>https://q2a.vifm.info/2432/howto-compare-files</link>
<description>&lt;p&gt;Hi,&lt;br&gt;
How can I compare 2 selected files, either in the same directory/pane or not ?&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2432/howto-compare-files</guid>
<pubDate>Tue, 24 Mar 2026 08:59:29 +0000</pubDate>
</item>
<item>
<title>Folder name with dot</title>
<link>https://q2a.vifm.info/2423/folder-name-with-dot</link>
<description>&lt;p&gt;Is there a way to make vifm not to separate the text after the last dot in a folder name? It considers it as extension and move it to the right side where all the file extensions are. I prefer it doesn't do this for folders.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2423/folder-name-with-dot</guid>
<pubDate>Wed, 11 Mar 2026 23:21:25 +0000</pubDate>
</item>
<item>
<title>recall last selection</title>
<link>https://q2a.vifm.info/2419/recall-last-selection</link>
<description>&lt;p&gt;a feature that I find useful, grep on selected folders or files.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;1st method:&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;position on the desired folders or files and press the&lt;code&gt; t &lt;/code&gt;key and repeat - once the selection is made - run the grep command for example:&lt;/p&gt;
&lt;p&gt;search for the string &quot;main thread&quot; with:&lt;br&gt;
&lt;code&gt; :grep main thread&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;2nd method:&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;in visual mode with the &lt;code&gt;v&lt;/code&gt; key and leaving it with &lt;code&gt;Enter&lt;/code&gt; to keep the selection and re-entering with &lt;code&gt;av&lt;/code&gt; to select more files. Then grep. &lt;/p&gt;
&lt;p&gt;How to recall the lost selection (a bit like &lt;a rel=&quot;nofollow&quot; href=&quot;https://vifm.info/docs/vifm-app.txt#vifm-%3Acopen&quot;&gt;copen&lt;/a&gt;) after the grep command ?&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2419/recall-last-selection</guid>
<pubDate>Sun, 08 Mar 2026 17:24:38 +0000</pubDate>
</item>
<item>
<title>Automatic switch between light and dark themes</title>
<link>https://q2a.vifm.info/2416/automatic-switch-between-light-and-dark-themes</link>
<description>&lt;p&gt;Probably via OSC 10/11 or similar.&lt;/p&gt;
&lt;p&gt;Use case: user switches theme on the fly (well-supported in GTK3/4, QT5/6, vim/neovim, many terminal emulators, etc).&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2416/automatic-switch-between-light-and-dark-themes</guid>
<pubDate>Thu, 26 Feb 2026 09:15:58 +0000</pubDate>
</item>
<item>
<title>Three Letter Marker for filter</title>
<link>https://q2a.vifm.info/2411/three-letter-marker-for-filter</link>
<description>&lt;p&gt;As we know, there are &lt;a rel=&quot;nofollow&quot; href=&quot;https://vifm.info/docs/vifm-app.txt#vifm-filters&quot;&gt;three basic file filters&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I have reviewed all the questions asked and answered - using the topic &lt;code&gt;filter&lt;/code&gt; - and I did not find an equivalent.&lt;/p&gt;
&lt;p&gt;Is it possible to add a three-letter indicator to the status bar ?&lt;/p&gt;
&lt;p&gt;First indicator D when there is a filter for files starting with a dot. Second indicator L when at least one or more files are filtered by the local filter. Third indicator P when at least one or more files are filtered by the permanent filter.&lt;/p&gt;
&lt;p&gt;So the possible values would be either Nothing, or D, or L, or P, or DL, or DLP, or LP, or DP.&lt;/p&gt;
&lt;p&gt;Concerning a counter that counts the total number of filtered files, I already have one.&lt;/p&gt;
&lt;p&gt;Thank you for your suggestions and your helpful advice&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2411/three-letter-marker-for-filter</guid>
<pubDate>Mon, 16 Feb 2026 19:01:25 +0000</pubDate>
</item>
<item>
<title>File/folder count on the bottom right corner</title>
<link>https://q2a.vifm.info/2402/file-folder-count-on-the-bottom-right-corner</link>
<description>&lt;p&gt;Hello, Is there a way to have the file/folder count on the bottom right corner (2/2 in the attached snapshot) to not count the first row (dot) or just show zero when the cursor is on dot? This way the second number is the correct file/folder count in the folder.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://q2a.vifm.info/?qa=blob&amp;amp;qa_blobid=14477610200369899383&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2402/file-folder-count-on-the-bottom-right-corner</guid>
<pubDate>Wed, 11 Feb 2026 21:17:19 +0000</pubDate>
</item>
<item>
<title>synchronize vifm with Xviewer</title>
<link>https://q2a.vifm.info/2395/synchronize-vifm-with-xviewer</link>
<description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;say I have 100 pictures&lt;code&gt; 1.jpg &lt;/code&gt; &lt;code&gt;2.jpg&lt;/code&gt; ...&lt;code&gt; 100.jpg&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;To see the first one, I move on it in VIFM and press ENTER&lt;/p&gt;
&lt;p&gt; It opens the picture in Xviewer, then I can go to the next picture with arrow right.... until &lt;code&gt;10.jpg&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;After exiting Xviewer the VIFM cursor stays on &lt;code&gt;1.jpg&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Is there a way to synchronize VIFM cursor with Xviewer after leaving it ?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2395/synchronize-vifm-with-xviewer</guid>
<pubDate>Tue, 10 Feb 2026 20:44:26 +0000</pubDate>
</item>
<item>
<title>behavior Enter Key</title>
<link>https://q2a.vifm.info/2392/behavior-enter-key</link>
<description>&lt;p&gt;When using the Lenovo Z51 laptop, I like to use the key with a square and a cross inside (called stop/exit) which closes the active window like Alt-F4 would.&lt;/p&gt;
&lt;p&gt;With VIFM, when I open a Vim document with the &lt;code&gt;ee&lt;/code&gt; key that I mapped as follows: &lt;code&gt;nnoremap ee :execute '!' $VIFM_TERMINAL ' vim %c &amp;amp;'&amp;lt;cr&amp;gt;&lt;/code&gt; and I close the document with the stop/exit key, VIFM remains open.&lt;/p&gt;
&lt;p&gt;However, open a Vim document in VIFM by pressing the Enter key and then close it with the stop/exit key, the Vim document closes and VIFM closes too. How can I make the Enter key behave the same way as the ee mapping? Thank you.&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2392/behavior-enter-key</guid>
<pubDate>Thu, 22 Jan 2026 11:18:19 +0000</pubDate>
</item>
<item>
<title>open file with the second filetype command from :file</title>
<link>https://q2a.vifm.info/2385/open-file-with-the-second-filetype-command-from-file</link>
<description>&lt;p&gt;Hello,&lt;br&gt;
I was wondering if there is a quick way to open a file using the second command in the list of Filetype associated commands from :file command? &lt;br&gt;
Thank you&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2385/open-file-with-the-second-filetype-command-from-file</guid>
<pubDate>Sun, 04 Jan 2026 03:26:40 +0000</pubDate>
</item>
<item>
<title>Zoom preview window</title>
<link>https://q2a.vifm.info/2382/zoom-preview-window</link>
<description>&lt;p&gt;There are situations when preview does not fit on screen (say a markdown with long lines, etc).&lt;/p&gt;
&lt;p&gt;It is indeed possible to make vifm show a single pane/side (&lt;code&gt;&amp;lt;C-w&amp;gt;o&lt;/code&gt;), however doing the same in preview raises &lt;em&gt;&quot;Can't leave preview window alone on the screen&quot;&lt;/em&gt;. Is there a strong reason for it?&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2382/zoom-preview-window</guid>
<pubDate>Fri, 02 Jan 2026 23:32:57 +0000</pubDate>
</item>
<item>
<title>Show only symlinks</title>
<link>https://q2a.vifm.info/2373/show-only-symlinks</link>
<description>&lt;p&gt;Is it possible to have a simple view displaying &lt;em&gt;only&lt;/em&gt; the symlinks?&lt;/p&gt;
&lt;p&gt;&lt;code&gt;command! LnOnly :find . -t l -H --max-depth=1&lt;/code&gt; works, but it shows them in the &quot;menu view&quot; which is rather useless in this case.&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2373/show-only-symlinks</guid>
<pubDate>Thu, 01 Jan 2026 05:32:00 +0000</pubDate>
</item>
<item>
<title>Locked (permanent) tabs</title>
<link>https://q2a.vifm.info/2372/locked-permanent-tabs</link>
<description>&lt;p&gt;Total Commander has this neat &quot;locked tabs&quot; functionality so that a particular set of tabs is always present. &lt;/p&gt;
&lt;p&gt;Navigating from a &quot;locked&quot; tab automatically creates a new one. This allows to have a set of frequently visited places always at hand and edit them on the fly (lock/unlock/rename).&lt;/p&gt;
&lt;p&gt;Together with the tabs surviving the application restart it creates rather convenient environment for managing files at scale.&lt;/p&gt;
&lt;p&gt;Admittedly, the functionality is &lt;em&gt;somewhat&lt;/em&gt; similar to marks, but feels less rigid as it does not require editing the config.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;Somewhat related to &lt;a rel=&quot;nofollow&quot; href=&quot;https://q2a.vifm.info/661/there-automatically-set-tabs-and-jump-specified-directories&quot;&gt;https://q2a.vifm.info/661/there-automatically-set-tabs-and-jump-specified-directories&lt;/a&gt;&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2372/locked-permanent-tabs</guid>
<pubDate>Thu, 01 Jan 2026 05:00:59 +0000</pubDate>
</item>
<item>
<title>Hide progress dialogue</title>
<link>https://q2a.vifm.info/2371/hide-progress-dialogue</link>
<description>&lt;p&gt;With &lt;code&gt;set uioptions=iodetails&lt;/code&gt; progress dialogue is shown by default.&lt;/p&gt;
&lt;p&gt;How can it be hidden?&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2371/hide-progress-dialogue</guid>
<pubDate>Thu, 01 Jan 2026 04:23:54 +0000</pubDate>
</item>
<item>
<title>show UID only</title>
<link>https://q2a.vifm.info/2354/show-uid-only</link>
<description>&lt;p&gt;is there a way to force showing uid only and not username with uid as fallback? because I get flapping and inconsistent results even on the same user, sometimes it shows as uid and sometimes as name&lt;/p&gt;
&lt;p&gt;here are two example&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;set viewcolumns=-{name}..,6{},5{uid}.

set statusline=&quot;%6u:%-6g&quot;
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2354/show-uid-only</guid>
<pubDate>Wed, 24 Dec 2025 09:19:31 +0000</pubDate>
</item>
<item>
<title>Image preview issue in vifm after upgrading kitty</title>
<link>https://q2a.vifm.info/2349/image-preview-issue-in-vifm-after-upgrading-kitty</link>
<description>&lt;p&gt;I have been using this to preview images in vifm running in kitty:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
    \ kitten icat --silent --transfer-mode=file --place=%pwx%ph@%pxx%py %c &amp;gt;/dev/tty &amp;lt;/dev/tty %N
    \ %pc
    \ kitten icat --clear --silent &amp;gt;/dev/tty &amp;lt;/dev/tty %N
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It has been working great.&lt;/p&gt;
&lt;p&gt;Recently I upgraded my kitty (no changes in vifm), and now the preview works for one or two images and then it starts to blink and turns black. As soon as I move the mouse it shows the preview.&lt;/p&gt;
&lt;p&gt;I was wondering if you any opinion on what might be causing this and how to resolve this.&lt;br&gt;
Thank you.&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2349/image-preview-issue-in-vifm-after-upgrading-kitty</guid>
<pubDate>Mon, 22 Dec 2025 00:25:32 +0000</pubDate>
</item>
<item>
<title>prompt sudo password</title>
<link>https://q2a.vifm.info/2347/prompt-sudo-password</link>
<description>&lt;p&gt;is there a way to prompt for sudo password inside vifm when accessing restricted directories, copy/moving files ecc, without executing vifm as root?&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2347/prompt-sudo-password</guid>
<pubDate>Sun, 21 Dec 2025 12:34:51 +0000</pubDate>
</item>
<item>
<title>Different font for text and icons</title>
<link>https://q2a.vifm.info/2326/different-font-for-text-and-icons</link>
<description>&lt;p&gt;I like Mono fonts for vifm, e.g. JetBrains Mono. However, they seem to have small/monospaced icons. Is there a way to use JetBrains Mono for texts (file/folder names) and another fonts for icons (left side of the texts)?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2326/different-font-for-text-and-icons</guid>
<pubDate>Mon, 08 Dec 2025 17:01:45 +0000</pubDate>
</item>
<item>
<title>fileviewer: catchall for readable and non-readable files</title>
<link>https://q2a.vifm.info/2323/fileviewer-catchall-for-readable-and-non-readable-files</link>
<description>&lt;p&gt;at the bottom of all fileviewers I would like to create a catchall fileviewer (maybe two?) that execute a program if the file under cursor has readable text, and another program if it doesn't have readable text (like .iso, .exe, .py ecc); would that be feasible?&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2323/fileviewer-catchall-for-readable-and-non-readable-files</guid>
<pubDate>Thu, 04 Dec 2025 15:50:32 +0000</pubDate>
</item>
<item>
<title>selects files/folders matching a pattern</title>
<link>https://q2a.vifm.info/2313/selects-files-folders-matching-a-pattern</link>
<description>&lt;p&gt;How can I select files/folders in the current directory that match a patern, e.g. jpg extension or partial filename.&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2313/selects-files-folders-matching-a-pattern</guid>
<pubDate>Wed, 26 Nov 2025 16:23:56 +0000</pubDate>
</item>
<item>
<title>add automatic increasing numbering to a list of files/folders</title>
<link>https://q2a.vifm.info/2312/add-automatic-increasing-numbering-to-list-of-files-folders</link>
<description>&lt;p&gt;How can I add automatic increasing numbering to the beginning or end of a list of selected files/folders?&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2312/add-automatic-increasing-numbering-to-list-of-files-folders</guid>
<pubDate>Wed, 26 Nov 2025 15:56:51 +0000</pubDate>
</item>
<item>
<title>flat view - files starting with dot</title>
<link>https://q2a.vifm.info/2309/flat-view-files-starting-with-dot</link>
<description>&lt;p&gt;I am using this command to see a flat view of my current folder:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;:!fd%u&amp;lt;cr&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It doesn't shows the files starting with dot. Is there a way to make it to show everything?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2309/flat-view-files-starting-with-dot</guid>
<pubDate>Tue, 25 Nov 2025 19:41:25 +0000</pubDate>
</item>
<item>
<title>macro for custom view</title>
<link>https://q2a.vifm.info/2302/macro-for-custom-view</link>
<description>&lt;p&gt;I'm currently using a filextype configuration that execute a system command that uses vifm &lt;code&gt;%d&lt;/code&gt; macro.&lt;br&gt;
Would be possible  to replace the &lt;code&gt;%d&lt;/code&gt; with a macro that reference the current custom view if file is executed from such custom view?&lt;br&gt;
For the system command to interact with custom view files like this, should a temporary directory be created with custom view files symlinked inside it?&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2302/macro-for-custom-view</guid>
<pubDate>Sun, 23 Nov 2025 10:56:47 +0000</pubDate>
</item>
<item>
<title>shortcut for relativenumber</title>
<link>https://q2a.vifm.info/2289/shortcut-for-relativenumber</link>
<description>&lt;p&gt;In VIFM, when you have the &quot;set relativenumber&quot; option in vifmrc, you get numbers displayed in front of files and folders, relative to the cursor's position.&lt;/p&gt;
&lt;p&gt;Until now, when I wanted to enter a folder located 10 lines above the cursor, I would type 10, then the up arrow key, and then the Enter key. I was wondering if it's possible to create a shortcut by typing the number and then the 'u' key (for up) – which would have the effect of directly entering the folder or opening the file. For example, &lt;code&gt;10u&lt;/code&gt; would replace 10 + up arrow + Enter. The same for &lt;code&gt;10d&lt;/code&gt; which would have the effect of entering the folder located below the cursor.&lt;/p&gt;
&lt;p&gt;Thanks for your advice and keep up the good work in developing this &quot;terrible&quot; program.&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2289/shortcut-for-relativenumber</guid>
<pubDate>Thu, 06 Nov 2025 08:43:10 +0000</pubDate>
</item>
<item>
<title>Blink cursor</title>
<link>https://q2a.vifm.info/2285/blink-cursor</link>
<description>&lt;p&gt;Hello there!&lt;/p&gt;
&lt;p&gt;I use tmux and sometimes it's not obvious which pane I'm currently in. I'd like to be able to blink the cursor or otherwise provide some feedback. Is there a way to do this?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2285/blink-cursor</guid>
<pubDate>Sun, 02 Nov 2025 15:10:37 +0000</pubDate>
</item>
<item>
<title>Open vifm with multiple tabs</title>
<link>https://q2a.vifm.info/2284/open-vifm-with-multiple-tabs</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In case anyone wants to open a specified set of tabs when opening vifm but doesn't want to duplicate them when reloading&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&quot; Open vifm with three tabs per pane. The first tab of each pane is in current
&quot; directory. Remaining are home directory.
&quot;-------------------------------------------------------------------------------
if tabpagenr(&quot;$&quot;) == 1
    windo tabnew
    cd ~ ~
    windo tabnew
    cd ~ ~
    tabnext 1
    winc w
    tabnext 1
    winc w
endif
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2284/open-vifm-with-multiple-tabs</guid>
<pubDate>Tue, 28 Oct 2025 14:59:51 +0000</pubDate>
</item>
<item>
<title>Sync tabs (like :sync for panes)</title>
<link>https://q2a.vifm.info/2283/sync-tabs-like-sync-for-panes</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I added commands to my &lt;code&gt;$MYVIFMRC&lt;/code&gt; that can synchronize the view of the next tab to the current pane's directory or directory under the current cursor. Just posting it here in case it's useful for anyone else and in case anyone wants to suggest another alternative.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&quot; Sync next tab to current directory
command! TabSync : let $DIR_CUR = &quot;%d&quot;
                \| tabnext
                \| cd &quot;$DIR_CUR&quot;
                \| tabprev
nnoremap &amp;lt;a-u&amp;gt; :TabSync&amp;lt;cr&amp;gt;
&quot; Sync next tab to directory under cursor
command! TabSyncCursor : let $DIR_CUR = &quot;%c&quot;
                      \| tabnext
                      \| cd &quot;$DIR_CUR&quot;
                      \| tabprev
nnoremap &amp;lt;a-p&amp;gt; :TabSyncCursor&amp;lt;cr&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I use it in combination with other &lt;code&gt;sync&lt;/code&gt; keymaps like below:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&quot; Sync other pane to current directory
nnoremap &amp;lt;a-i&amp;gt; :sync&amp;lt;cr&amp;gt;
&quot; Sync other pane to directory under cursor
nnoremap &amp;lt;a-o&amp;gt; :sync %c&amp;lt;cr&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2283/sync-tabs-like-sync-for-panes</guid>
<pubDate>Tue, 28 Oct 2025 14:45:38 +0000</pubDate>
</item>
<item>
<title>catch-all preview</title>
<link>https://q2a.vifm.info/2280/catch-all-preview</link>
<description>&lt;p&gt;at the bottom of my configuration I would like to create a catch-all like preview, one for all files that contains readable text and one, below, for all other files, how can I achieve this without manually specify file extensions?&lt;/p&gt;
&lt;p&gt;I tried with&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;fileviewer &amp;lt;text/plain&amp;gt; mycommand
fileviewer * mycommand
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;but I'm missing something in the logic.&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2280/catch-all-preview</guid>
<pubDate>Tue, 28 Oct 2025 07:58:26 +0000</pubDate>
</item>
<item>
<title>proposition for improving message : 1 file inserted</title>
<link>https://q2a.vifm.info/2278/proposition-for-improving-message-1-file-inserted</link>
<description>&lt;p&gt;VIFM version 0.14.3&lt;/p&gt;
&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;After yanking a file with &lt;code&gt;yy&lt;/code&gt; I have the message :&lt;code&gt; 1 file yanked&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Then I move in another directory and I copy it with &lt;code&gt;p&lt;/code&gt; or move it with &lt;code&gt;P&lt;/code&gt; - in both cases the message is : &lt;code&gt;1 file inserted&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;what about this little modification&lt;/p&gt;
&lt;p&gt;for copying with &lt;code&gt;p&lt;/code&gt; let the message as is:  &lt;code&gt;1 file inserted&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;and for moving with &lt;code&gt;P&lt;/code&gt; change the message to:  &lt;code&gt;1 file moved&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your time and appreciate your feedback&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2278/proposition-for-improving-message-1-file-inserted</guid>
<pubDate>Mon, 27 Oct 2025 15:38:41 +0000</pubDate>
</item>
<item>
<title>File highlight broken?</title>
<link>https://q2a.vifm.info/2275/file-highlight-broken</link>
<description>&lt;p&gt;Several files with the same extension (like .pdf or .jpg) don't get a correct highlight color whereas others do.&lt;/p&gt;
&lt;p&gt;A few lines of my .config/vifm/colors/Default-256.vifm:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;highlight {*.doc,*.docx} cterm=none ctermfg=122 ctermbg=default
highlight {*.pdf} cterm=none ctermfg=160 ctermbg=default&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;.jpg highlight is set by default under &quot; images&lt;br&gt;
.pdf highlight is removed from &quot; documents ... section&lt;/p&gt;
&lt;p&gt;This should highlight all files with .pdf or .docx in their respective colors.&lt;br&gt;
But this isn't always the case:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://q2a.vifm.info/?qa=blob&amp;amp;qa_blobid=16474184119254448739&quot; alt=&quot;&quot;&gt;&lt;br&gt;
(even after renaming or even copying to another directory)&lt;/p&gt;
&lt;p&gt;What could this be? I've already checked for file size or length of file, but it doesn't make a difference.&lt;/p&gt;
&lt;p&gt;I use arch btw and kitty.&lt;/p&gt;
&lt;p&gt;Help much appreciated.&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2275/file-highlight-broken</guid>
<pubDate>Fri, 10 Oct 2025 14:53:06 +0000</pubDate>
</item>
<item>
<title>Open .xlsx file with sc-im</title>
<link>https://q2a.vifm.info/2270/open-xlsx-file-with-sc-im</link>
<description>&lt;p&gt;MacOS, iTerm2. The CLI command &lt;code&gt;sc-im &amp;lt;filename&amp;gt;.xlsx&lt;/code&gt; opens the file for editing. Accordingly, in vifm with the file selected, &lt;code&gt;:!sc-im %c&lt;/code&gt; (or &lt;code&gt;%f&lt;/code&gt;) opens the file.&lt;/p&gt;
&lt;p&gt;I have added &lt;code&gt;filetype *.xlsx sc-im %f &amp;amp;&lt;/code&gt; to vifmrc. When I do &lt;code&gt;:file&lt;/code&gt; on a *.xlsx entry I get a &lt;code&gt;[present] sc-im %f &amp;amp;&lt;/code&gt;, and also a &lt;code&gt;[present] open -a LibreOffice.app&lt;/code&gt; but I don't have LO installed.&lt;/p&gt;
&lt;p&gt; Pressing enter when a .xlsx entry is highlighted I get &lt;code&gt;Background Process Error: Device not configured&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Also tried adding the path: &lt;code&gt;filetype *.xlsx &quot;/usr/local/bin/sc-im&quot; %f &amp;amp;&lt;/code&gt;&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2270/open-xlsx-file-with-sc-im</guid>
<pubDate>Mon, 06 Oct 2025 02:35:14 +0000</pubDate>
</item>
<item>
<title>Filter by file permission</title>
<link>https://q2a.vifm.info/2267/filter-by-file-permission</link>
<description>&lt;p&gt;is possible to filter a directory content based on its file's permission?&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2267/filter-by-file-permission</guid>
<pubDate>Thu, 02 Oct 2025 10:21:31 +0000</pubDate>
</item>
<item>
<title>Look behind in filetype regex pattern.</title>
<link>https://q2a.vifm.info/2264/look-behind-in-filetype-regex-pattern</link>
<description>&lt;p&gt;Hello there!&lt;/p&gt;
&lt;p&gt;I have a question about customizing filetype associations.&lt;br&gt;
I want to have different filetype associations for non-tar &lt;code&gt;*.gz&lt;/code&gt; and &lt;code&gt;*.tar.gz&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;If I define it directly, like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;filetype {*.tar.gz} command-1
filetype {*.gz}     command-2
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;then command-2 obviously will be linked to tar files too.&lt;/p&gt;
&lt;p&gt;I have tried this way:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;#&quot;&gt;filetype {*.gz},!{*.tar.gz} command-2

or

filetype !{*.tar.gz},{*.gz} command-2
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But it not worked at all, it adds command-2 both to tar files and to all non-tar.gz (any other, like &lt;code&gt;txt,zip,avi&lt;/code&gt;, .etc).&lt;/p&gt;
&lt;p&gt;The best way I have found is to use regex with negative look behind pattern, like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;(?&amp;amp;lt;!\.tar)\.gz
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But as I understand, &lt;code&gt;POSIX&lt;/code&gt; regex does not support this, so is there simple way to do that? &lt;br&gt;
I want to avoid complex regex-es like in this SO &lt;a rel=&quot;nofollow&quot; href=&quot;https://stackoverflow.com/questions/15377469/posix-regular-expressions-excluding-a-word-in-an-expression&quot;&gt;question&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;P.S.: Many thanks for &lt;code&gt;VIFM&lt;/code&gt;, it is amazing software!&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2264/look-behind-in-filetype-regex-pattern</guid>
<pubDate>Mon, 29 Sep 2025 11:40:47 +0000</pubDate>
</item>
<item>
<title>cp -n warning popup</title>
<link>https://q2a.vifm.info/2262/cp-n-warning-popup</link>
<description>&lt;p&gt;Dear experts,&lt;/p&gt;
&lt;p&gt;vifm Is my preferred file manager. I am now on Linux Lite 7.4 and am using a version that I recently compiled from source (Version: 0.14.3, compiled Aug 19 2025 -&amp;gt; latest commit available at that date).&lt;/p&gt;
&lt;p&gt;When I yank an item and then paste/copy it to another location by pressing the &quot;p&quot; key I get an ascii warning popup stating:&lt;br&gt;
&quot;Background Process Error&quot;&lt;br&gt;
&quot;cp: warning: behavior of -n is non-portable and may change in the future; use --update=none instead&quot;.&lt;/p&gt;
&lt;p&gt;Since it is just a warning one can press Enter and the end result is as desired. However, since pasting files is an action that I perform with a certain regularity this message is becoming a small annoyance and I am looking for a way to suppress it.&lt;/p&gt;
&lt;p&gt;The best (or actually, the only) option that I can come up with myself is to remap to the shell command i.s.o. using the built-in paste:&lt;br&gt;
&lt;code&gt;nnoremap p :!cp -rp --update=none %&quot;r&quot; %&quot;d&amp;lt;cr&amp;gt;&lt;/code&gt;&lt;br&gt;
At first glance this seems to work, though I have not tested it extensively yet. The clone command associated to the &quot;C&quot; key results in the same warning, but I haven't figured out yet how to remap that one due to the &lt;code&gt;[count]&lt;/code&gt; part that may precede it.&lt;/p&gt;
&lt;p&gt;What is the advice of the experts w.r.t. suppressing the persistent warning popup? Is the remap mentioned above ok, or is there a better way to suppress the &quot;may change in the future&quot; warning?&lt;/p&gt;
&lt;p&gt;Thanks so much for this awesome software and all the hard and terribly appreciated work in maintaining it as well as the Q&amp;amp;A forums!&lt;/p&gt;
&lt;p&gt;ps.&lt;br&gt;
My apologies if this is a repeated question.&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2262/cp-n-warning-popup</guid>
<pubDate>Sat, 13 Sep 2025 19:50:28 +0000</pubDate>
</item>
<item>
<title>Unsuccessful key binding (F3 and F4 keys)</title>
<link>https://q2a.vifm.info/2258/unsuccessful-key-binding-f3-and-f4-keys</link>
<description>&lt;p&gt;I am very impressed with vifm capabilities, however I have found some strange behavior when pressing F3 and F4 in normal mode. Pressing F3 does nothing, and pressing F4 brings up the sort option dropdown menu, although vifmrc specifies &lt;code&gt;nnoremap &amp;lt;f3&amp;gt; :!less %c&amp;lt;cr&amp;gt;&lt;/code&gt; and &lt;code&gt;nnoremap &amp;lt;f4&amp;gt; :edit %c&amp;lt;cr&amp;gt;&lt;/code&gt;. However, the &lt;code&gt;:edit %c&lt;/code&gt; command works correctly: it opens the file in vim. The terminal is &lt;code&gt;xterm-color&lt;/code&gt;, the &lt;code&gt;$TERM&lt;/code&gt; variable is set via .Xresources and has the correct value (&lt;code&gt;xterm-color&lt;/code&gt;). I would be glad if someone could explain what is wrong.&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2258/unsuccessful-key-binding-f3-and-f4-keys</guid>
<pubDate>Sat, 06 Sep 2025 05:53:29 +0000</pubDate>
</item>
<item>
<title>How to expand macros when adding bookmarks</title>
<link>https://q2a.vifm.info/2251/how-to-expand-macros-when-adding-bookmarks</link>
<description>&lt;p&gt;How can I expand a macro when using the &lt;code&gt;:bmark&lt;/code&gt; command? &lt;br&gt;
e.g. &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nmap B :bmark %c %c:h
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The goal is to write a shortcut where I can add a bookmark and expand it's path as the tag argument.&lt;/p&gt;
&lt;p&gt;Desired end result looks like this:&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://0x0.st/KHPt.png&quot;&gt;https://0x0.st/KHPt.png&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I don't know how I was able to do this before.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2251/how-to-expand-macros-when-adding-bookmarks</guid>
<pubDate>Fri, 29 Aug 2025 18:04:18 +0000</pubDate>
</item>
<item>
<title>How to 'detatch' an edit?</title>
<link>https://q2a.vifm.info/2235/how-to-detatch-an-edit</link>
<description>&lt;p&gt;If I want vifm to open the config file in a new window how would I do this?&lt;br&gt;
Given these two lines, I'd want the bottom one to behave similarly to the top one.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&quot; Edit vifmrc and apply settings after returning to vifm
nnoremap ,c :write | edit $MYVIFMRC | restart full&amp;lt;cr&amp;gt;

&quot; Edit vifmrc in separate window, apply settings after returning to vifm
nnoremap ,C :write | :execute('foot nvim $MYVIFMRC') | :restart full &amp;lt;cr&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Previously, this used &lt;code&gt;:!gvim&lt;/code&gt; with the &lt;code&gt;--remote-tab-silent&lt;/code&gt; flag. This allowed for &quot;detatching&quot; the config file for editing while the original window remains in vifm.&lt;/p&gt;
&lt;p&gt;Forgive me for the formatting, I am not familliar with how Q2A handles markdown&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2235/how-to-detatch-an-edit</guid>
<pubDate>Sun, 17 Aug 2025 22:18:12 +0000</pubDate>
</item>
<item>
<title>How to `ga` or `gA` every file and directory on open?</title>
<link>https://q2a.vifm.info/2227/how-to-ga-or-ga-every-file-and-directory-on-open</link>
<description>&lt;p&gt;I'd like vifm to display filesize of every file/directory I can see at all times without having to &lt;code&gt;vjj...gA&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Is this inadvisable? Would it slow vifm down considerably?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2227/how-to-ga-or-ga-every-file-and-directory-on-open</guid>
<pubDate>Sun, 17 Aug 2025 14:46:26 +0000</pubDate>
</item>
<item>
<title>How would one toggle an executable?</title>
<link>https://q2a.vifm.info/2223/how-would-one-toggle-an-executable</link>
<description>&lt;p&gt;I've tried a few variations of this and don't see any examples or questions about it.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;vimscript&quot;&gt;\| command togglex :
\|   if test -x %c
\|     chmod -x %c
\|   else
\|     chmod +x %c
\|   endif

&quot; Toggle executable
&quot; map * &amp;lt;nop&amp;gt;
map \* togglex
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2223/how-would-one-toggle-an-executable</guid>
<pubDate>Sun, 17 Aug 2025 06:44:25 +0000</pubDate>
</item>
<item>
<title>Archive mounts on macOS</title>
<link>https://q2a.vifm.info/2218/archive-mounts-on-macos</link>
<description>&lt;p&gt;What is the proper way for mounting archives on a recent version of macOS?&lt;br&gt;
FUSE is not natively supported by macOS.  There is a macfuse kext, but Apple is currently trying to move such things into userspace. There is fuse-t, but it seems to only have fuse-zip, so there is no support for .rar or .7z files.&lt;br&gt;
Are there any other ways to do this? Or did I miss something when looking at the aforementioned FUSE implementations?&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2218/archive-mounts-on-macos</guid>
<pubDate>Sat, 02 Aug 2025 11:53:23 +0000</pubDate>
</item>
<item>
<title>Questions about the Lua API</title>
<link>https://q2a.vifm.info/2215/questions-about-the-lua-api</link>
<description>&lt;p&gt;Thanks for the Lua plugin support. I've experimented a bit and have a couple of questions about the Lua API.&lt;/p&gt;
&lt;p&gt;I'm new to Lua, so some questions might be obvious. I've read &lt;a rel=&quot;nofollow&quot; href=&quot;https://wiki.vifm.info/index.php/Using_Lua_plugins&quot;&gt;https://wiki.vifm.info/index.php/Using_Lua_plugins&lt;/a&gt; and skimmed over &lt;code&gt;:help vifm-lua&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;1) Is the Lua API the only way to add a description to a key binding? As a workaround, I've been creating commands like &lt;code&gt;command! RootEditFile :!sudo $EDITOR %f&lt;/code&gt; and then adding a key binding to that command &lt;code&gt;nnoremap &amp;lt;Space&amp;gt;r :RootEditFile&amp;lt;CR&amp;gt;&lt;/code&gt;, but   &lt;code&gt;description = &quot;edit file as root&quot;&lt;/code&gt; is definitely a nicer way.&lt;/p&gt;
&lt;p&gt;2) According to the help file: &quot;Builtin &lt;code&gt;print()&lt;/code&gt; function puts messages to plugin's log (see |vifm-:plugins| menu).&quot; Where can I view these logs? Running &lt;code&gt;:plugins&lt;/code&gt; just shows a list of plugins. I've been using &lt;code&gt;vifm.sb.info('...')&lt;/code&gt; instead for logging, but that isn't ideal.&lt;/p&gt;
&lt;p&gt;3) Is there something built-in to pretty-print tables? In Neovim you can do &lt;code&gt;:lua print( vim.inspect( tbl ) )&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;4) A helper function like the following can pretty-print tables:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;lua&quot;&gt;local function print_table(tbl, indent)
  indent = indent or 0
  local formatting = string.rep(&quot;  &quot;, indent)
  for key, value in pairs(tbl) do
    local keyStr = tostring(key)
    if type(value) == &quot;table&quot; then
      vifm.sb.info(formatting .. keyStr .. &quot; = {&quot;)
      print_table(value, indent + 1)
      vifm.sb.info(formatting .. &quot;}&quot;)
    else
      vifm.sb.info(formatting .. keyStr .. &quot; = &quot; .. tostring(value))
    end
  end
end
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;How would one print, for example, &lt;code&gt;vifm.currview()&lt;/code&gt;, which is of type &lt;code&gt;Vifmview&lt;/code&gt;? I've also encountered the type &lt;code&gt;userdata&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;5) I expected there would be something like &lt;code&gt;vim.cmd()&lt;/code&gt; in Neovim, but if I understand correctly, it's impossible to call a built-in command like &lt;code&gt;:messages&lt;/code&gt; or &lt;code&gt;:normal! j&lt;/code&gt; from the Lua API? For the latter, there's an alternative (&lt;code&gt;local c = vifm.currview().cursor; c.pos = c.pos + 1&lt;/code&gt;), but for the former, there isn't?&lt;/p&gt;
&lt;p&gt;6) There isn't a way to run Lua from the Vifm command-line either, like &lt;code&gt;:lua print('foo')&lt;/code&gt; in Neovim?&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2215/questions-about-the-lua-api</guid>
<pubDate>Wed, 30 Jul 2025 15:25:02 +0000</pubDate>
</item>
<item>
<title>The cmdline blinks when running long string map key than screen width</title>
<link>https://q2a.vifm.info/2207/the-cmdline-blinks-when-running-long-string-than-screen-width</link>
<description>&lt;p&gt;Hello, when i run a mapped key which has very long map string than my screen width, the cmdline always blinks, even adding &quot;silent&quot; parameter after nnoremap, it also doesn't work, and I really don't like it.&lt;/p&gt;
&lt;p&gt;I wonder if there is any way to stop this blinking for such case?&lt;/p&gt;
&lt;p&gt;It's really appreciated to look forward to your answer, thanks.&lt;/p&gt;
&lt;p&gt;the below key map is for your reference, its map string is longer than my screen width.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nnoremap &amp;lt;silent&amp;gt; gT  :&amp;lt;c-u&amp;gt;
          \| if v:count == 0
          \|   exec 'normal gT'
          \| elseif v:count &amp;gt; tabpagenr('$')
          \|   tabmove
          \| elseif v:count &amp;gt;= tabpagenr()
          \|   exec 'tabmove' v:count
          \| elseif v:count &amp;lt; tabpagenr()
          \|   exec 'tabmove' v:count - 1
          \| endif
          \| &amp;lt;cr&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2207/the-cmdline-blinks-when-running-long-string-than-screen-width</guid>
<pubDate>Sat, 26 Jul 2025 08:40:32 +0000</pubDate>
</item>
<item>
<title>Misc feedback</title>
<link>https://q2a.vifm.info/2199/misc-feedback</link>
<description>&lt;p&gt;Here is some miscellaneous feedback I would like to share.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;p&gt;When deleting two &lt;em&gt;directories&lt;/em&gt;, you get the message &lt;code&gt;Are you sure you want to delete 2 files?&lt;/code&gt; and after confirmation the message &lt;code&gt;2 files deleted&lt;/code&gt;. Just a small detail, but I found it a bit confusing. Changing the wording to &lt;code&gt;2 items&lt;/code&gt; or &lt;code&gt;2 entries&lt;/code&gt; would encompass both files and directories.&lt;br&gt;
Another solution, but harder to implement than just changing the wording, would be to differentiate based on the type of entry: e.g. &lt;code&gt;2 directories deleted&lt;/code&gt; (in the case of only directories) or &lt;code&gt;1 directory and 3 files deleted&lt;/code&gt; (in the case of a mix of files and directories).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A &lt;code&gt;:messages clear&lt;/code&gt; (sub)command might be useful when debugging user commands, like in Vim.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I don't know if Vifm is to blame for this, but when using the AppImage version, FUSE mounts over SSH work very slowly, to the point of being almost unusable. The Homebrew version works just fine.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Is it possible to configure how often the file is reloaded when using automatic forwarding? It feels pretty slow at the moment. Some tests seem to indicate that it's only forwarded once every 10 seconds, while &lt;code&gt;tail -f&lt;/code&gt; reflects updates instantaneously.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The link to the &lt;code&gt;#vifm@Freenode&lt;/code&gt; IRC channel on the website should probably be changed to Libera Chat, or removed.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I noticed two very small typos in the documentation. I could make a PR, but I'm not sure how to do so because there is both &lt;code&gt;vifm-app.txt&lt;/code&gt; and &lt;code&gt;vifm.1&lt;/code&gt; and I assume one is generated based on the other.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;removed&lt;/code&gt; should be &lt;code&gt;remove&lt;/code&gt; in &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/vifm/vifm/blob/14bfbae98be2180925c7f448c960b4638eeb6095/data/vim/doc/app/vifm-app.txt#L1925&quot;&gt;https://github.com/vifm/vifm/blob/14bfbae98be2180925c7f448c960b4638eeb6095/data/vim/doc/app/vifm-app.txt#L1925&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;the word &lt;code&gt;is&lt;/code&gt; should be deleted in &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/vifm/vifm/blob/14bfbae98be2180925c7f448c960b4638eeb6095/data/vim/doc/app/vifm-app.txt#L3247&quot;&gt;https://github.com/vifm/vifm/blob/14bfbae98be2180925c7f448c960b4638eeb6095/data/vim/doc/app/vifm-app.txt#L3247&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Thanks a lot for the recent updates to Vifm!&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2199/misc-feedback</guid>
<pubDate>Tue, 15 Jul 2025 17:14:21 +0000</pubDate>
</item>
<item>
<title>how to make vifm choose a single file</title>
<link>https://q2a.vifm.info/2195/how-to-make-vifm-choose-a-single-file</link>
<description>&lt;p&gt;&lt;strong&gt;CONTEXT:&lt;/strong&gt; I am trying to use vifm as a &lt;strong&gt;xdg file chooser&lt;/strong&gt; using the &lt;code&gt;xdg-desktop-portal-termfilechooser&lt;/code&gt; library. But facing some limitations.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;vifm &lt;code&gt;--choose-files&lt;/code&gt; and &lt;code&gt;--choose-dir&lt;/code&gt; always prints a newline to &lt;code&gt;stdout&lt;/code&gt; when selection is abort/or no selection.&lt;/li&gt;
&lt;li&gt;vifm &lt;code&gt;--choose-files&lt;/code&gt; command line argument that lets user select one or multiple objects and then returns the selection. Unlike &lt;code&gt;ranger&lt;/code&gt;, vifm doesn't have a mechanism where only one selection is valid and in case multiple objects selected, it will block and show warning. Is there any plugin or method to simulate such behavior?&lt;/li&gt;
&lt;li&gt;Is there a navigation mode for normal command line operation? (afaik it only works in search mode)&lt;/li&gt;
&lt;/ul&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2195/how-to-make-vifm-choose-a-single-file</guid>
<pubDate>Tue, 15 Jul 2025 04:37:45 +0000</pubDate>
</item>
<item>
<title>How to spawn Erlang LSP server when editing Erlang source?</title>
<link>https://q2a.vifm.info/2191/how-to-spawn-erlang-lsp-server-when-editing-erlang-source</link>
<description>&lt;p&gt;When using standalone Vim, the Erlang Language Server works as expected, using the following CocConfig:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;{
  &quot;languageserver&quot;: {
    &quot;erlang&quot;: {
      &quot;command&quot;: &quot;erlang_ls&quot;,
      &quot;filetypes&quot;: [&quot;erlang&quot;]
    }
  }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But when I try to open and edit Erlang source files from within Vifm, I get the following error:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;erlang client: couldn't create connection to server.
Launching server using command erlang_ls failed. Error: spawn erlang_ls ENOENT
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;What command should I use in order to spawn the Erlang Lsp from within Vifm?&lt;/p&gt;
&lt;p&gt;Thank you in advance.&lt;/p&gt;
</description>
<category>vifm</category>
<guid isPermaLink="true">https://q2a.vifm.info/2191/how-to-spawn-erlang-lsp-server-when-editing-erlang-source</guid>
<pubDate>Fri, 11 Jul 2025 18:06:28 +0000</pubDate>
</item>
</channel>
</rss>