Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 763
unj2 Avatar asked Apr 26 '09 08:04

unj2


People also ask

What is plugin in Vim?

vim is a plugin that wraps the command-line fuzzy finder program fzf, allowing you to use it directly within Vim. Fzf is a fast and portable fuzzy finder application written in Go. It is a requirement for the Vim plugin, so make sure you install it first.

Is NeoVim better than Vim?

The plugin architecture of NeoVim is a lot better than Vim. Apart from plugin implementation in Vimscript (VimL), we can also use the Lua programming language. In addition, NeoVim has a lot more powerful plugins, which are not compatible with Vim.

How Do Vim plugins work?

vim-plug works by cloning each Git repository into the location specified by begin . After installing, you can find the example plugin in ~/. vim/plugged/vim-unimpaired . Installing plugins is done inside of Vim.


1 Answers

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.

like image 129
Taurus Olson Avatar answered Oct 20 '22 21:10

Taurus Olson