Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Vim/GVim Show Other Files within the Same Project while Editing a File? [closed]

Tags:

vim

ide

While I am editing a file in Vim, I need to see other available files to edit within the same project. Are there any project management features for Vim (GVim actually, if it makes any difference), either natively or in plugin form?

I'm not looking for anything extravagant, just something which will keep my files under one project name, and some sort of buffer which will display what files go under what project. You know what I mean, you see it in every IDE.

like image 854
Thomas Geritzma Avatar asked Jun 16 '09 15:06

Thomas Geritzma


People also ask

How do I view multiple files in vim?

Using windows. Ctrl-W w to switch between open windows, and Ctrl-W h (or j or k or l ) to navigate through open windows. Ctrl-W c to close the current window, and Ctrl-W o to close all windows except the current one. Starting vim with a -o or -O flag opens each file in its own split.

Can you open more than one file in vim without running a second instance?

You can open multiple files at the start of the Vim editing session from the command line, or at any time from inside the Vim editing session.

How do I go to the next file in Gvim?

After starting vim with a list of files, you can move to the next file by entering :next or :n for short. :wnext is short for write current changes and then move to next file; :wn is an abbreviation for :wnext .

How do I list files in vim?

In normal mode, type :e then press Space and Ctrl-D. That will list file names in the current directory.


1 Answers

NERDTree with bookmarks does the job for me. It's popular and has been updated recently, whereas Project hasn't been updated in a few years.

Commands

:Bookmark proj1 " to bookmark a directory :NERDTree proj1 " opens NERDTree with bookmarked directory set as tree root 

Even has handy filesystem commands for creating/deleting files/directories etc

like image 111
Nate K Avatar answered Oct 02 '22 18:10

Nate K