A tool that can not be separated daily vim

Source: Internet
Author: User

(not to be continued)

From the first use of Vim's wits, to now use HJKL navigation has formed a muscle memory.
Meet the most novice will be puzzled by the problem, here to organize down.

Getting Started FAQs
    • IDE is very powerful, lightweight editor sublime is very useful, but also need to learn vim?

If you do not need, you can not learn, one day you need to come back to see, of course, you can choose to enter the world of vim now.
Most programmers will travel through a large number of development machines without a GUI, which is the value of Vim's existence.

    • How to learn vim?

The first tutorial, of course, is vimtutor, the paper came to the final light, only a knock command, to realize the pleasure of vim.

    • What about noon garbled?

Chinese garbled not only windows cmd inside the Hot Hot Hot hot, vim of the world will also encounter, first give the simplest solution, add these lines to the configuration.
It takes a little bit of effort to understand what the code is. The CPU is severely only 0101, it handles the minimum length is byte, 8bits, and often hear the ASCII code is 1 byte, the highest bit is 0, the remaining 7 bits represent different symbols, the visible characters A-Z accounted for part.
In the simplest case, vim can be viewed as a byte of a byte, knowing exactly what shape to display. Chinese is more complex, 1 byte cannot be expressed, a specific encoding method is required to represent multiple bytes of a man, such as gb2312, GBK, GB18030, and the most common UTF8. But how does it know how to encode the file, there are some ways to detect the encoding, but not completely reliable, we specify the priority by setting FECs. Encode is used internally by VIM.

Common commands

Command mode
Edit mode

Configuration file

VIMRC at the beginning of the Web from a casual look for a copy, very useful, but do not understand, do not know how to change.

Plug - ins

Each person in the hands of vim is different, more or less left their own brand. Some people do not love tossing and turning, Vim is a handy editor, some people turn vim into the IDE's appearance, no difference, like the speed of the keyboard is not encoded speed of the short board.
On the other hand, tools can affect our thinking habits and let us focus on the problem itself. Throw away the plugins that lie in the folder after the installation, and the rest of the day is still in vim.

A tool that can not be separated daily 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.