"Vim" makes vim an extension of your hands

Source: Internet
Author: User

Introduction

A year ago also learned vim for some time, but after all, still did not cross the threshold of beginners. I found myself in a lot of situations are like this, not without serious study, but in the end did not stick down. Sometimes, I really can't imagine how programmers use VIM to see the source code of thousands of lines?
I hope, this time do not give up the effort can let me experience the accumulation of cultivation to become a master of the feeling.
For Vim master,vim can be synchronized with the speed of editing text , of course, this learning process is a certain difficulty, also need to spend a lot of effort.
I am now practicing Vim's use of the skill is to run it as a lifelong tool. So, do not go back and forth to be a master, but the horizon is always on the edge of beginners. Resolve to persevere, every day can progress a little.
Remember, I'm not going to make my vim editor gorgeous, but to really improve the efficiency of writing code and thinking.

Let Vim be your only editor

You'd better be proficient in an editor and use it for all editing tasks: Code, documents, memos, system administration, and so on. If you don't persist in using an editor, you may face the need to rely on different editing conventions and commands in each environment, and it can be difficult to master any of these environments.
Choose Vim, get a thorough understanding of it, and use it for all your editing tasks. If you use Vim for all text editing activities, you do not have to stop to think about how to complete the text manipulation, the necessary keystrokes will become an instinctive response. Vim becomes the extension of your hands, and the keys sing as you slide through the text and thoughts. That's what I'm aiming for.

How to Do

Learn vim to reduce the number of keys you need to tap
Try to extend it and use it for more tasks than it is now
If you want, make it productive.

“.” Command

From the moment you enter insert mode, VIM records every keystroke operation until you return to normal mode (input ese). Make such a change and then use "." command, it will re-perform all of these key operations.

“;” Command

The F{char} command lets vim find where the next specified character appears, and if you enter f+, the cursor moves directly to the location where the next + sign is located.
“;” The command repeatedly finds the character that the last F command looked for and takes us to the next target character.

Summary

The two small examples above show that vim solves tedious repetitive tasks in a very convenient way, and once you have mastered these techniques and applied them to your actual text edits, your efficiency will be greatly improved.

Vim key diagram

reprint Please indicate the author Jason Ding and its provenance
GitHub Blog Home page (http://jasonding1354.github.io/)
CSDN Blog (http://blog.csdn.net/jasonding1354)
Jane Book homepage (http://www.jianshu.com/users/2bd9b48f6ea8/latest_articles)
Baidu Search jasonding1354 access to my blog homepage

"Vim" makes vim an extension of your hands

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.