Vim Full Tutorial

Source: Internet
Author: User

First, Introduction

There are only three types of editors in the world, EMACS, Vim, and others.

The times we are in are very fortunate, with more and more editors, compared to the old vim and Emacs, they are called modern editors. Let's take a look at how old these two antiques are:

1975   38 years old **vi**    1976 = 37 years old **vim**   1991  = 22 years old

Simply list the features that the programmer expects the editor to have:

Lightweight, quick start (relative to IDE) syntax highlighting auto align code folding auto complement display line number redefine tab hexadecimal Edit column edit mode quick comment Advanced search, replace error recovery quick jump Mark Beauty

Vim contains the advantages of all the modern editors listed above, and much more than this, such as:

Endless expansion: Now there are 4,704 extensions on the official Vim website, and it's growing ... Perfect cross-platform: Open source is cool, most critical, $

Second, the configuration

1) View Configuration

http://blog.chinaunix.net/uid-22188554-id-461603.html

2) Ultimate Configuration

http://vim.spf13.com/
Http://www.cnblogs.com/274914765qq/p/4436974.html

Iii. Use of Tutorials

1. Basic Usage

Vim's vimtutor is the best starter tutorial for Vim, and it takes about half an hour to master the vast majority of vim usage.

2. Advanced usage

1) Code Folding

http://www.cnblogs.com/fakis/archive/2011/04/14/2016213.html

2) Multi-Text Search

http://blog.chinaunix.net/uid-14770335-id-3025369.html

3) Multi-text comparison

http://blog.chinaunix.net/uid-22548820-id-3477464.html

4) Multi-window use

http://www.webinno.cn/blog/article/view/44http://Blog.csdn.net/devil_ 2009/article/details/7006113

5) Quickfix Use

http://www.cnblogs.com/tekkaman/p/3512905.html

6) Copy and paste

http://blog.sina.com.cn/s/blog_76550fd701019rol.htmlhttp://blog.sina.com.cn/s/blog_9ffcd5dc01017zk7.htmlhttp:/ /www.cnblogs.com/jianyungsun/archive/2011/03/19/1988855.htmlhttp://www.linuxidc.com/linux/2012-06/62164.htm

7) Select All

http://blog.sina.com.cn/s/blog_6e70abbd0100zbk9.html

8) Bulk Indent

http://www.cnblogs.com/bluefrog/archive/2011/10/10/2205311.html

9) Delete empty lines

: g/^\s*$/d

10) use Make in Vim

http://blog.csdn.net/b_fushuaibing/article/details/5385712

Vim Full Tutorial

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.