How to open a new file in the current directory with gvim on Windows?



As an IT administrator, it is important to be able to open new files in the current directory with GVim on Windows. This process can be done quickly and easily by following a few steps.

First, open the Command Prompt by navigating to the Start Menu and selecting “Command Prompt” from the Accessories section.

Once the Command Prompt window is open, navigate to the directory containing the file that you wish to open in GVim. To do this, type in the “cd” command followed by the path of the directory in which the file is located. For example, to navigate to the “Documents” folder on your C drive, type in the following command: cd C:\\Documents.

Once you have navigated to the desired directory, type in the command “gvim ” and press enter. This will open the file in GVim, with the file name shown in the title bar.

If you wish to open multiple files in GVim, you can simply type in the “gvim” command followed by each file name. For example, to open three files in GVim, type in the following command: gvim file1.txt file2.txt file3.txt.

If you wish to open all files in the current directory in GVim, you can use the command “gvim *”. This will open all files in the current directory in GVim, with each file name shown in the title bar.

Finally, if you wish to save the changes you have made to the file in GVim, simply press the “Ctrl” and “S” keys together. This will save the changes you have made to the file.

By following these steps, you can easily open new files in the current directory with GVim on Windows. This process is a quick and easy way to edit and save files in GVim.

Inquire Now

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Find your next full or part-time role here

ScaleDesk can either help you find your next full time gig or a part time side gig where you can create extra income!

Onboard with us once
Skip HR screening and go to the final interview with with only your resume and a video interview you never have to redo
Get paid electronically every month for the hours you work
We will be your reference even if you work for us once

IT Teams: Use ScaleDesk to augment your team

Schedule Demo