Configure Vim and plugins under Ubuntu

Source: Internet
Author: User
Tags autoload

1, the first to install Vim, the default Ubuntu is not installed Vim

sudo Install Vim sudo Install Vim

2, in order to install the pathogen plugin, create a new folder, switch to. Vim, execute git init

mkdir ~/. Vimmkdir ~/.vim/{autoload,bundle}cd. Vimsudoinstall  gitgit Init

Initialized empty Git repository in/home/cloudor/.vim/.git/indicates success

3, the installation process, first download Vim-pathogen, Https://github.com/tpope/vim-pathogen can also directly execute the following statement

Curl-lsso ~/.vim/autoload/pathogen.vim https://Tpo.pe/pathogen.vim

Then add the following command to the ~/.VIMRC file, and if the file does not exist, create it first

Vim ~/.VIMRC

Write the following:

Execute Pathogen#infect () syntax Onfiletype plugin indent on

Execute statement, install Sensible.vim

CD ~/.vim/bundlegit clone git://Github.com/tpope/vim-sensible.gitCloning into'vim-sensible'... remote:counting objects:285, Done. Remote:total285(Delta0), reused0(Delta0), pack-reused285Receiving objects: -% (285/285),41.81KiB |48.00KIB/S, Done. Resolving deltas: -% ( the/ the), Done. Checking Connectivity ... Done.

After installing the new plugin into the bundle directory, if the plugin contains doc, you need to run it in vim : Helptags to generate online Help tags

I recommend installing and learning the following plugins in turn: Vim-sensible, Vim-airline, Vim-abolish, Ctrlp.vim, Ultisnips, Vim-surround, vim-easy-align

Reference http://blog.csdn.net/wxqee/article/details/46911857

Http://www.cnblogs.com/zhcncn/p/4030576.html

  

Configure Vim and plugins under Ubuntu

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.