7

I am using gVim on Windows and facing the annoying thing of having a new gVim window opened whenever I open a new file. Is it possible to make it open a new tab in the same window?

Thanks, Rafid

Rafid
  • 18,991
  • 23
  • 72
  • 108
  • Possible duplicate of [Open files in existing Gvim in multiple (new) tabs](https://stackoverflow.com/questions/894811/open-files-in-existing-gvim-in-multiple-new-tabs) – Melebius Sep 18 '18 at 07:19
  • The solution is here: https://stackoverflow.com/questions/894811/open-files-in-existing-gvim-in-multiple-new-tabs/894857#894857 You just need to put some wrapper scripts/desktop icons around the solution. Another solution is documented here: http://vim.wikia.com/wiki/Launch_files_in_new_tabs_under_Windows – Sebi Aug 26 '10 at 11:16

1 Answers1

3

Also (more tedious but generally useful for other things) you can drag&drop files from Windows Explorer into gVim when the command line is active. If you type :e and then drop a file, the command line will be filled out with the full path to the file. You can do the same with :sp and :tabe; just remember to put the space after the command!

dash-tom-bang
  • 17,383
  • 5
  • 46
  • 62