Simple to install and use Vim plugin manager under Linux vim-plug

For any user likes of Vim, vim plugin manager are necessary. You can find some of the options available. My personal favorite is vim-plug, it is pretty vim and simple plug-in. Let's see how to install and use this plug-in on Linux or Unix-like systems.

How to install vim-plug

Now we use wget or curl commands to get plugin.vim, as follows:

or

As shown below:

Simple to install and use Vim plugin manager under Linux vim-plug

How to configure vim plugin manager for Linux or Unix vim-plug?

In ~ / .vimrc syntax is as follows:

Example:

Suppose you want to use a bottom state called vim-airline enhancement / beautification vim plugin. You need to add the following in ~ / .vimrc file:

call plug#begin('~/.vim/plugged')
Plugin 'vim-airline/vim-airline'
call plug#end()

Simple to install and use Vim plugin manager under Linux vim-plug

Save and close the file.

Install vim-airline or other plug-ins

Start vim text editor:

To install the vim-airline, enter:

:PlugInstall

Example session is as follows:

Simple to install and use Vim plugin manager under Linux vim-plug

Check the status using the following command:

: PlugStatus

Simple to install and use Vim plugin manager under Linux vim-plug

 To update the plug-in, enter:

:PlugUpdate

To upgrade vim-plug itself, type the following in vim session:

Plug Upgrade

Clear up

PlugClean clean plug-in, you need to remove or comment out there now .vimrc

to sum up

Of course, if you like vundle or pathogen, there is no need to switch. However, I prefer this. Have you learned it?

For more information, see the following page:

  • vim-plug GitHub repo here
  • Nova color scheme plugin GitHub repo here
  • ansible-vim plugin GitHub repo here

Guess you like

Origin www.linuxidc.com/Linux/2020-03/162597.htm