<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Vifm Q&amp;A - Recent questions and answers in vifm.vim</title>
<link>https://q2a.vifm.info/qa/vifm-vim</link>
<description>Powered by Question2Answer</description>
<item>
<title>Answered: Is it possible to override only specific vifmrc settings when VIFM is called using vifm.vim plugin?</title>
<link>https://q2a.vifm.info/1820/possible-override-specific-vifmrc-settings-called-plugin?show=1821#a1821</link>
<description>&lt;p&gt;You can set &lt;code&gt;g:vifm_exec_args&lt;/code&gt; to something like &lt;code&gt;+'set vifm-=dhistory,...'&lt;/code&gt; to run one or more custom commands when Vifm is called from Vim.&lt;/p&gt;
&lt;p&gt;More extensible approach could be adding &lt;code&gt;+'source $VIFM/invim.vifm'&lt;/code&gt; and have a separate file for plugin-specific adjustments next to your &lt;code&gt;vifmrc&lt;/code&gt;.&lt;/p&gt;
</description>
<category>vifm.vim</category>
<guid isPermaLink="true">https://q2a.vifm.info/1820/possible-override-specific-vifmrc-settings-called-plugin?show=1821#a1821</guid>
<pubDate>Fri, 10 May 2024 16:26:18 +0000</pubDate>
</item>
<item>
<title>Answered: Issue with vim opening vifm selection during VimEnter &amp; BufEnter</title>
<link>https://q2a.vifm.info/1719/issue-with-opening-vifm-selection-during-vimenter-bufenter?show=1722#a1722</link>
<description>&lt;p&gt;You mean that the screen isn't restored?  It sounds like &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/vifm/vifm.vim/issues/44&quot;&gt;this issue&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I have &lt;code&gt;let g:vifm_embed_term = 1&lt;/code&gt; enabled and with it nothing is even opened, &lt;kbd&gt;Ctrl-C&lt;/kbd&gt; saves the day in this case.&lt;/p&gt;
&lt;p&gt;I'm inclined to believe Vim doesn't handle such things well in startup.  Maybe postponing processing via a timer can be a workaround as it is in some other cases.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;BufEnter&lt;/code&gt; doesn't seem to be involved, in the last part of the screencast you're running &lt;code&gt;vim .&lt;/code&gt; as well which defines the outcome.&lt;/p&gt;
</description>
<category>vifm.vim</category>
<guid isPermaLink="true">https://q2a.vifm.info/1719/issue-with-opening-vifm-selection-during-vimenter-bufenter?show=1722#a1722</guid>
<pubDate>Fri, 23 Feb 2024 23:07:30 +0000</pubDate>
</item>
<item>
<title>Answered: command! fails when screen! exists in rc file</title>
<link>https://q2a.vifm.info/956/command-fails-when-screen-exists-in-rc-file?show=958#a958</link>
<description>&lt;p&gt;You need to use &lt;a rel=&quot;nofollow&quot; href=&quot;https://vifm.info/vimdoc.shtml#vifm-%25n&quot;&gt;%n macro&lt;/a&gt; in the command to avoid use of terminal multiplexer for running it. Or move &lt;code&gt;git-add&lt;/code&gt; script somewhere in the &lt;code&gt;$PATH&lt;/code&gt; for tmux/screen, or add &lt;code&gt;~/.vifm/scripts&lt;/code&gt; to the &lt;code&gt;$PATH&lt;/code&gt;. &lt;/p&gt;
&lt;p&gt;The issue is that running a command in a new window doesn't inherit current &lt;code&gt;$PATH&lt;/code&gt;. It can actually be set, but only for all new windows as well (at least I think this was the case last time I checked).&lt;/p&gt;
</description>
<category>vifm.vim</category>
<guid isPermaLink="true">https://q2a.vifm.info/956/command-fails-when-screen-exists-in-rc-file?show=958#a958</guid>
<pubDate>Sat, 30 Oct 2021 15:13:02 +0000</pubDate>
</item>
<item>
<title>Answered: Is there a way to set different fileviewers depending on the folder?</title>
<link>https://q2a.vifm.info/764/is-there-way-set-different-fileviewers-depending-the-folder?show=768#a768</link>
<description>&lt;p&gt;See &lt;a rel=&quot;nofollow&quot; href=&quot;https://vifm.info/vimdoc.shtml#vifm-patterns&quot;&gt;patterns section&lt;/a&gt; of the documentation. In your case it will look something like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;fileviewer {{/path/to/SPECIALFOLDER/*.pdf}} myfancyscript %f

fileviewer *.pdf pdftotext -nopgbrk %c -
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;P.S. Looks like notification email got lost, saw the question just now.&lt;/p&gt;
</description>
<category>vifm.vim</category>
<guid isPermaLink="true">https://q2a.vifm.info/764/is-there-way-set-different-fileviewers-depending-the-folder?show=768#a768</guid>
<pubDate>Thu, 10 Dec 2020 19:23:26 +0000</pubDate>
</item>
<item>
<title>Answered: Vifm not recognized as an internal or external command in Windows</title>
<link>https://q2a.vifm.info/704/vifm-not-recognized-internal-or-external-command-in-windows?show=705#a705</link>
<description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Vim plugin doesn't include the application itself. You still need to download the application and either update  your &lt;code&gt;%PATH%&lt;/code&gt; with its location or configure the plugin similar to this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;let g:vifm = 'c:/programs/vifm/vifm.exe'
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The guy from YouTube already had Vifm installed.&lt;/p&gt;
</description>
<category>vifm.vim</category>
<guid isPermaLink="true">https://q2a.vifm.info/704/vifm-not-recognized-internal-or-external-command-in-windows?show=705#a705</guid>
<pubDate>Sat, 08 Aug 2020 15:30:40 +0000</pubDate>
</item>
<item>
<title>Answered: Got a non-zeo code from vifm: 1</title>
<link>https://q2a.vifm.info/622/got-a-non-zeo-code-from-vifm-1?show=625#a625</link>
<description>&lt;p&gt;What version of vifm are you using? It might be too old for the latest vifm.vim, in which case you'll need to downgrade the plugin.&lt;/p&gt;
</description>
<category>vifm.vim</category>
<guid isPermaLink="true">https://q2a.vifm.info/622/got-a-non-zeo-code-from-vifm-1?show=625#a625</guid>
<pubDate>Sat, 04 Apr 2020 12:43:55 +0000</pubDate>
</item>
<item>
<title>Answered: Error when opening a file using vifm in vim</title>
<link>https://q2a.vifm.info/527/error-when-opening-a-file-using-vifm-in-vim?show=528#a528</link>
<description>&lt;p&gt;It could be that writing to a temporary files which are used to communicate the result of running vifm has failed. Those files are created by Vim and should exist for a while though. You can try using Vim's builtin terminal or external terminal to see maybe it depends on how vifm is run.&lt;/p&gt;
&lt;p&gt;It would be nice to be able to reproduce it, otherwise it's hard to help especially when it doesn't happen every time.&lt;/p&gt;
</description>
<category>vifm.vim</category>
<guid isPermaLink="true">https://q2a.vifm.info/527/error-when-opening-a-file-using-vifm-in-vim?show=528#a528</guid>
<pubDate>Wed, 09 Oct 2019 10:50:10 +0000</pubDate>
</item>
</channel>
</rss>