Using VIM as the external editor
Using VIM as the external editor
I am having trouble setting it up right. I am looking for some assistance. I have asked on superuser.com and have gotten no responses.
http://superuser.com/questions/206991/w ... farmanager
Any help appreciated.
http://superuser.com/questions/206991/w ... farmanager
Any help appreciated.
- NightRoman
- Posts: 6184
- Joined: Fri 18 Aug, 2006 13:52
- Location: Cambridge, UK
- Has thanked: 32 times
- Been thanked: 62 times
- Contact:
Re: Using VIM as the external editor
I would try to answer there (it's nice that you opened the farmanager tag) but your problem is not clear.
Just to be sure: what are you trying to do: open a single file or several 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?
Just to be sure: what are you trying to do: open a single file or several 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?
- NightRoman
- Posts: 6184
- Joined: Fri 18 Aug, 2006 13:52
- Location: Cambridge, UK
- Has thanked: 32 times
- Been thanked: 62 times
- Contact:
Re: Using VIM as the external editor
No, he wants a list of selected files with full paths. I think there is no such a feature of special symbols. At least I am not aware of it. Perhaps I miss something obvious in the help topic.
- NightRoman
- Posts: 6184
- Joined: Fri 18 Aug, 2006 13:52
- Location: Cambridge, UK
- Has thanked: 32 times
- Been thanked: 62 times
- Contact:
Re: Using VIM as the external editor
The solution found so far is to use the PowerShellFar command:
Code: Select all
>: & vim @(Get-FarPath -Selected) #
Re: Using VIM as the external editor
Thanks everyone for their help. I ended up selecting NightRoman's powershell answer on StackOverflow.
Should I make a feature request for a symbol that does what the powershell solution does?
Also I retagged my question with the existing far-manager tag. Someone with enough reputation should add a wiki to that tag:
http://superuser.com/questions/tagged/far-manager
Justin
Should I make a feature request for a symbol that does what the powershell solution does?
Also I retagged my question with the existing far-manager tag. Someone with enough reputation should add a wiki to that tag:
http://superuser.com/questions/tagged/far-manager
Justin
- NightRoman
- Posts: 6184
- Joined: Fri 18 Aug, 2006 13:52
- Location: Cambridge, UK
- Has thanked: 32 times
- Been thanked: 62 times
- Contact:
Re: Using VIM as the external editor
Anybody can make any feature request, see Mantis the bug-tracker. I think this feature might be useful, at least for completeness of special symbols. But it's up to the team indeed to decide when and how to respond, there are many requests and important issues/bugs, too. Another option is to implement it and propose the changes to the team; it's open source after all.zippy1981 wrote:Should I make a feature request for a symbol that does what the powershell solution does?
Re: Using VIM as the external editor
I made ther request. http://bugs.farmanager.com/view.php?id=1585NightRoman wrote:Anybody can make any feature request, see Mantis the bug-tracker. I think this feature might be useful, at least for completeness of special symbols.
Re: Using VIM as the external editor
zippy1981
Haven't you considered a possiblility to run vim not directly but from a batch file? You'd be able to get full paths of files you want to edit. And much more.
Haven't you considered a possiblility to run vim not directly but from a batch file? You'd be able to get full paths of files you want to edit. And much more.
Last edited by Raistlin on Tue 18 Jan, 2011 21:30, edited 1 time in total.
Magically yours
Raistlin
Raistlin
- NightRoman
- Posts: 6184
- Joined: Fri 18 Aug, 2006 13:52
- Location: Cambridge, UK
- Has thanked: 32 times
- Been thanked: 62 times
- Contact:
Re: Using VIM as the external editor
If you know the solution then it would be better to just show it than to talk in riddles. For example I am interested, too. But I do not quite see what you mean.Raistlin wrote:zippy1981
Haven't you considered a possiblility to run vim not directly but from a batch file? You'd be able to get full pathes of files you want to edit. And much more.
- HaRT
- Moderator
- Posts: 10866
- Joined: Tue 30 Aug, 2005 17:21
- Has thanked: 221 times
- Been thanked: 358 times
Re: Using VIM as the external editor
NightRoman
I believe Raistlin means something like called
I believe Raistlin means something like called
Фар есть инструмент, а не нянька. © 2009 DrKnS
Re: Using VIM as the external editor
HaRT
Actually, I meant the less effective way, yours is better. But we must take into account that files could contain '!' in their names.
Actually, I meant the less effective way, yours is better. But we must take into account that files could contain '!' in their names.
Last edited by Raistlin on Thu 01 Jan, 1970 01:00, edited 0 times in total.
Reason: Исправлено форматирование кода
Reason: Исправлено форматирование кода
Magically yours
Raistlin
Raistlin
- HaRT
- Moderator
- Posts: 10866
- Joined: Tue 30 Aug, 2005 17:21
- Has thanked: 221 times
- Been thanked: 358 times
Re: Using VIM as the external editor
Yes, my script fails for files with ‘!’ in their names, whereas yours fails for those with ‘%’.Raistlin wrote:files could contain '!' in their names
Фар есть инструмент, а не нянька. © 2009 DrKnS
Re: Using VIM as the external editor
To do this using just cmd.exe is the question of principle, definitely!HaRT wrote:Yes, my script fails for files with ‘!’ in their names, whereas yours fails for those with ‘%’.
Magically yours
Raistlin
Raistlin
- NightRoman
- Posts: 6184
- Joined: Fri 18 Aug, 2006 13:52
- Location: Cambridge, UK
- Has thanked: 32 times
- Been thanked: 62 times
- Contact:
Re: Using VIM as the external editor
Thanks, guys. It really looks good.
At the same time I have to admit that the request at Mantis still makes a lot of sense. What you both suggest is not practically possible to invent for the most of users on their own. That's where Far Manager should help with special symbols for command lines.
At the same time I have to admit that the request at Mantis still makes a lot of sense. What you both suggest is not practically possible to invent for the most of users on their own. That's where Far Manager should help with special symbols for command lines.