Configuration and use of vim

Source: Internet
Author: User
Tags git clone

After a break from source insight, decide to take the time to properly configure and learn the following VIM

So I found the great God's configuration HTTPS://GITHUB.COM/HUMIAOZUZU/DOT-VIMRC

According to the introduction of the page, the following actions

    1. Backup your old vim configuration files:

      mv ~/.vim ~/vim.origmv ~/.VIMRC ~/.vimrc.orig
    2. Clone and install this repo:

      git clone git://github.com/humiaozuzu/dot-vimrc.git ~/.vimLn -S ~/.VIM/VIMRC ~/.VIMRC
    3. Setup Vundle :

      git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
    4. Install bundles. Launch Vim (ignore the errors and they would disappear after installing needed plugins) and run:

      : Bundleinstall

Thst ' s it!

Then we found an error, similar to

 processing function  vundle#installer#new ... <snr>31_process. Vundle#installer#run. Vundle#installer#install .. <snr>31_sync. <snr>31_system: section  1   line: E484: Cannot open file /tmp/v7kqncz/3   handle  function  vundle#installer#new ... <snr>31_process: section  13   line: E121: Undefined variable: s:last_statuse15: Invalid expression:   error   " == S:last_status  17   row: E121: Undefined variable: s:last_status  

Guess it's because I'm using fish, so switching to bash runs, or wrong ...

Then find this Vi use Vundle management plug-in to perform Plugininstall error

Add a sentence in the ~/.VIMRC file

Set Shell=/bin/bash

Execute again

: Bundleinstall

OK, everything's fine.

The next step is to learn how to use it. The operation of various plug-ins.

Configuration and use of vim

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.