Extremely easy-to-use Vim configuration and Vim Configuration

Source: Internet
Author: User

Extremely easy-to-use Vim configuration and Vim Configuration
Https://github.com/ma6174/vim-deprecatedsimple installation tips:

Open the terminal and execute the following command to automatically install it:

wget -qO- https://raw.github.com/ma6174/vim/master/setup.sh | sh -x

Or manually install: (ubuntu is used as an example)
  • Install ctags:sudo apt-get install ctags
  • Install some essential programs:sudo apt-get install xclip vim-gnome astyle python-setuptools
  • Python code formatting tool:sudo easy_install -ZU autopep8
  • sudo ln -s /usr/bin/ctags /usr/local/bin/ctags
  • Clone the configuration file:cd ~/ && git clone git://github.com/ma6174/vim.git
  • mv ~/vim ~/.vim
  • mv ~/.vim/.vimrc ~/
  • Clone bundle program:git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
  • Open vim and execute the bundle Program:BundleInstall
  • Re-open vim to see the effect
Compile a python Program
  • Input.Or pressTABThe key triggers the code complementing function.
  • :wAfter saving the code, the system automatically checks the code errors and specifications.
  • PressF6You can presspep8Code Format Optimization
  • PressF5One-click Code Execution
Multi-Window operations
  • Use: Vs + file nameVertically split windows
  • UseCtrl + wYou can quickly switch between windows
Compile a markdown File
  • After generation, pressfiYou can use firefox to open the correspondinghtmlFile Preview
  • Of course, you can also use the omnipotentF5Key to one-click conversion and open Preview
  • If there is some confusion on the screen during the process of opening, you can pressCtrl + lTo restore
Quick notes
  • Press\Automatically comment based on file type
Usage

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.