is beyond doubt, Vim is a powerful tool for text file processing, capable of managing system configuration files and writing code. Through plug-ins, Vim can be extended to different levels of functions. In general, all plug-ins and attached configuration files are stored in the ~/.vim directory. Because all plug-in files are stored in the same directory, when you install more plug-ins, different plug-in files are confused. Therefore, tracking and managing them will be a terrible task. However, this is exactly what Vundle can handle. Vundle, which is the abbreviation of Vim and Bundle, is an extremely useful tool to manage Vim plug-ins.

Vundle creates a separate directory tree for every plug-in you install, and stores additional configuration files in the corresponding plug-in directory. Therefore, there is no confusing document between each other. In short, Vundle allows you to install new plug-ins, configure existing plug-ins, update plug-in configurations, search plug-ins for installation, and clean up non used plug-ins. All operations can be done in one button interaction mode. In this simple tutorial, let me show you how to install Vundle and how to use it to manage Vim plug-ins in GNU/Linux.

Vundle introduction

Vundle is the abbreviation of Vim bundle, and is a Vim plug-in manager.

Vundle allows you to do...

  • tracks and manages plug-ins in.Vimrc,
  • installs specific format plug-ins (a.k.a. scripts/bundle)
  • updates specific format plug-ins.

Vundle install

if you need Vundle, then I think of you as your system and will have been installed Vim. If not, install Vim and git (download Vundle). These two packages are available in official storage in most GNU/Linux distributions. For example, in the Debian series system, you can install the two packages with the following commands.

 sudo apt-get install VIM git

download Vundle

copy Vundle GitHub warehouse address RC file to notify Vim of using the new plug-in manager. This file is required to install, update, configure and remove plug-ins. The

 VIM ~/.vimrc

is at the top of the file, adding the following lines of contents:

set nocompatible "be iMproved. Vundle#begin ()
"alternatively, pass a path where Vundle should install plugins
" call. Commands between vundle#begin/end.
"plugin on GitHub repo
" plugin from . D
"To ignore plugin indent changes, instead use:
" filetype plugin on
". Al cache
"PluginClean - confirms removal of unused plugins; append ` to auto-approve removal
". The rest of the line is only a few examples. If you don't want to install those specific plug-ins, you can remove them. When completed, type: WQ save and exit.

finally, open Vim:


and then type the following command to install the plug-in:

: PluginInstall

is installed, type the following command to delete the cache area cache and close the window: < br>

disabilities: you can also be in the terminal. Install the plug-in with the following command instead of opening the Vim:

 VIM +PluginInstall +qall

with a friend of fish shell to add the following line to your.Vimrc file.

 set shell=/bin/bash

uses Vundle management Vim plug-in add new plug-ins, first, use the following command to search for the plug-in that you can use The station refreshes the local list, please add it after the command.

: PluginSearch! 

will pop up a new split window listing the list of available plug-ins:

: PluginSearch vim

will list plug-ins containing key words "VIM".

, of course, you can also specify the exact name of the plug-in, such as:

: PluginSearch vim-dasm

moves the focus to the correct line, and presses the I key to install the plug-in. Now, the selected plug-in will be installed.

is similar to installing all the plug-ins you want in your system. Once installed successfully, delete the Vundle cache with the following command:

: bdelete

. Now, the plug-in has been installed. In order for the plug-in to be properly loaded automatically, we need to add the installed plug-in name in the.Vimrc file.
do this:

: e ~/.vimrc

add this line:

 [...] Plugin'vim-dasm'[...]

is replaced with its own plug-in name. Then, knock ESC, type: WQ save the exit.

note that all plug-ins must add the following contents in the.Vimrc file. The

 [...] filetype plugin indent on

lists the installed plug-in

key to the following commands to list all the installed plug-ins:

. 018422164413744.png? 2018322164424 ">

update plug-in

type the following commands to update the plug-in:

: PluginUpdate

key into the following commands to reinstall all plug-ins:

: PluginInstall! List all installed plug-ins: 

: PluginList

, place the focus on the correct line, and press the SHITF+d composite key.

then edit your.Vimrc file: delete: delete the plug-in entrance. Finally, type: WQ save the exit.

or, by removing the.Vimrc file line where the plug-in is located, and executing the following commands, uninstall the plug-in:

: PluginClean

, the command will remove all the plug-ins that are not in your.Vimrc file but exist in the bundle directory.

you should have mastered the basic method of Vundle management plug-in. In the Vim, use the following commands to query the help documents for more details.

: H vundle

. Now I have told you all the contents. Soon, I'll get out of the next tutorial. Keep your attention!


summary of

is the whole content of this article, I hope that the content of this article for everyone's learning or work has a certain reference value, if there is a doubt you can leave a message, thank you for the support of the home of the script.


Vundle GitHub warehouse

This concludes the body part