Edit VIMRC file needs to install bundle plugin problem

Source: Internet
Author: User
Tags curl gpg git clone

Version information:
Uname-a
Linux localhost.localdomain 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue may 15:42:40 EDT (x86_64 x86_64 x86_64 gnu/linux
Cat/etc/issue
Red Hat Enterprise Linux Server release 6.1 (Santiago)
Kernel \ r on an \m

  1. Find some ~/.VIMRC file on the net, write ~/.VIMRC file, take effect with source ~./.VIMRC.
    When you edit with Vim, you will be prompted with an error
    Error detected while PROCESSING/ROOT/.VIMRC:
    Line 9:
    E492:not an editor command:plugin ' Vundlevim/vundle.vim '
    Line 13:
    E492:not an editor command:plugin ' Tpope/vim-fugitive '
    Line 17:
    E492:not an editor command:plugin ' Git://git.wincent.com/command-t.git '
    Line 20:
    E492:not an editor command:plugin ' File:///home/gmarik/path/to/plugin '
    Line 26:
    E492:not an editor command:plugin ' Rstacruz/sparkup ', {' RTP ': ' vim/'}

  2. Find the plugin that needs to install Vundle:
    Install vundle command:
    #git clone Https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/ Vundle.vim
    Error not installed Git, continue to install git

  3. Use Yum hint to search for software git, and install other software as well. On-line to find out the need to configure the Yum source, and then found RHEL6 configuration Yum Source method:
    A. Deleting a locally installed Yum
    #rpm-aq|grep Yum|xargs rpm-e--nodeps
    b. Download the corresponding RPM package
    python-iniparse-0.3.1-2.1.el6.noarch.rpm
    python-urlgrabber-3.9.1-11.el6.noarch.rpm
    yum-3.2.29-81.el6.centos.noarch.rpm
    yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
    yum-plugin-fastestmirror-1.1.30-40.el6.noarch.rpm
    The RPM package is downloaded on 163 mirrors:
    http://mirrors.163.com/centos/6/os/x86_64/Packages/
    Command: #wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-40.el6.noarch.rpm
    Other similar
    C. Install the downloaded RPM package
    #rpm-UVH python-urlgrabber-3.9.1-11.el6.noarch.rpm #更新
    #rpm-IVH yum-3.2.29-81.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-40.el6.noarch.rpm
    D. Configuring the Yum Source
    Cp/etc/yum.repos.d/rhel-source.repo/etc/yum.repos.d/rhel-source.repo.bak
    [Base]

name=centos-$releasever-base

baseurl=http://mirrors.163.com/centos/6/os/$basearch/

Gpgcheck=1

Gpgkey=http://mirrors.163.com/centos/6/os/x86_64/rpm-gpg-key-centos-6

#released Updates

[Updates]

name=centos-$releasever-updates

baseurl=http://mirrors.163.com/centos/6/updates/$basearch/

Gpgcheck=1

Gpgkey=http://mirrors.163.com/centos/6/os/x86_64/rpm-gpg-key-centos-6

#packages used/produced in the build and not released

#[addons]

#name =centos-$releasever-addons

#baseurl =http://mirrors.163.com/centos/6/addons/$basearch/

#gpgcheck =1

#gpgkey =http://mirrors.163.com/centos/6/os/x86_64/rpm-gpg-key-centos-6

#additional packages that could be useful

[Extras]

name=centos-$releasever-extras

baseurl=http://mirrors.163.com/centos/6/extras/$basearch/

Gpgcheck=1

Gpgkey=http://mirrors.163.com/centos/6/os/x86_64/rpm-gpg-key-centos-6

#additional packages that extend functionality of existing packages

[Centosplus]

name=centos-$releasever-plus

baseurl=http://mirrors.163.com/centos/6./centosplus/$basearch/

Gpgcheck=1

Enabled=0

Source/etc/yum.repos.d/rhel-source.repo don't know if it's used.
Yum and the source are already installed and configured

    1. Install Git with yum,
      #yum Install git
      #git--version
      After the error and found also need to install curl and Curl-devel
      After installing curl and curl-devel, it's not easy for a novice to install git successfully with Yum.

    2. Installing VIM's Bundle plugin
      #git Clone Https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/vundle.vim

    3. Vim no error, can be recognized, complete!

Thanks for the information online ~

Edit VIMRC file needs to install bundle plugin problem

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.