Search code examples
vimpluginstext-editorproject

I just can't figure out Project Plugin in VIM


I am trying to use VIM for some programming. I am a total beginner in VIM. Could you guys please help me figure out Project Plugin

I can't understand the documentation. If you have used this plugin, could you tell me the basic steps to get started?


Solution

  • In order to configure the project plugin, you must edit the .vimprojects file. An example is given in the help

    :help project-example
    

    As you will see, you have to write something like this

    Name_of_project = path/to/your/project CD=. flags=flags_you_want{
      file1
      file2
      ...
    
      Name_of_Subcategory = path/to/your/subcategory filter=files_you_want{
       subcategory_file1
       subcategory_file2
       ...
      }
    }
    

    Now you can call your project:

    :Project
    

    This will open a vertical window with the file you've just configured. Click on any file you added to open it.

    For the flags and the filter, everything is explained in the help file. There are others subtleties you'll have to discover by yourself. I hope this will help you.