Vim project management tool

Source: Internet
Author: User

Vim is a common text editing tool in Linux and UNIX.CodeAnd read code frequently.

But when Vim manages code projects, it is not convenient to use ide integrated development tools. Now we provide a Vim plug-in project that allows you to perform simple and centralized management of code projects.

1. Download and install

1. download the latest project.tar.gz or directly download project-1.4.1.tar.gz from the vim website.

2. decompress the mobile plug-in and Doc ~ /. Vim directory (NO ~ /. Vim is created by yourself). The steps are as follows:

Mkdir ~ /. Vim

MV Doc ~ /. Vim

MV plugin ~ /. Vim

Ii. Project usage

1. After Vim is enabled, run the following command: project. The project list is displayed. (if not initialized, It is empty)
2. Input \ c (slash + uppercase C) and the following information will appear:

Enter the name of the entry: projectname (project name)
Enter the absolute directory to load: projectpath (Project path directory)
Enter the CD parameter:. ("." is the current directory)
Enter the file filter: (the source file that meets the conditions is generally null)

Iii. Project Management

1. Open a project

VIM + project

Or

Run the following command after logging on to VIM: Project

2. Import file list

\ C (recursively reading sub-Directories) \ c (reading the current file)

Follow the prompts to enter:

Enter the name of the entry: <description>

Enter the absolute directory to load: {projpath}

Enter the CD parameter: [{options }]

Enter the file filter: [{options }]

Ignore {,}, blank lines, and ,#

3. list display format

<Description >={ projpath} [{options}] {
[Filename]
[Project_entry]
}

<Description> description

{Options} configuration parameters

Cd = {path}
In = {filename}
Out = {filename}
Filter = "{Pat}" file type
Flags = {flag}

4. Open the list file

: Default project list file

: Project {file}

Default storage address of List Files :~ /. Vimprojects

5. Common commands

\ L (list all current layer files) \ L (recursion), press any key to stop

\ W (close current layer file) \ W (recursion)

\ G (search for files at the current project layer) \ G (recursion)

\ R close the subfolders and refresh the files in the current folder, \ r recursively open the folder and refresh all files

S. Close the folder and create it. s. recursively open the folder and create it.

\ S displays the file in multiple horizontal open windows, open or close the folder list

\ O open the file in a window, open or close the folder list

\ V display the file content of the pointer staying in the project window in the right window

<Space> space to expand the width of the Project window and restore the width

\ I display the setting parameters of files or folders, such as filter = "*"

\ I display the path and parameters of the file or folder

\ 1-\ 9, \ F1-\ F9, \ F1-\ F9 execute the specified command, \ 0 query 1-9 command, \ F0 query f1-f9, F1-F9 command

4. Project Management instances

Example: import and manage Android source code

1. Open Vim project: VIM + project

2. Import project: \ c (I .e., slash + uppercase C)

Enter the name of the entry:Android

Enter the absolute directory to load: /Home/Yanggang/android_source

Enter the CD parameter:.(Enter directly .)

Enter the file filter :( press enter directly)

Long loading...

Example:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.