Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to find the vim plug-in

Shulou Source: shulou.com Published: 2022-06-03 03:04:14 10月03日 Update

Vim is a powerful text editor, not only because it allows us to completely abandon the use of the keyboard, but also has a strong extensibility, can add any variety of plug-ins. As long as you think of it, you can basically find the corresponding plug-in on the Internet.

Use search engines

For example, if I type vim php on Baidu, he will automatically pop up a few keywords.

A trick to use search engines is to enter keywords and separate multiple keywords with spaces. This makes it easier for search engines to find what they want.

At this point, I found that php code completion does not need to install the plug-in, just add the following line to the configuration file

Autocmd FileType php set omnifunc=phpcomplete#CompletePHP

Now, we only need to press ctrl+x,ctrl+o to complete the automatic completion of the php code

Search in github

Because most vim plug-ins are hosted on github, we can search directly in github. It has an advantage over search engines, which can filter some spam.

For example, I want to search for directory-related plug-ins, because the vim editor does not have directory management by default, which is not very convenient for developing large references.

Ask the elder for advice

When you want to install the vim plug-in, you can consult your colleagues or seniors or the group to ask them if they have a good recommended plug-in.

Vimawesome.com

This is an amazing website, and almost all the plug-ins you want can be found here.

This site has divided plug-ins into several categories, namely programming language, completion, interface, integration-related, commands, and others.

In addition, the right side of the website interface is arranged by the number of stars by default. In general, the first 5 pages of daily plug-ins can be found.

Tags: Plug-ins search engine search engine key website powerful code keyword predecessor just interface directory editor input magic one line information keyword content Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Apple Linux Docker Microsoft