Linux under Vim install Vundle and install Emmet

Source: Internet
Author: User
Tags curl parent directory git clone


First install Git on windows, do it yourself, thank you.

Set the Curl Command tool.

Curl is already in the process of installing git, and then needs a little configuration to make it available at the command prompt.
Locate Git's installation directory, then enter the cmd directory and create a new file named Curl.cmd, which reads:


@rem don't use ' echo off ' to ' not ' affect any child calls.
@setlocal

@rem get the Abolute path to the parent directory, which are assumed to being 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 the curl is available.

Switch to the user's home directory to run:

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

Then create a new file named. VIMRC in the user's home directory, and my file reads 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 = {' Indentation ': '}
FileType plugin indent on "required!

So the Vundle installation is finished.

To use Vundle, you can add Bundle ' Bundle_name ' in the _VIMRC created above. Then open vim and run Vundle related commands to execute:

Install plugin:: Bundleinstall
Update plugin:: bundleinstall!
Uninstall plugin:: Bundleclean

As for what kind of plug-ins can be added, you can go to vim-scripts.org to find. In addition, you can add git managed repo (including GitHub, not GitHub, and local repo).

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.