I want to learn vim but don't know where to start.
ringa_lee
ringa_lee 2017-05-16 16:37:08
0
20
1514

First of all, vim has not been installed on my computer, win7 x64, I don’t know the latest version of vim

ringa_lee
ringa_lee

ringa_lee

reply all(20)
習慣沉默

vimtutor This is enough. The tutorial that comes with vim

阿神

Actually, I think it’s a good idea to get started with the concise Vim leveling guide; and then use it as much as possible until you get used to it.
As for the software, if it is Windows, I think it is better to install this Windows Shell: Babun directly. This eliminates some configurations, and then you can mess with gvim after you are familiar with it.

为情所困

A few years ago, in order to transplant GacUI (https://github.com/vczh-libraries) to Linux, I installed Ubuntu. In order to familiarize yourself with the environment, you must use XShell to connect to it and open vim to edit the code. In fact, it is very easy to get started. First, find someone to teach you for half an hour, and then just read the documentation that comes with vim. Later, I also built clang-complete, but I heard that it will no longer be maintained. After that, I also learned gdb, so I could port my own code, debug and run unit tests.

But when there is a graphical interface, clion is better for writing C++ code. Although it is a paid software, as long as you have your own open source project, you can easily apply for an open-source license.

p.s.
The first step in learning vim is to know how to use !q and wq to exit (escape), then ordinary text editing and cursor jump, then opening tab and sp, and finally various advanced strings Operations, search and replace, macro recording, etc.

習慣沉默

In fact, learning vim is very simple. Set the system default text editor to vim, use it to edit text in the future, and then find the vim manual. If you keep using it for a long time, you will naturally become familiar with it.

仅有的幸福

If you use Windows, there is actually no need to learn vim. It is still very fun to use an IDE. If you want to try vim, you can use the vim plug-in of the ide.

给我你的怀抱

In fact, I don’t think it is recommended to spend too much time learning vim. After all, it is just a tool. Through my own experience, I think the more efficient way to learn Vim is:

Step one: Familiarize yourself with hjkl movement in vim, switching between three modes, saving & opening files. Because this way you can perform some basic operations, be sure to delve into this stage. Because the most important thing to become proficient in vim is to train in practice and strengthen the memory of your fingers.

Step 2: Use a ready-made vim configured by others. Including plug-ins, key optimization, and workflow. Then use it and get used to it. In the process of using it, you will find many problems. For example, how do you remember shortcut keys? How to use the plug-in? Here, you need to spend quite some time getting used to it. You will encounter many problems here, including some basic operations of vim. You will also encounter problems here and learn them.

For shortcut keys and some operating techniques, don’t forcefully memorize them all, use them one by one and become proficient, because in the end you will find that your fingers are faster than your brain. By then, you may not be able to recite a shortcut combination, but when you put your fingers on the keyboard, they will move unconsciously. So we have to train, train and train again, and strengthen training one by one

The same goes for plug-ins. If you use someone else’s vim configuration, there may be many plug-ins that you can’t use temporarily. But as you continue to use it, you will discover for yourself: Is this function available? Does that function exist? At this time, you should look for other people's vim documentation, or look at the vimrc file yourself. See if there is a plug-in that implements this function. This process was also explored step by step, plug-in by plug-in. At this time, you already know other people's vim. You can already use it as an important tool in your work.

Step 3: If you are a fickle person, you may not stop at just using other people’s configuration. Because as you use vim, there are more or less plug-ins that are not included in the vim configuration you are using, or the key configuration you think can be more optimized. At this time you will want to modify this configuration, add your own shortcut keys, plug-ins you need, etc. At this time you will really start to jump into the big pit of vim. You'll figure out which shortcut works best for you, and look for more useful (and interesting) plug-ins. At this stage, you will form your own vim configuration. And we will continue to fine-tune it at work

Step 4: If you are not satisfied with using other people’s plug-ins, or you cannot find a suitable plug-in for the functions you want. If you have time and energy at this time, maybe you will try to write a vim plug-in yourself. At this time, the pit of vim will be dug deeper and deeper. Congratulations, you can write on your resume: Proficient in using vim (joke)

But in the end I feel that vim is just a tool, so don’t spend too much time learning it in the early stage. I'm not going to tell you how much time I spend on vim. .

In addition, this is my own vim configuration. If you are interested, you can take a look: https://github.com/ruanyl/bigvim

Ty80

The general one should be vim7.3 vim7.4
gvim should be used under windows. The version is arbitrary, it is just for practice. There is no difference in the basic shortcut keys 7.x. Most of them are customized vimrc after proficiency.

Recommend a book "Vim Practical Skills"
http://book.douban.com/subject/25869486/

Finally, before using vim, practice typing well. Don’t mess up your fingering, let alone reading the keyboard~

洪涛

I recommend you a few tutorials that I think are good: http://coolshell.cn/articles/5426.html; http://blog.jobbole.com/86132/; https://github.com/yangyangwithgnu/use_vim_as_ide ;

世界只因有你

First, read a book. I recommend "Vim Practical Skills". I have read it for the second time. This book can help you understand what is happening and why!
The second is to see how others use it, such as:
/a/1190000004016129
The third is to go to github to find the most popular configuration methods, learn and experience the plug-in, and see which ones suit you, such as:
https:// github.com/spf13/spf13-vim

我想大声告诉你

Everyone has said a lot, I would like to add a very practical one, equipped with a non-complete mechanical keyboard. The most important thing is that there should be no arrow keys (cheaper ones such as poker2), which will force you to use hjkl yourself.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!