id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
4299	external vim editor on windows	silverqx		"Hi, I'm not able to setup up an external vim editor on windows. I'm using mc 4.8.24.

mc correctly picks up EDITOR env. variable, but the final command looks like this:

{{{
vim /C E:/another_dir/file.txt
}}}


So vim tries to open two files:
 - first file or in this case it tries to open /C folder at a current drive
 - and second file E:/another_dir/file.txt

The second problem is that file is not quoted, so when the command line looks like this:

{{{
vim /C E:/some dir/file.txt
}}}


Then it tries to open two folders and one file dir/file.txt.

I have also tried to add External parameters as is described in man pages:

{{{
[External editor or viewer parameters]
vim=%filename +%lineno
}}}

But without success, it looks like mc ignores this section, in the manpages is written: ""The option name should be equal to the name (full pathname) of external editor or viewer.""

I have tried various combinations.

The problem is also described here:
https://superuser.com/questions/1119591/defining-midnight-commanders-external-editor-on-windows

Anyway, it is not crucial whether [External editor or viewer parameters] works or not on windows, would be absolutely enough to correctly generate external editor command on windows.
That means remove that /C parameter from the beginning or replace it with -C because startup parameters for vim have to start with a dash and quote filepaths."	defect	closed	major		mc-core	4.8.24	invalid					no branch	
