in most GUI text editor I can use ctrl click to open multiple files at once. I can't do that in gvim.
What the gvim way to do it?
Tnx.

-edit- ...using gui way instead of command line.

link|improve this question
tnx 4 the answers but none are solutions that I really wanted. Btw, I use ubuntu linux. – user13932 Mar 21 '11 at 4:49
feedback

3 Answers

Easy:

gvim -p file1.c file3.c ...

or:

gvim -p *.c
link|improve this answer
feedback

gVim opens multiple files in buffers.

:tab ball

will open these buffers in their own tabs. I guess you could add this command to your _vimrc to make it happen each time gvim runs.


In Windows: gvimext.dll: Support loading files into a VIM tab

  1. Select multiple files (with CTRL-Click)
  2. Right-Click to get context menu
  3. Click "Edit with single Vim using tabs"
link|improve this answer
The extension DLL seems to be out of date. – atoumey Apr 11 at 16:24
@atourney: The extension DLL works fine for me. I'm using gVim 7.3.46 with Windows 7 64. – Leftium Apr 12 at 0:58
feedback

You can open multiple files in gvim. After you've selected the files you want to open, right-click and select "Edit with single Vim". Vim will initially display only the first file, but all the file names are in Vim's argument list. Execute

:n

to open each file in the list one at a time (:N to go back), or

:all

to see all the files at once, each in a different Vim window, or

:tab all

to see each in a different tab.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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