When using the Linux operation, will definitely use the Vim editor, about this editor will not do more introduction, you can go to Google a bit. Vim Editor's plugin is very much, this article introduces a VIM plug-in management tool pathogen. 1.Vim Installation
Under the Ubuntu14.04 version, use the following command:
sudo apt-get update
sudo apt-get install vim
The first command is to update the Apt-get library, and the second command is to install VIM
Here is the download address for a VIM official Chinese manual Vimcdoc :
VIM official Chinese User manual 2.Pathogen installation
After the installation is complete vim, install the pathogen management plugin next.
Go to the home directory and see if there is a. Vim directory and a. vimrc file in the home directory, and if not, create a new one and execute the following command:
mkdir ~/.vim
touch. VIMRC
Install Pathogen.vim, execute the following command
Mkdir-p ~/.vim/autoload ~/.vim/bundle && \
Curl-lsso ~/.vim/autoload/pathogen.vim https://tpo.pe/ Pathogen.vim
At this point in the ~/.vim directory, there are more than two folders AutoLoad and bundles.
AutoLoad folder under the Pathogen.vim file, is installed pathogen directory;
Bundle folder is the directory that installs other plugins later, that is to say, install vim other plug-in later installs in ~/.vim/bundle directory, carry on unified management.
Here pathogen installation is not completed, but also need to write the corresponding effective command to the configuration file ~/.VIMRC file, add the following three sentences in the ~/.VIMRC file:
Call Pathogen#infect ()
syntax on
filetype plugin indent on
Save exit, pathogen plug-in installation is complete, enjoy it.
# # # #特别说明 # #
1. About the plugin installation directory
~/.vim/bundle is the directory of the unified installation plugin, but if you do not want to make the directory name bundle, you want to name stuff, you need to modify the configuration statement
Execute Pathogen#infect (' stuff/{} ')
If you want to install in a different directory, use an absolute path representation and modify the configuration statement as follows so that you can install the plugin under ~/src/vim/bundle/{}.
Execute Pathogen#infect (' bundle/{} ', ' ~/src/vim/bundle/{} ')
2. About the. vimrc file
~/.VIMRC file is the Vim editor configuration file, in this configuration file we can configure a lot of vim features, such as syntax highlighting, automatic indentation, set line number and so on, about. vimrc file here do not introduce too much, we can go to Google below.