Migrate to Vim's 10 hurdles

Source: Internet
Author: User
Tags command line file system

You have to admit that whenever you see someone using Vim, you wonder if he knows something you don't know. Why else would he use such an outdated editor, or open source trash?

You won't like it unless you spend at least one months a day using the editor. That's why a lot of beginners will try for one or two days and then get sick of it and then never touch it. Unfortunately, if these developers can survive the initial pain, they will be able to wait for the speed and flexibility of the invincible.

1. Too many models to choose from

Vim and TextMate have a lot of different, you often encounter it will not let you enter, let you crazy. Vim has many different modes, in different modes, different keys have different functions. Even more so, the upper and lower case features are also poorly spaced.

Maybe you're weird. A command has been going on for a long time to delete five lines of text. Yes, but when you have mastered it, you will find that editing is much faster.

2. The Old editor

Vim's age is very large, more than 30 years old! But Vim has been developed and maintained. The latest version of 7.3 was released in 2010. Also, Vim and VI is not the same, if you have only used VI so suggest you try Vim, you will have surprises.

3. I like the TextMate code fragment feature

You may soon find that Vim is not qualified for a job, but it is possible that a plugin has already achieved the functionality you want. For example, the TextMate code fragment (snippets) feature, Vim does not have this function, but there is a snipmate plug-in can achieve the same function.

4. I can't use the up and down keys

First of all, Vim can be used up and down keys, you say may be Vi. But most users of Vim do not use these keys:

H,j,k,l is mapped to the left, down, up, and right:

No choice-the previous machine does not have buttons up or down

Less movement-most of your hands are in the second row of the keyboard, so using this mapping will allow your hands to move as little as possible, allowing you to move faster in different parts of the document.

5. I'm a designer!

Yes, Vim is not for everyone. If you often deal with HTML,CSS, Vim may not be right for you. But you can also try. Maybe Coda is better for you.

6. Vim does not provide the functionality of my existing editor

You are wrong, each editor has its advantages. Vim's strength is strong, flexible, with hundreds of plug-ins, and free. Almost as much as you can think of features, there are plug-ins available.

Snipmate: Can let you enter + TAB, expand the entire div, super easy to use!

Surround: Mark part of the text with a tag bracket.

Nerdtree: View file system, open file or directory.

Tcomment: Simple and quick annotation of some lines in the code.

Sparkup: Similar to zencoding, but also supports assigning values to elements, such as:

ul > li {My list item text.}

7. My Vimrc file is blank

This is the first problem that I have encountered with Vim. When you start vim for the first time, you will find no code highlighting, no syntax format, no automatic indentation, and so on, nothing! Setting up Vim's profile at the beginning is a headache, but there is a lot of ready-made information available on the Web.

8. I don't want to use the command line

I am also, fortunately there is a graphical interface Vim, such as Macvim,gvim.

9. No teacher is too tired to learn

Check out this venturing into Vim around the course. The characteristic of this course is that I recorded it while I was learning Vim.

10. I can't edit a remote file

Of course you can, maybe not as friendly as Coda, but transmit FTP plug-ins can provide this functionality.

Of course, you have thousands of reasons to reject Vim. It has a high learning curve and requires a new understanding of code editing. But these are not enough to show that Vim is not worth your serious study!



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.