Linux system vim how to install vundle component

  

When using the vim text editor under Linux system, you need to use the vundle component, then how to install the vundle component? Presumably many users have encountered such a problem, the following small series will introduce you to the Linux system vim to install the vundle component.

First, install git on Linux.

Second, set the curl command tool.

Curl is already included when you install git. What you need is a little configuration so that it can be used in the command prompt.

Locate the git installation directory, then go to the cmd directory and create a new file called curl.cmd with the following contents:

@rem Do not use “echo off” to not affect any Child calls.

@setlocal

@rem Get the abolute path to the parent directory, which is assumed to be the

@rem Git installation root.

@for /F “delims=” %%I in (“%~dp0..”) do @set git_install_root=%%~fI

@set PATH=%git_install_root%\\ Bin;%git_install_root%\\mingw\\bin;%PATH%

@if not exist “%HOME%” @set HOME=%HOMEDRIVE%%HOMEPATH%

@if not exist “%HOME%” @set HOME=%USERPROFILE%

@curl.exe %*

Enter curl –version at the command prompt to verify that curl is available.

Third, switch to the user's home directory, run:

git clone https://github.com/gmarik/vundle.git .vim/bundle/vundle

four Create a new file named .vimrc in the user's home directory. The contents of my file are as follows:

set nu

set fileencoding=utf-8

set fileencodings= Utf-8, gb18030, gb2312, gbk, big5

set ts=4

set expandtab

set autoindent

set nocompatible

set syntax=on

filetype off “ required!

set rtp+=~/.vim/bundle/vundle/

call vundle#rc()

” let Vundle manage Vundle

“ Required!

Bundle ‘gmarik/vundle’

Bundle ‘mattn/emmet-vim’

Bundle ‘Auto-Pairs’

Bundle ‘ Php-doc’

Bundle ‘PHPDoc-Script-PDocS’

let g:user_emmet_expandabbr_key = ‘Tab’

let g:user_emmet_settings = {&lsquo ;indentation’: ‘ ’}

filetype plugin indent on ” required!

V. The installation of Vundle is completed.

To use Vundle, you can add Bundle ‘bundle_name’ to the _vimrc created above. Then open vim and run the Vundle-related commands to execute:

Install the plugin: :BundleInstall

Update the plugin: :BundleInstall!

Uninstalling plugins: :BundleClean

As for what plugins can be added, you can find them at vim-scripts.org. In addition, you can add git managed repo (including on GitHub, not on GitHub, and local repo).

The above is the way to install the vundle component of Linux. Before installing the vundle component, you need to install git on Linux first, otherwise the installation may not be successful.

Copyright © Windows knowledge All Rights Reserved