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
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/'}
-
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
- 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
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.
Installing VIM's Bundle plugin
#git Clone Https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/vundle.vim
- Vim no error, can be recognized, complete!
Thanks for the information online ~
Edit VIMRC file needs to install bundle plugin problem