On MS Windows using gVim, is it possible to select several files from the explorer and open them in the same instance of gVim in different buffers?At the moment if I select 3 different files on Windows graphical explorer and press enter they get open in 3 different instances of gVim. What I want is to open them in the same instance.When I work on linux and I want to edit all the files of a directory with vim I can simply from command line do the folowing:$ vim ./*.shThis will open all the files in the same instance of vim in different buffers. I'm looking for a way to do the same but from Windows GUI with gVim.Note 1: Using MS Windows command line is not an option here neither is using a cygwin console.Note 2: I know that I can open only one file and then, from gVim open the others but that would be slower than simply openning them all in one time from GUI.Note 3 (edit): Out of curiosity I just tried to do it on a Debian Jessie with a gVim 7.3 and it worked as I want (one instance - several buffers) out of the box with the same .vimrc as the one of the windows machine (without any .gvimrc file). So I deduce that:It is possible to do what I want.The behavior of gVim depends on the OS running it which is a little bit disturbing.
Gvim how to open several files in different buffers from MS Windows explorer
gvim;microsoft windows;filesystem;multiple files
By default gVim for Windows adds an option to the Explorer right-click menu that contains an option Edit with single Vim when multiple files are selected and that works as expected, opening them in a single window. That doesn't handle pressing Enter with multiple files selected though.There is a solution presented on the vim wiki though. In short, you need to modify the registry (using Registry Editor, regedit.exe) so that the appropriate file associations call gvim.exe with the --remote-tab-silent option. Searching for any occurrences of the vim executable with a full path and %1 as a parameter and changing them to include that parameter before the %1 should do it. I just did this and the only occurrence I found was:HKEY_CLASSES_ROOT\Applications\gvim.exe\shell\edit\commandSee below for the key after editing.Once the change was made, hitting Enter with multiple files associated with gVim opened them all in the same session.Note: You almost certainly need Administrator privileges to edit that registry key.