Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to configure VIM as my external editor in the far file manager. I want to be able to select multiple items in a folder, some being directories, and have their full paths passed to the vim command line.

Update: To clarify exactly what I want to do. I want to be able to select multiple files in a panel like so:

Far Manager Screen Capture

and have vim opened like this:

"C:\Program Files\Vim\vim73\vim.exe"  c:\src\TalkMaterials "c:\src\abba 1.txt" "c:\src\abba 3.txt"

This would open all the files in different buffers.

share|improve this question
Just to be sure: what are you trying to do: open a single file or several files selected files? !@AFQ! is about several selected files which names are written to a temp file X. Name X is sent to Vim in the command line. File X contains selected file names, quoted(!), I have just checked this. Everything looks right. So, what is wrong in your case? –  Roman Kuzmin Nov 6 '10 at 6:41
At least give an example of a correct command line (what you want to get) and tell what you actually get from Far. –  Roman Kuzmin Nov 6 '10 at 6:48
Perhaps it should be re-tagged to the existing tag far-manager. –  Roman Kuzmin Nov 7 '10 at 14:41
A couple of solutions using batch files are proposed in here: forum.farmanager.com/viewtopic.php?f=36&t=5851 –  Roman Kuzmin Jan 19 '11 at 3:54

2 Answers 2

up vote 2 down vote accepted

I have found the solution that does exactly what you are asking for. But it requires the plug-in FarNet and its module PowerShellFar:


They also need .NET 2.0+ and Windows PowerShell 2.0 installed. This is already the case on Windows 7 but earlier Windows versions are not so lucky. Besides, PowerShell 2.0 is only for Windows XP SP 3 and above (not even SP 2).

If you are not yet scared then here is the trick. In the external editor command we call PowerShellFar through its command line prefix ">:"

>: & vim @(Get-FarPath -Selected) #

That's it. It works, I have tried it (not with vim, though, I do not have one). It is fast, it does not start PowerShell each time; the core is loaded once when Far starts.

Note: The last '#' in the command is a little PowerShellFar convention: to not add to the persistent command history commands with '#' in the end. This command is for opening the external editor, it is written once and we do not want it to pollute the history of other commands typed manually.

P.S. I am the author of both FarNet and PowerShellFar, just in case. They are open source, mature and robust. I would recommend them in any case, as far as you use Far Manager and recent Windows has all the prerequisites for these tools.

share|improve this answer
That is really useful. It won't work on my windows 2008 server since its not R2, but it works on all my workstations. –  Justin Dearing Nov 7 '10 at 13:35

The closest I can come is vim !& this creates the following command line

"C:\Program Files\Vim\vim73\vim.exe"  TalkMaterials "abba 1.txt" "abba 3.txt"

That seems to work just fine, but I'd like full paths passed to vim anyway. Before accepting my own answer, I'd like to see if there is a way to pass all the full paths to vim.

share|improve this answer
Perhaps you should accept your own answer. According to the Far help there is no such a feature of "special symbols" as a list of full paths. Try to ask this question at the Far forum, I might miss something. Ask exactly about a list of full paths of several selected files. –  Roman Kuzmin Nov 6 '10 at 13:24
I made a feature request for this in mantis bugs.farmanager.com/view.php?id=1585 and I did also ask on the forum. forum.farmanager.com/… –  Justin Dearing Nov 11 '10 at 20:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.