[CentOS] Creating a VIM environment

Source: Internet
Author: User
Tags set set git clone

Install Vim
Yum Install vim-enhanced

Install Git
RPM-UVH http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8. Noarch.rpmyum Install git

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

Configure VIM
Vim/etc/vimrc

Add the following configuration at the end of the file

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""""Set Nocompatible"Be improvedfiletype off"Required!set rtp+=/data/vim/bundle/vundle/call VUNDLE#RC ()"Let Vundle manage Vundle"required! Bundle ' Gmarik/vundle '""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""setting of Nerdtreebundle ' Scrooloose/nerdtree ' let Nerdtreewinpos=' left ' let Nerdtreewinsize=31Let nerdtreechdirmode=1 "F8 Open Nerdtreemap f8:nerdtreetoggle/data<cr>""F7 a new tab tag map f7:tabnew<cr>"F5 Previous tab tag map f5:tabp<cr>""F6 after a tab tag map f6:tabn<cr>""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""setting of Nerdcommenterbundle ' Scrooloose/nerdcommenter ' if has ("Gui_running")"sets the character set set Encoding=utf-8set Fileencodings=ucs-bom,utf-8,chinese,prc,taiwan,latin-1,gbk,ucs-bom,cp936set Fileencoding=utf-8let &termencoding=&encoding"fix menu garbled source $VIMRUNTIME/delmenu.vimsource $VIMRUNTIME/menu.vim"solve Consle output garbled language messages Zh_cn.utf-8endif"Background Color Slate"code highlighting syntax Enablesyntax on"unprepared set Nobackup"Show line number set nu!"show Bracets pairing set Showmatch"do not wrap set Nolinebreakset wrap"Historical Number Set history=1024 "tab Width set tabstop=4"tab Auto Indent width set shiftwidth=4 "Set auto indent set AI"convert tab to space set Expandtab"automatic loading of _VIMRC files without restarting gvimautocmd! bufwritepost _VIMRC source%

Install related plugins

Vim
: Bundleinstall

Has fun with centos!

[CentOS] Creating a VIM environment

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.